home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / com / zocdev / phonebk / phonebk.h
C/C++ Source or Header  |  1993-11-28  |  2KB  |  44 lines

  1. // This is the structure for phonebook entries in ZOC.
  2. // Maybe someone likes to use this for a converter program
  3. // Send any questions to M.SCHMIDT@MSN.RMI.DE
  4.  
  5.  
  6. // !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!!
  7. // A PHONEBK file must begin with an nine byte header string "BOOKV.VV\032"
  8. // where V.VV is the version of ZOC which introduced this phonebook format.
  9. // All PHONEBK files with this format will carry this version, even if
  10. // written with a future version of ZOC
  11. // !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!! !!IMPORTANT!!
  12.  
  13.  
  14. #define PH_FILENAME "PHONEBK"
  15. #define PH_INIT      "BOOK"
  16. #define PH_VERSION    "0.98"
  17. #define PH_TRAIL    "\032"
  18. #define PH_HEADER   (PH_INIT PH_VERSION PH_TRAIL)
  19.  
  20. // Not packed, each member aligned to 4-byte boundary
  21. #pragma pack(4)
  22.  
  23. typedef struct _PHONEBOOK_098 {
  24.     int     book;                // nr of phonebook to put it in
  25.     char    name[32+1],            // name
  26.             value[64+1],        // number or name of script
  27.             seropt[10+1],        // serial options like 38400-8N1
  28.             optfile[64+1],        // name of options file to load
  29.             logname[64+1],        // name of logfile to open
  30.             waitsend[160+1];    // sequence of waits and sends for login
  31.     int     valtype;            // type of value (0=dial,1=xdial,2=script)
  32.     BOOL     qaccess;            // quick access from menu (true, false)
  33.     int     zone;                // zone for phone units (0-3)
  34.     int     future[19];            // for future use, set to zero
  35.     int     __idm;                // don't touch or set to zero
  36. } PHONEBOOK_098;
  37.  
  38. #pragma pack()
  39.  
  40.  
  41.  
  42. // define currently up-to-date as PHONEBK
  43. typedef PHONEBOOK_098 PHONEBOOK;
  44.