home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / utility / slectric.lzh / DOKU / FSEL_INP.H < prev    next >
C/C++ Source or Header  |  1986-02-06  |  2KB  |  55 lines

  1. /* ------------------------------------------------------------------------- */
  2. /* ----- fsel_inp.h ------------------------ (c) 1992 by Oliver Scheel ----- */
  3. /* ------------------------------------------------------------------------- */
  4.  
  5. #ifndef __FSELLIB__
  6. #define __FSELLIB__
  7.  
  8. #include <aes.h>
  9.  
  10. #define CMD_FILES_OUT    0x01        /* return filelist */
  11. #define CFG_ONESTRING    0x02        /* return list in one string */
  12.  
  13. /* ------------------------------------------------------------------------- */
  14. /* ----- Selectric Structure ----------------------------------------------- */
  15. /* ------------------------------------------------------------------------- */
  16.  
  17. typedef struct
  18. {
  19.     unsigned long    id;        /* Selectric ID (SLCT)        */
  20.     unsigned int    version;    /* version (BCD-Format)        */
  21.     struct
  22.     {
  23.         unsigned     : 8;    /* reserved            */
  24.         unsigned pthsav : 1;    /* save GEMDOS paths        */
  25.         unsigned stdest : 1;    /* stay in destination path    */
  26.         unsigned autloc : 1;    /* auto-locator            */
  27.         unsigned numsrt    : 1;    /* numsort            */
  28.         unsigned lower    : 1;    /* use lowercase letters    */
  29.         unsigned dclick    : 1;    /* open folder on dclick    */
  30.         unsigned hidden : 1;    /* show hidden files        */
  31.         unsigned bypass : 1;    /* Selectric ON/OFF        */
  32.     } config;
  33.     int    sort;            /* sort-mode (neg. = rev.)    */
  34.     int    num_ext;        /* number of extensions        */
  35.     char    *(*ext)[];        /* preset extensions        */
  36.     int    num_paths;        /* number of paths        */
  37.     char    *(*paths)[];        /* preset paths            */
  38.     int    comm;            /* communication word        */
  39.     int    in_count;        /* input counter        */
  40.     void    *in_ptr;        /* input pointer        */
  41.     int    out_count;        /* output counter        */
  42.     void    *out_ptr;        /* output pointer        */
  43. } SLCT_STR;
  44.  
  45. /* ------------------------------------------------------------------------- */
  46.  
  47. long *get_cookie(long cookie);
  48. int fsel_check(void);
  49. int slct_check(unsigned int version);
  50. int file_select(char *pfname, char *pname, char *fname, const char *ext, char *title);
  51. int slct_extpath(int ext_num, char *(*ext)[], int path_num, char *(*paths)[]);
  52. int slct_morenames(int mode, int num, void *str);
  53.  
  54. #endif
  55.