home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / FACTIVE.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  5.8 KB  |  330 lines

  1. #define FACTIVE_OPH
  2.  
  3. #ifndef APPMAN_OPH
  4. #include <sdk\appman>
  5. #endif
  6.  
  7. #ifndef P_FILE_OPH
  8. #include <p\file>
  9. #endif
  10.  
  11. /* Property of factive */
  12.  
  13. STRUCT PRS_FACTIVE
  14.     owner%
  15. ENDS
  16.  
  17. STRUCT PR_FACTIVE
  18.     root#(SIZEOF(PRS_ROOT))
  19.     active#(SIZEOF(PRS_ACTIVE))
  20.     factive#(SIZEOF(PRS_FACTIVE))
  21. ENDS
  22.  
  23. /* Constants for fscan */
  24.  
  25. #define FS_WRITABLE P_FAWRITE
  26. #define FS_HIDDEN P_FAHIDDEN
  27. #define FS_SYSTEM P_FASYSTEM
  28. #define FS_DIRECTORIES P_FADIR
  29. #define FS_MODIFIED P_FAMOD
  30. #define FS_ALL_FILES P_FAREAD
  31. #define FS_FILE_TYPE (FS_HIDDEN|FS_SYSTEM)
  32. #define FS_INCLUDE_SUBDIRECTORIES 0x1000
  33. #define FS_INCLUDE 0x2000
  34. #define FS_END_DIRLIST 0x4000
  35. #define FS_PARSE_NAME 0x8000
  36. #define FS_MAX_DIRLEVELS 32
  37.  
  38. /* Property of fscan */
  39.  
  40. STRUCT PRS_FSCAN
  41.     flags%
  42.     index%
  43.     pname%
  44.     match%
  45.     delim#(2)
  46.     finfo#(SIZEOF(P_INFO))
  47.     crk#(SIZEOF(P_FPARSE))
  48.     pcbarr%(FS_MAX_DIRLEVELS)
  49.     name#(P_FNAMESIZE)
  50. ENDS
  51.  
  52. STRUCT PR_FSCAN
  53.     root#(SIZEOF(PRS_ROOT))
  54.     active#(SIZEOF(PRS_ACTIVE))
  55.     factive#(SIZEOF(PRS_FACTIVE))
  56.     fscan#(SIZEOF(PRS_FSCAN))
  57. ENDS
  58.  
  59. /* Constants for fnode */
  60.  
  61. #define FNODE_NODE_ARRAY 0x01
  62. #define FNODE_DEVICE_ARRAY 0x02
  63. #define FNODE_LOCAL_ONLY 0x04
  64.  
  65. /* Property of fnode */
  66.  
  67. STRUCT PRS_FNODE
  68.     flags%
  69.     pname%
  70.     oldname%
  71.     pcb%
  72. ENDS
  73.  
  74. STRUCT PR_FNODE
  75.     root#(SIZEOF(PRS_ROOT))
  76.     active#(SIZEOF(PRS_ACTIVE))
  77.     factive#(SIZEOF(PRS_FACTIVE))
  78.     fnode#(SIZEOF(PRS_FNODE))
  79. ENDS
  80.  
  81. /* Property of pnode */
  82.  
  83. STRUCT PR_PNODE
  84.     root#(SIZEOF(PRS_ROOT))
  85.     active#(SIZEOF(PRS_ACTIVE))
  86.     factive#(SIZEOF(PRS_FACTIVE))
  87.     fnode#(SIZEOF(PRS_FNODE))
  88. ENDS
  89.  
  90. /* Constants for pselvar */
  91.  
  92. #define PSEL_FLAG_TAG 0x1
  93. #define PSEL_ORDER_NAME 0
  94. #define PSEL_ORDER_TIME 1
  95. #define PSEL_ORDER_DATE 2
  96. #define PSEL_ORDER_SIZE 3
  97. #define PSEL_ORDER_EXT 4
  98.  
  99. /* Types for pselvar */
  100.  
  101. STRUCT PSEL_REC
  102.     flags%
  103.     namlen%
  104.     info#(SIZEOF(P_INFO))
  105.     name#(P_FNAMESIZE)
  106. ENDS
  107.  
  108. /* Property of pselvar */
  109.  
  110. STRUCT PR_PSELVAR
  111.     root#(SIZEOF(PRS_ROOT))
  112.     varoot#(SIZEOF(PRS_VAROOT))
  113.     vafix#(SIZEOF(PRS_VAFIX))
  114.     vaflat#(SIZEOF(PRS_VAFLAT))
  115. ENDS
  116.  
  117. /* Constants for psel */
  118.  
  119. #define PSEL_RESET_DIR_ARRAY 0x01
  120. #define PSEL_RESET_FILE_ARRAY 0x02
  121. #define PSEL_RESET_FSPEC 0x04
  122. #define PSEL_DEVICE_ARRAY 0x10
  123. #define PSEL_DIR_ARRAY 0x20
  124. #define PSEL_FILE_ARRAY 0x40
  125. #define PSEL_DESCEND 0x80
  126. #define PSEL_ASCEND 0x100
  127. #define PSEL_SETPATH 0x200
  128. #define PSEL_INIT 0x400
  129. #define PSEL_SELDIR 0x800
  130. #define PSEL_ANOTHER_CMD 0x1000
  131. #define PSEL_GENERATE_DEF 0x2000
  132. #define PSEL_QUEUED_CMD 0x4000
  133. #define PSEL_CURRENTLY_BUSY (0x100|0x80|0x400|0x200|0x800)
  134. #define PSEL_SET_TAG -1
  135. #define PSEL_CLEAR_TAG 0
  136. #define PSEL_TOGGLE_TAG 1
  137.  
  138. /* Property of psel */
  139.  
  140. STRUCT PRS_PSEL
  141.     pfile%
  142.     pdir%
  143.     pnode%
  144.     dirent%
  145.     flags%
  146.     asccnt%
  147.     dirnum%
  148.     setpath%
  149.     builderr%
  150.     fck#(SIZEOF(P_FPARSE))
  151.     fspec#(P_FNAMESIZE)
  152. ENDS
  153.  
  154. STRUCT PR_PSEL
  155.     root#(SIZEOF(PRS_ROOT))
  156.     active#(SIZEOF(PRS_ACTIVE))
  157.     factive#(SIZEOF(PRS_FACTIVE))
  158.     fscan#(SIZEOF(PRS_FSCAN))
  159.     psel#(SIZEOF(PRS_PSEL))
  160. ENDS
  161.  
  162. /* Constants for fcasy */
  163.  
  164. #define FCOPY_DISP_SFTYPE 0x01
  165. #define FCOPY_DISP_SFSIZE 0x02
  166. #define FCOPY_DISP_SFDATE 0x04
  167. #define FCOPY_DISP_SFNAME 0x08
  168. #define FCOPY_DISP_RFTYPE 0x10
  169. #define FCOPY_DISP_RFSIZE 0x20
  170. #define FCOPY_DISP_RFDATE 0x40
  171. #define FCOPY_DISP_RFNAME 0x80
  172. #define FCOPY_DISP_BLKSIZ 0x100
  173. #define FCOPY_DISP_BLKNO 0x200
  174. #define FCOPY_DISP_PROTOCOL 0x400
  175. #define FCASY_READ_QUEUED 0x01
  176. #define FCASY_WRITE_QUEUED 0x02
  177.  
  178. /* Types for fcasy */
  179.  
  180. STRUCT FCOPY_DISP
  181.     flags%
  182.     protocol%
  183.     blksiz%
  184.     blkno%
  185.     sftype%
  186.     rftype%
  187.     sfsize&
  188.     rfsize&
  189.     sfdate&
  190.     rfdate&
  191.     sfname%
  192.     rfname%
  193. ENDS
  194.  
  195. /* Property of fcasy */
  196.  
  197. STRUCT PRS_FCASY
  198.     recvname%
  199.     flags%
  200. ENDS
  201.  
  202. STRUCT PR_FCASY
  203.     root#(SIZEOF(PRS_ROOT))
  204.     active#(SIZEOF(PRS_ACTIVE))
  205.     factive#(SIZEOF(PRS_FACTIVE))
  206.     fcasy#(SIZEOF(PRS_FCASY))
  207. ENDS
  208.  
  209. /* Property of fcsync */
  210.  
  211. STRUCT PR_FCSYNC
  212.     root#(SIZEOF(PRS_ROOT))
  213.     active#(SIZEOF(PRS_ACTIVE))
  214.     factive#(SIZEOF(PRS_FACTIVE))
  215.     fcasy#(SIZEOF(PRS_FCASY))
  216. ENDS
  217.  
  218. /* Property of fmmk */
  219.  
  220. STRUCT PR_FMMK
  221.     root#(SIZEOF(PRS_ROOT))
  222.     active#(SIZEOF(PRS_ACTIVE))
  223.     factive#(SIZEOF(PRS_FACTIVE))
  224. ENDS
  225.  
  226. /* Property of fmsrc */
  227.  
  228. STRUCT PR_FMSRC
  229.     root#(SIZEOF(PRS_ROOT))
  230.     active#(SIZEOF(PRS_ACTIVE))
  231.     factive#(SIZEOF(PRS_FACTIVE))
  232.     fcasy#(SIZEOF(PRS_FCASY))
  233. ENDS
  234.  
  235. /* Property of fmtarg */
  236.  
  237. STRUCT PR_FMTARG
  238.     root#(SIZEOF(PRS_ROOT))
  239.     active#(SIZEOF(PRS_ACTIVE))
  240.     factive#(SIZEOF(PRS_FACTIVE))
  241.     fcasy#(SIZEOF(PRS_FCASY))
  242. ENDS
  243.  
  244. /* Constants for fmfmt */
  245.  
  246. #define FMFMT_NAME 0x01
  247.  
  248. /* Property of fmfmt */
  249.  
  250. STRUCT PRS_FMFMT
  251.     rdword%
  252.     rdlen%
  253.     flags%
  254. ENDS
  255.  
  256. STRUCT PR_FMFMT
  257.     root#(SIZEOF(PRS_ROOT))
  258.     active#(SIZEOF(PRS_ACTIVE))
  259.     factive#(SIZEOF(PRS_FACTIVE))
  260.     fmfmt#(SIZEOF(PRS_FMFMT))
  261. ENDS
  262.  
  263. /* Property of fmscan */
  264.  
  265. STRUCT PR_FMSCAN
  266.     root#(SIZEOF(PRS_ROOT))
  267.     active#(SIZEOF(PRS_ACTIVE))
  268.     factive#(SIZEOF(PRS_FACTIVE))
  269.     fscan#(SIZEOF(PRS_FSCAN))
  270. ENDS
  271.  
  272. /* Constants for fman */
  273.  
  274. #define FMAN_READ_SIZE 0x800
  275. #define FMAN_COPYING 0
  276. #define FMAN_DELETE 1
  277. #define FMAN_RENAME 2
  278. #define FMAN_MAKE 3
  279. #define FMAN_REMOVE 4
  280. #define FMAN_FORMAT 5
  281. #define FMAN_NAME 6
  282. #define FMAN_ATTRIB 7
  283.  
  284. /* Property of fman */
  285.  
  286. STRUCT PRS_FMAN
  287.     srcfile%
  288.     targfile%
  289.     fmscan%
  290.     fmmk%
  291.     fmfmt%
  292.     action%
  293.     mode%
  294.     srclen%
  295.     dispinfo#(SIZEOF(FCOPY_DISP))
  296.     targname#(P_FNAMESIZE)
  297.     wildsrcname#(P_FNAMESIZE)
  298.     wildtargname#(P_FNAMESIZE)
  299.     buf#(OPPEVAL(FMAN_READ_SIZE))
  300. ENDS
  301.  
  302. STRUCT PR_FMAN
  303.     root#(SIZEOF(PRS_ROOT))
  304.     fman#(SIZEOF(PRS_FMAN))
  305. ENDS
  306.  
  307. /* Constants for locs */
  308.  
  309. #define LOCS_FLG_ROM 0x1000
  310. #define LOCS_FLG_LOC 0x2000
  311. #define LOCS_FLG_ROOT (0x4000|LOCS_FLG_LOC)
  312. #define LOCS_FLG_ROOT_ONLY 0x4000
  313.  
  314. /* Property of locs */
  315.  
  316. STRUCT PRS_LOCS
  317.     flags%
  318.     pcb%
  319.     pname%
  320.     match%
  321.     info#(SIZEOF(P_INFO))
  322.     name#(P_FNAMESIZE)
  323.     wildname#(P_FNAMESIZE)
  324. ENDS
  325.  
  326. STRUCT PR_LOCS
  327.     root#(SIZEOF(PRS_ROOT))
  328.     locs#(SIZEOF(PRS_LOCS))
  329. ENDS
  330.