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

  1. #define IPC_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 server */
  12.  
  13. STRUCT PRS_SERVER
  14.     q#(SIZEOF(P_QUE))
  15.     t1%
  16.     t2%
  17.     cid%
  18. ENDS
  19.  
  20. STRUCT PR_SERVER
  21.     root#(SIZEOF(PRS_ROOT))
  22.     server#(SIZEOF(PRS_SERVER))
  23. ENDS
  24.  
  25. /* Constants for linksv */
  26.  
  27. #define TY_LINKSV_STEP 0x21
  28. #define TY_LINKSV_DEATH 0x22
  29. #define DF_LINK_NATIVE 0
  30. #define DF_LINK_TEXT 1
  31. #define DF_LINK_TABTEXT 2
  32. #define DF_LINK_VOICE 3
  33. #define DF_LINK_PARAS 4
  34. #define DF_LINK_SPR 5
  35. #define DF_LINK_WRD 6
  36. #define DF_LINK_AGD 7
  37.  
  38. /* Property of linksv */
  39.  
  40. STRUCT PRS_LINKSV
  41.     buf%
  42.     len%
  43. ENDS
  44.  
  45. STRUCT PR_LINKSV
  46.     root#(SIZEOF(PRS_ROOT))
  47.     server#(SIZEOF(PRS_SERVER))
  48.     linksv#(SIZEOF(PRS_LINKSV))
  49. ENDS
  50.  
  51. /* Property of linkcl */
  52.  
  53. STRUCT PRS_LINKCL
  54.     pid%
  55. ENDS
  56.  
  57. STRUCT PR_LINKCL
  58.     root#(SIZEOF(PRS_ROOT))
  59.     linkcl#(SIZEOF(PRS_LINKCL))
  60. ENDS
  61.  
  62. /* Constants for toplip */
  63.  
  64. #define TY_TOPLIP_LINE 0x10
  65. #define TY_TOPLIP_DEATH 0x11
  66.  
  67. /* Types for toplip */
  68.  
  69. STRUCT PR_TOPLIP_STATUS
  70.     stat%
  71.     mode%
  72.     line%
  73.     offset%
  74. ENDS
  75.  
  76. STRUCT PR_TOPLIP_SOURCE
  77.     pid%
  78.     bofs%
  79.     sofs%
  80. ENDS
  81.  
  82. /* Property of toplip */
  83.  
  84. STRUCT PRS_TOPLIP
  85.     st#(SIZEOF(PR_TOPLIP_STATUS))
  86.     buf#(256)
  87. ENDS
  88.  
  89. STRUCT PR_TOPLIP
  90.     root#(SIZEOF(PRS_ROOT))
  91.     server#(SIZEOF(PRS_SERVER))
  92.     toplip#(SIZEOF(PRS_TOPLIP))
  93. ENDS
  94.  
  95. /* Constants for exopl */
  96.  
  97. #define EXOPL_ISEXP 0x01
  98. #define EXOPL_SIGNAL 0x02
  99. #define EXOPL_NTFY 0x04
  100.  
  101. /* Types for exopl */
  102.  
  103. STRUCT EXOPL_RESBUF
  104.     value 
  105.     error%
  106.     line%
  107.     offset%
  108.     src#(P_FNAMESIZE)
  109. ENDS
  110.  
  111. STRUCT EXOPL_PAR
  112.     flags%
  113.     cid%
  114.     qofs%
  115.     qlen%
  116.     rofs%
  117. ENDS
  118.  
  119. /* Property of exopl */
  120.  
  121. STRUCT PRS_EXOPL
  122.     result#(SIZEOF(EXOPL_RESBUF))
  123. ENDS
  124.  
  125. STRUCT PR_EXOPL
  126.     root#(SIZEOF(PRS_ROOT))
  127.     active#(SIZEOF(PRS_ACTIVE))
  128.     exopl#(SIZEOF(PRS_EXOPL))
  129. ENDS
  130.  
  131. /* Constants for cmap */
  132.  
  133. #define DR_CMAP_END 0
  134. #define DR_CMAP_TEXT 1
  135. #define DR_CMAP_SPACES 2
  136. #define DR_CMAP_SCROLL 3
  137. #define OP_CMAP_CLEAR 1
  138. #define OP_CMAP_INVALID 2
  139.  
  140. /* Types for cmap */
  141.  
  142. STRUCT PR_CMAP_DRAW
  143.     len%
  144.     buf%
  145.     row#
  146.     col#
  147. ENDS
  148.  
  149. /* Property of cmap */
  150.  
  151. STRUCT PRS_CMAP
  152.     base%
  153.     toprow%
  154.     width%
  155.     height%
  156.     row%
  157.     col%
  158.     scroll%
  159.     wrap#
  160.     slock#
  161. ENDS
  162.  
  163. STRUCT PR_CMAP
  164.     root#(SIZEOF(PRS_ROOT))
  165.     cmap#(SIZEOF(PRS_CMAP))
  166. ENDS
  167.  
  168. /* Constants for voice */
  169.  
  170. #define TY_VOICE_PLAY 0
  171. #define TY_VOICE_EDIT 1
  172. #define TY_VOICE_CANCEL 2
  173.  
  174. /* Types for voice */
  175.  
  176. STRUCT RQ_VOICE_MSG
  177.     pstat%
  178.     buf%
  179.     len%
  180.     maxlen%
  181. ENDS
  182.  
  183. /* Property of voice */
  184.  
  185. STRUCT PRS_VOICE
  186.     owner%
  187.     method%
  188. ENDS
  189.  
  190. STRUCT PR_VOICE
  191.     root#(SIZEOF(PRS_ROOT))
  192.     active#(SIZEOF(PRS_ACTIVE))
  193.     voice#(SIZEOF(PRS_VOICE))
  194. ENDS
  195.  
  196. /* Constants for notify */
  197.  
  198. #define NOTIFY_MESS_TYPE 0
  199. #define NOTIFY_MESS_ARGS 5
  200. #define NOTIFY_MESS_SIZE 64
  201.  
  202. /* Property of notify */
  203.  
  204. STRUCT PRS_NOTIFY
  205.     err0text#(NOTIFY_MESS_SIZE)
  206.     err1text#(NOTIFY_MESS_SIZE)
  207.     but0text#(NOTIFY_MESS_SIZE)
  208.     but1text#(NOTIFY_MESS_SIZE)
  209.     but2text#(NOTIFY_MESS_SIZE)
  210.     pname#(NOTIFY_MESS_SIZE)
  211. ENDS
  212.  
  213. STRUCT PR_NOTIFY
  214.     root#(SIZEOF(PRS_ROOT))
  215.     active#(SIZEOF(PRS_ACTIVE))
  216.     ipcs#(SIZEOF(PRS_IPCS))
  217.     notify#(SIZEOF(PRS_NOTIFY))
  218. ENDS
  219.  
  220. /* Constants for consol */
  221.  
  222. #define CONSOL_MESS_READ 0
  223. #define CONSOL_MESS_WRITE 1
  224. #define CONSOL_MESS_CLOSE 2
  225. #define CONSOL_MESS_SET 3
  226. #define CONSOL_MESS_SENSE 4
  227. #define CONSOL_MESS_TEST 5
  228. #define CONSOL_MESS_FLUSH 6
  229. #define CONSOL_MESS_CANCEL 7
  230. #define CONSOL_MESS_EDIT 8
  231. #define CONSOL_MESS_SPARE1 9
  232. #define CONSOL_MESS_SPARE2 10
  233. #define CONSOL_MESS_SPARE3 11
  234. #define CONSOL_MESS_SPARE4 12
  235. #define CONSOL_MESS_DIED 13
  236. #define CONSOL_KEY_TYPE_AHEAD 32
  237. #define CONSOL_MAX_STRING 255
  238.  
  239. /* Types for consol */
  240.  
  241. STRUCT PR_CONSOL_WMSG_KEY
  242.     keycode%
  243.     modifiers#
  244.     count#
  245. ENDS
  246.  
  247. /* Property of consol */
  248.  
  249. STRUCT PRS_CONSOL
  250.     cmap%
  251.     rcomp%
  252.     rmess%
  253.     head%
  254.     tail%
  255.     list#(OPPEVAL(SIZEOF(PR_CONSOL_WMSG_KEY)*CONSOL_KEY_TYPE_AHEAD))
  256. ENDS
  257.  
  258. STRUCT PR_CONSOL
  259.     root#(SIZEOF(PRS_ROOT))
  260.     server#(SIZEOF(PRS_SERVER))
  261.     consol#(SIZEOF(PRS_CONSOL))
  262. ENDS
  263.