home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 August / PCO0897.ISO / filesbbs / os2 / plnk065.arj / PLNK065.ZIP / pilot-link.0.6.5 / include / pi-memo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-23  |  1.3 KB  |  39 lines

  1. #ifndef _PILOT_MEMO_H_        /* -*- C++ -*- */
  2. #define _PILOT_MEMO_H_
  3.  
  4. #include "pi-args.h"
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. struct Memo {
  11.   char * text;
  12. };
  13.  
  14. struct MemoAppInfo {
  15.   unsigned int renamedcategories; /* Bitfield of categories with changed names */
  16.   char CategoryName[16][16]; /* 16 categories of 15 characters+nul each */
  17.   unsigned char CategoryID[16]; 
  18.   unsigned char lastUniqueID; /* Each category gets a unique ID, for sync tracking
  19.                                  purposes. Those from the Pilot are between 0 & 127.
  20.                                  Those from the PC are between 128 & 255. I'm not
  21.                                  sure what role lastUniqueID plays. */
  22.   int sortOrder; /* New for 2.0 memo application, 0 is manual, 1 is alphabetical. */
  23. };
  24.  
  25. extern void free_Memo PI_ARGS((struct Memo *));
  26. extern void unpack_Memo PI_ARGS((struct Memo *, unsigned char * record, int len));
  27. extern void pack_Memo PI_ARGS((struct Memo *, unsigned char * record, int * len));
  28. extern void unpack_MemoAppInfo PI_ARGS((struct MemoAppInfo *, unsigned char * AppInfo, int len));
  29. extern void pack_MemoAppInfo PI_ARGS((struct MemoAppInfo *, unsigned char * AppInfo, int * len));
  30.  
  31. #ifdef __cplusplus
  32. }
  33.  
  34. #include "pi-memo.hxx"
  35.  
  36. #endif /*__cplusplus*/
  37.  
  38. #endif /* _PILOT_MEMO_H_ */
  39.