home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_11_08 / weber / loadsave.h < prev    next >
Text File  |  1993-03-13  |  1KB  |  26 lines

  1. /***************************************************************
  2.  * file: LOADSAVE.H
  3.  * purpose: defines and prototypes for loadsave.c
  4.  * copyright: 1992 by David Weber.  All rights reserved.
  5.  *  This software can be used for any purpose as object, library or executable.
  6.  *  It cannot be sold for profit as source code.
  7.  * history:
  8.  *  01-15-92 - initial code
  9.  *  01-31-93 - this code is now obsolete, see the CPP gui package
  10.  **************************************************************/
  11.  
  12. /* prototypes */
  13. short loadsave(char *search,char *choice,unsigned short status);        /* get a file name from the user */
  14. short loadsave_add_button(BUTTON *button,short (*message_handler)(MESSAGE *));  /* adds extra buttons to loadsave dialog */
  15. short loadsave_button_location(BUTTON *button,short *loc_x,short *loc_y);   /* get position of an extra button */
  16.  
  17. /* defines */
  18. #define LOADSAVE_MAX_BUTTONS 4          /* maximum number of buttons that can be added */
  19. #define LOADSAVE_LOAD 1                 /* bit flags for loadsave() status */
  20. #define LOADSAVE_SAVE 2
  21. #define LOADSAVE_VERIFY 4
  22.  
  23. #ifndef FILENAME_MAX
  24. #define FILENAME_MAX 79                 /* MSDOS path name maximum length */
  25. #endif
  26.