rtable4.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /*******************************************************************************
  24. **
  25. ** rtable4.h
  26. **
  27. ** $TOG: rtable4.h /main/3 1999/10/14 17:48:06 mgreess $
  28. **
  29. ** RESTRICTED CONFIDENTIAL INFORMATION:
  30. **
  31. ** The information in this document is subject to special
  32. ** restrictions in a confidential disclosure agreement between
  33. ** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
  34. ** document outside HP, IBM, Sun, USL, SCO, or Univel without
  35. ** Sun's specific written approval. This document and all copies
  36. ** and derivative works thereof must be returned or destroyed at
  37. ** Sun's request.
  38. **
  39. ** (c) Copyright 1996 Digital Equipment Corporation.
  40. ** (c) Copyright 1996 Hewlett-Packard Company.
  41. ** (c) Copyright 1996 International Business Machines Corp.
  42. ** (c) Copyright 1993,1996 Sun Microsystems, Inc.
  43. ** (c) Copyright 1996 Novell, Inc.
  44. ** (c) Copyright 1996 FUJITSU LIMITED.
  45. ** (c) Copyright 1996 Hitachi.
  46. **
  47. *******************************************************************************/
  48. #ifndef _RTABLE4_H
  49. #define _RTABLE4_H
  50. #ifndef SunOS
  51. #include <rpc/types.h>
  52. #endif
  53. #include <rpc/rpc.h>
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. #include "connection.h"
  58. extern bool_t xdr_time_t(XDR *xdrs, time_t *objp);
  59. typedef char *Buffer_4;
  60. enum Interval_4 {
  61. single_4 = 0,
  62. daily_4 = 1,
  63. weekly_4 = 2,
  64. biweekly_4 = 3,
  65. monthly_4 = 4,
  66. yearly_4 = 5,
  67. nthWeekday_4 = 6,
  68. everyNthDay_4 = 7,
  69. everyNthWeek_4 = 8,
  70. everyNthMonth_4 = 9,
  71. otherPeriod_4 = 10,
  72. monThruFri_4 = 11,
  73. monWedFri_4 = 12,
  74. tueThur_4 = 13,
  75. daysOfWeek_4 = 14
  76. };
  77. typedef enum Interval_4 Interval_4;
  78. struct Period_4 {
  79. Interval_4 period;
  80. int nth;
  81. time_t enddate;
  82. };
  83. typedef struct Period_4 Period_4;
  84. enum Event_Type_4 {
  85. appointment_4 = 0,
  86. reminder_4 = 1,
  87. otherTag_4 = 2,
  88. holiday_4 = 3,
  89. toDo_4 = 4
  90. };
  91. typedef enum Event_Type_4 Event_Type_4;
  92. enum Options_4 {
  93. do_all_4 = 0,
  94. do_one_4 = 1,
  95. do_forward_4 = 2
  96. };
  97. typedef enum Options_4 Options_4;
  98. struct Tag_4 {
  99. Event_Type_4 tag;
  100. int showtime;
  101. struct Tag_4 *next;
  102. };
  103. typedef struct Tag_4 Tag_4;
  104. enum Privacy_Level_4 {
  105. public_4 = 0,
  106. private_4 = 1,
  107. semiprivate_4 = 2
  108. };
  109. typedef enum Privacy_Level_4 Privacy_Level_4;
  110. struct Attribute_4 {
  111. struct Attribute_4 *next;
  112. Buffer_4 attr;
  113. Buffer_4 value;
  114. Buffer_4 clientdata;
  115. };
  116. typedef struct Attribute_4 Attribute_4;
  117. typedef Attribute_4 *Attr_4;
  118. struct Except_4 {
  119. int ordinal;
  120. struct Except_4 *next;
  121. };
  122. typedef struct Except_4 Except_4;
  123. typedef Except_4 *Exception_4;
  124. struct Id_4 {
  125. time_t tick;
  126. long key;
  127. };
  128. typedef struct Id_4 Id_4;
  129. struct Uid_4 {
  130. struct Id_4 appt_id;
  131. struct Uid_4 *next;
  132. };
  133. typedef struct Uid_4 Uid_4;
  134. enum Appt_Status_4 {
  135. active_4 = 0,
  136. pendingAdd_4 = 1,
  137. pendingDelete_4 = 2,
  138. committed_4 = 3,
  139. cancelled_4 = 4,
  140. completed_4 = 5
  141. };
  142. typedef enum Appt_Status_4 Appt_Status_4;
  143. struct Appt_4 {
  144. struct Id_4 appt_id;
  145. struct Tag_4 *tag;
  146. int duration;
  147. int ntimes;
  148. Buffer_4 what;
  149. struct Period_4 period;
  150. Buffer_4 author;
  151. Buffer_4 client_data;
  152. struct Except_4 *exception;
  153. struct Attribute_4 *attr;
  154. Appt_Status_4 appt_status;
  155. Privacy_Level_4 privacy;
  156. struct Appt_4 *next;
  157. };
  158. typedef struct Appt_4 Appt_4;
  159. struct Abb_Appt_4 {
  160. struct Id_4 appt_id;
  161. struct Tag_4 *tag;
  162. Buffer_4 what;
  163. int duration;
  164. struct Period_4 period;
  165. struct Abb_Appt_4 *next;
  166. Appt_Status_4 appt_status;
  167. Privacy_Level_4 privacy;
  168. };
  169. typedef struct Abb_Appt_4 Abb_Appt_4;
  170. struct Apptid_4 {
  171. struct Id_4 *oid;
  172. struct Appt_4 *new_appt;
  173. Options_4 option;
  174. };
  175. typedef struct Apptid_4 Apptid_4;
  176. struct Reminder_4 {
  177. struct Id_4 appt_id;
  178. time_t tick;
  179. Attribute_4 attr;
  180. struct Reminder_4 *next;
  181. };
  182. typedef struct Reminder_4 Reminder_4;
  183. enum Table_Res_Type_4 {
  184. AP_4 = 0,
  185. RM_4 = 1,
  186. AB_4 = 2,
  187. ID_4 = 3
  188. };
  189. typedef enum Table_Res_Type_4 Table_Res_Type_4;
  190. struct Table_Res_List_4 {
  191. Table_Res_Type_4 tag;
  192. union {
  193. Appt_4 *a;
  194. Reminder_4 *r;
  195. Abb_Appt_4 *b;
  196. Uid_4 *i;
  197. } Table_Res_List_4_u;
  198. };
  199. typedef struct Table_Res_List_4 Table_Res_List_4;
  200. enum Access_Status_4 {
  201. access_ok_4 = 0,
  202. access_added_4 = 1,
  203. access_removed_4 = 2,
  204. access_failed_4 = 3,
  205. access_exists_4 = 4,
  206. access_partial_4 = 5,
  207. access_other_4 = 6,
  208. access_notable_4 = 7,
  209. access_notsupported_4 = 8,
  210. access_incomplete_4 = 9
  211. };
  212. typedef enum Access_Status_4 Access_Status_4;
  213. struct Table_Res_4 {
  214. Access_Status_4 status;
  215. Table_Res_List_4 res;
  216. };
  217. typedef struct Table_Res_4 Table_Res_4;
  218. #define access_none_4 0x0 /* owner only */
  219. #define access_read_4 0x1
  220. #define access_write_4 0x2
  221. #define access_delete_4 0x4
  222. #define access_exec_4 0x8 /* execution permission is a hack! */
  223. #define WORLD "world" /* special user */
  224. struct Access_Entry_4 {
  225. Buffer_4 who;
  226. int access_type;
  227. struct Access_Entry_4 *next;
  228. };
  229. typedef struct Access_Entry_4 Access_Entry_4;
  230. struct Access_Args_4 {
  231. Buffer_4 target;
  232. Access_Entry_4 *access_list;
  233. };
  234. typedef struct Access_Args_4 Access_Args_4;
  235. struct Range_4 {
  236. time_t key1;
  237. time_t key2;
  238. struct Range_4 *next;
  239. };
  240. typedef struct Range_4 Range_4;
  241. struct Keyrange_4 {
  242. long key;
  243. time_t tick1;
  244. time_t tick2;
  245. struct Keyrange_4 *next;
  246. };
  247. typedef struct Keyrange_4 Keyrange_4;
  248. struct Uidopt_4 {
  249. struct Id_4 appt_id;
  250. Options_4 option;
  251. struct Uidopt_4 *next;
  252. };
  253. typedef struct Uidopt_4 Uidopt_4;
  254. enum Table_Args_Type_4 {
  255. TICK_4 = 0,
  256. APPTID_4 = 1,
  257. UID_4 = 2,
  258. APPT_4 = 3,
  259. RANGE_4 = 4,
  260. KEYRANGE_4 = 5,
  261. UIDOPT_4 = 6
  262. };
  263. typedef enum Table_Args_Type_4 Table_Args_Type_4;
  264. struct Args_4 {
  265. Table_Args_Type_4 tag;
  266. union {
  267. time_t tick;
  268. Apptid_4 apptid;
  269. Uid_4 *key;
  270. Appt_4 *appt;
  271. Range_4 *range;
  272. Keyrange_4 *keyrange;
  273. Uidopt_4 *uidopt;
  274. } Args_4_u;
  275. };
  276. typedef struct Args_4 Args_4;
  277. struct Table_Args_4 {
  278. Buffer_4 target;
  279. Args_4 args;
  280. int pid;
  281. };
  282. typedef struct Table_Args_4 Table_Args_4;
  283. struct Registration_4 {
  284. Buffer_4 target;
  285. u_long prognum;
  286. u_long versnum;
  287. u_long procnum;
  288. struct Registration_4 *next;
  289. int pid;
  290. };
  291. typedef struct Registration_4 Registration_4;
  292. struct Table_Op_Args_4 {
  293. Buffer_4 target;
  294. Buffer_4 new_target;
  295. };
  296. typedef struct Table_Op_Args_4 Table_Op_Args_4;
  297. enum Table_Status_4 {
  298. ok_4 = 0,
  299. duplicate_4 = 1,
  300. badtable_4 = 2,
  301. notable_4 = 3,
  302. denied_4 = 4,
  303. other_4 = 5,
  304. tbl_not_owner_4 = 6,
  305. tbl_exist_4 = 7,
  306. tbl_notsupported_4 = 8
  307. };
  308. typedef enum Table_Status_4 Table_Status_4;
  309. enum Registration_Status_4 {
  310. registered_4 = 0,
  311. failed_4 = 1,
  312. deregistered_4 = 2,
  313. confused_4 = 3,
  314. reg_notable_4 = 4
  315. };
  316. typedef enum Registration_Status_4 Registration_Status_4;
  317. /*
  318. * rtable_delete and rtable_change take over the functionality of
  319. * rtable_delete_instance and rtable_change_instance repectively.
  320. * rtable_delete_instance and rtable_change_instance are now dummy
  321. * routines exist for backward compatibility purpose and return
  322. * access_notsupported.
  323. */
  324. #define TABLEPROG ((unsigned long)(100068))
  325. #define TABLEVERS_4 ((unsigned long)(4))
  326. #if defined(__STDC__) || defined(__cplusplus)
  327. #define rtable_ping ((unsigned long)(0))
  328. extern void * _DtCm_rtable_ping_4(void *, _DtCm_Connection *);
  329. extern void * _DtCm_rtable_ping_4_svc(void *, struct svc_req *);
  330. #define rtable_lookup ((unsigned long)(1))
  331. extern Table_Res_4 * _DtCm_rtable_lookup_4(Table_Args_4 *, _DtCm_Connection *);
  332. extern Table_Res_4 * _DtCm_rtable_lookup_4_svc(Table_Args_4 *, struct svc_req *);
  333. #define rtable_lookup_next_larger ((unsigned long)(2))
  334. extern Table_Res_4 * _DtCm_rtable_lookup_next_larger_4(Table_Args_4 *, _DtCm_Connection *);
  335. extern Table_Res_4 * _DtCm_rtable_lookup_next_larger_4_svc(Table_Args_4 *, struct svc_req *);
  336. #define rtable_lookup_next_smaller ((unsigned long)(3))
  337. extern Table_Res_4 * _DtCm_rtable_lookup_next_smaller_4(Table_Args_4 *, _DtCm_Connection *);
  338. extern Table_Res_4 * _DtCm_rtable_lookup_next_smaller_4_svc(Table_Args_4 *, struct svc_req *);
  339. #define rtable_lookup_range ((unsigned long)(4))
  340. extern Table_Res_4 * _DtCm_rtable_lookup_range_4(Table_Args_4 *, _DtCm_Connection *);
  341. extern Table_Res_4 * _DtCm_rtable_lookup_range_4_svc(Table_Args_4 *, struct svc_req *);
  342. #define rtable_abbreviated_lookup_range ((unsigned long)(5))
  343. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_range_4(Table_Args_4 *, _DtCm_Connection *);
  344. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_range_4_svc(Table_Args_4 *, struct svc_req *);
  345. #define rtable_insert ((unsigned long)(6))
  346. extern Table_Res_4 * _DtCm_rtable_insert_4(Table_Args_4 *, _DtCm_Connection *);
  347. extern Table_Res_4 * _DtCm_rtable_insert_4_svc(Table_Args_4 *, struct svc_req *);
  348. #define rtable_delete ((unsigned long)(7))
  349. extern Table_Res_4 * _DtCm_rtable_delete_4(Table_Args_4 *, _DtCm_Connection *);
  350. extern Table_Res_4 * _DtCm_rtable_delete_4_svc(Table_Args_4 *, struct svc_req *);
  351. #define rtable_delete_instance ((unsigned long)(8))
  352. extern Table_Res_4 * _DtCm_rtable_delete_instance_4(Table_Args_4 *, _DtCm_Connection *);
  353. extern Table_Res_4 * _DtCm_rtable_delete_instance_4_svc(Table_Args_4 *, struct svc_req *);
  354. #define rtable_change ((unsigned long)(9))
  355. extern Table_Res_4 * _DtCm_rtable_change_4(Table_Args_4 *, _DtCm_Connection *);
  356. extern Table_Res_4 * _DtCm_rtable_change_4_svc(Table_Args_4 *, struct svc_req *);
  357. #define rtable_change_instance ((unsigned long)(10))
  358. extern Table_Res_4 * _DtCm_rtable_change_instance_4(Table_Args_4 *, _DtCm_Connection *);
  359. extern Table_Res_4 * _DtCm_rtable_change_instance_4_svc(Table_Args_4 *, struct svc_req *);
  360. #define rtable_lookup_next_reminder ((unsigned long)(11))
  361. extern Table_Res_4 * _DtCm_rtable_lookup_next_reminder_4(Table_Args_4 *, _DtCm_Connection *);
  362. extern Table_Res_4 * _DtCm_rtable_lookup_next_reminder_4_svc(Table_Args_4 *, struct svc_req *);
  363. #define rtable_check ((unsigned long)(12))
  364. extern Table_Status_4 * _DtCm_rtable_check_4(Table_Args_4 *, _DtCm_Connection *);
  365. extern Table_Status_4 * _DtCm_rtable_check_4_svc(Table_Args_4 *, struct svc_req *);
  366. #define rtable_flush_table ((unsigned long)(13))
  367. extern Table_Status_4 * _DtCm_rtable_flush_table_4(Table_Args_4 *, _DtCm_Connection *);
  368. extern Table_Status_4 * _DtCm_rtable_flush_table_4_svc(Table_Args_4 *, struct svc_req *);
  369. #define rtable_size ((unsigned long)(14))
  370. extern int * _DtCm_rtable_size_4(Table_Args_4 *, _DtCm_Connection *);
  371. extern int * _DtCm_rtable_size_4_svc(Table_Args_4 *, struct svc_req *);
  372. #define register_callback ((unsigned long)(15))
  373. extern Registration_Status_4 * _DtCm_register_callback_4(Registration_4 *, _DtCm_Connection *);
  374. extern Registration_Status_4 * _DtCm_register_callback_4_svc(Registration_4 *, struct svc_req *);
  375. #define deregister_callback ((unsigned long)(16))
  376. extern Registration_Status_4 * _DtCm_deregister_callback_4(Registration_4 *, _DtCm_Connection *);
  377. extern Registration_Status_4 * _DtCm_deregister_callback_4_svc(Registration_4 *, struct svc_req *);
  378. #define rtable_set_access ((unsigned long)(17))
  379. extern Access_Status_4 * _DtCm_rtable_set_access_4(Access_Args_4 *, _DtCm_Connection *);
  380. extern Access_Status_4 * _DtCm_rtable_set_access_4_svc(Access_Args_4 *, struct svc_req *);
  381. #define rtable_get_access ((unsigned long)(18))
  382. extern Access_Args_4 * _DtCm_rtable_get_access_4(Access_Args_4 *, _DtCm_Connection *);
  383. extern Access_Args_4 * _DtCm_rtable_get_access_4_svc(Access_Args_4 *, struct svc_req *);
  384. #define rtable_abbreviated_lookup_key_range ((unsigned long)(19))
  385. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_key_range_4(Table_Args_4 *, _DtCm_Connection *);
  386. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_key_range_4_svc(Table_Args_4 *, struct svc_req *);
  387. #define rtable_gmtoff ((unsigned long)(20))
  388. extern long * _DtCm_rtable_gmtoff_4(void *, _DtCm_Connection *);
  389. extern long * _DtCm_rtable_gmtoff_4_svc(void *, struct svc_req *);
  390. #define rtable_create ((unsigned long)(21))
  391. extern Table_Status_4 * _DtCm_rtable_create_4(Table_Op_Args_4 *, _DtCm_Connection *);
  392. extern Table_Status_4 * _DtCm_rtable_create_4_svc(Table_Op_Args_4 *, struct svc_req *);
  393. #define rtable_remove ((unsigned long)(22))
  394. extern Table_Status_4 * _DtCm_rtable_remove_4(Table_Op_Args_4 *, _DtCm_Connection *);
  395. extern Table_Status_4 * _DtCm_rtable_remove_4_svc(Table_Op_Args_4 *, struct svc_req *);
  396. #define rtable_rename ((unsigned long)(23))
  397. extern Table_Status_4 * _DtCm_rtable_rename_4(Table_Op_Args_4 *, _DtCm_Connection *);
  398. extern Table_Status_4 * _DtCm_rtable_rename_4_svc(Table_Op_Args_4 *, struct svc_req *);
  399. extern int tableprog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
  400. #else /* K&R C */
  401. #define rtable_ping ((unsigned long)(0))
  402. extern void * _DtCm_rtable_ping_4();
  403. extern void * _DtCm_rtable_ping_4_svc();
  404. #define rtable_lookup ((unsigned long)(1))
  405. extern Table_Res_4 * _DtCm_rtable_lookup_4();
  406. extern Table_Res_4 * _DtCm_rtable_lookup_4_svc();
  407. #define rtable_lookup_next_larger ((unsigned long)(2))
  408. extern Table_Res_4 * _DtCm_rtable_lookup_next_larger_4();
  409. extern Table_Res_4 * _DtCm_rtable_lookup_next_larger_4_svc();
  410. #define rtable_lookup_next_smaller ((unsigned long)(3))
  411. extern Table_Res_4 * _DtCm_rtable_lookup_next_smaller_4();
  412. extern Table_Res_4 * _DtCm_rtable_lookup_next_smaller_4_svc();
  413. #define rtable_lookup_range ((unsigned long)(4))
  414. extern Table_Res_4 * _DtCm_rtable_lookup_range_4();
  415. extern Table_Res_4 * _DtCm_rtable_lookup_range_4_svc();
  416. #define rtable_abbreviated_lookup_range ((unsigned long)(5))
  417. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_range_4();
  418. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_range_4_svc();
  419. #define rtable_insert ((unsigned long)(6))
  420. extern Table_Res_4 * _DtCm_rtable_insert_4();
  421. extern Table_Res_4 * _DtCm_rtable_insert_4_svc();
  422. #define rtable_delete ((unsigned long)(7))
  423. extern Table_Res_4 * _DtCm_rtable_delete_4();
  424. extern Table_Res_4 * _DtCm_rtable_delete_4_svc();
  425. #define rtable_delete_instance ((unsigned long)(8))
  426. extern Table_Res_4 * _DtCm_rtable_delete_instance_4();
  427. extern Table_Res_4 * _DtCm_rtable_delete_instance_4_svc();
  428. #define rtable_change ((unsigned long)(9))
  429. extern Table_Res_4 * _DtCm_rtable_change_4();
  430. extern Table_Res_4 * _DtCm_rtable_change_4_svc();
  431. #define rtable_change_instance ((unsigned long)(10))
  432. extern Table_Res_4 * _DtCm_rtable_change_instance_4();
  433. extern Table_Res_4 * _DtCm_rtable_change_instance_4_svc();
  434. #define rtable_lookup_next_reminder ((unsigned long)(11))
  435. extern Table_Res_4 * _DtCm_rtable_lookup_next_reminder_4();
  436. extern Table_Res_4 * _DtCm_rtable_lookup_next_reminder_4_svc();
  437. #define rtable_check ((unsigned long)(12))
  438. extern Table_Status_4 * _DtCm_rtable_check_4();
  439. extern Table_Status_4 * _DtCm_rtable_check_4_svc();
  440. #define rtable_flush_table ((unsigned long)(13))
  441. extern Table_Status_4 * _DtCm_rtable_flush_table_4();
  442. extern Table_Status_4 * _DtCm_rtable_flush_table_4_svc();
  443. #define rtable_size ((unsigned long)(14))
  444. extern int * _DtCm_rtable_size_4();
  445. extern int * _DtCm_rtable_size_4_svc();
  446. #define register_callback ((unsigned long)(15))
  447. extern Registration_Status_4 * _DtCm_register_callback_4();
  448. extern Registration_Status_4 * _DtCm_register_callback_4_svc();
  449. #define deregister_callback ((unsigned long)(16))
  450. extern Registration_Status_4 * _DtCm_deregister_callback_4();
  451. extern Registration_Status_4 * _DtCm_deregister_callback_4_svc();
  452. #define rtable_set_access ((unsigned long)(17))
  453. extern Access_Status_4 * _DtCm_rtable_set_access_4();
  454. extern Access_Status_4 * _DtCm_rtable_set_access_4_svc();
  455. #define rtable_get_access ((unsigned long)(18))
  456. extern Access_Args_4 * _DtCm_rtable_get_access_4();
  457. extern Access_Args_4 * _DtCm_rtable_get_access_4_svc();
  458. #define rtable_abbreviated_lookup_key_range ((unsigned long)(19))
  459. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_key_range_4();
  460. extern Table_Res_4 * _DtCm_rtable_abbreviated_lookup_key_range_4_svc();
  461. #define rtable_gmtoff ((unsigned long)(20))
  462. extern long * _DtCm_rtable_gmtoff_4();
  463. extern long * _DtCm_rtable_gmtoff_4_svc();
  464. #define rtable_create ((unsigned long)(21))
  465. extern Table_Status_4 * _DtCm_rtable_create_4();
  466. extern Table_Status_4 * _DtCm_rtable_create_4_svc();
  467. #define rtable_remove ((unsigned long)(22))
  468. extern Table_Status_4 * _DtCm_rtable_remove_4();
  469. extern Table_Status_4 * _DtCm_rtable_remove_4_svc();
  470. #define rtable_rename ((unsigned long)(23))
  471. extern Table_Status_4 * _DtCm_rtable_rename_4();
  472. extern Table_Status_4 * _DtCm_rtable_rename_4_svc();
  473. extern int tableprog_4_freeresult();
  474. #endif /* K&R C */
  475. /* the xdr functions */
  476. #if defined(__STDC__) || defined(__cplusplus)
  477. extern bool_t _DtCm_xdr_Buffer_4(XDR *, Buffer_4*);
  478. extern bool_t _DtCm_xdr_Interval_4(XDR *, Interval_4*);
  479. extern bool_t _DtCm_xdr_Period_4(XDR *, Period_4*);
  480. extern bool_t _DtCm_xdr_Event_Type_4(XDR *, Event_Type_4*);
  481. extern bool_t _DtCm_xdr_Options_4(XDR *, Options_4*);
  482. extern bool_t _DtCm_xdr_Tag_4(XDR *, Tag_4*);
  483. extern bool_t _DtCm_xdr_Privacy_Level_4(XDR *, Privacy_Level_4*);
  484. extern bool_t _DtCm_xdr_Attribute_4(XDR *, Attribute_4*);
  485. extern bool_t _DtCm_xdr_Attr_4(XDR *, Attr_4*);
  486. extern bool_t _DtCm_xdr_Except_4(XDR *, Except_4*);
  487. extern bool_t _DtCm_xdr_Exception_4(XDR *, Exception_4*);
  488. extern bool_t _DtCm_xdr_Id_4(XDR *, Id_4*);
  489. extern bool_t _DtCm_xdr_Uid_4(XDR *, Uid_4*);
  490. extern bool_t _DtCm_xdr_Appt_Status_4(XDR *, Appt_Status_4*);
  491. extern bool_t _DtCm_xdr_Appt_4(XDR *, Appt_4*);
  492. extern bool_t _DtCm_xdr_Abb_Appt_4(XDR *, Abb_Appt_4*);
  493. extern bool_t _DtCm_xdr_Apptid_4(XDR *, Apptid_4*);
  494. extern bool_t _DtCm_xdr_Reminder_4(XDR *, Reminder_4*);
  495. extern bool_t _DtCm_xdr_Table_Res_Type_4(XDR *, Table_Res_Type_4*);
  496. extern bool_t _DtCm_xdr_Table_Res_List_4(XDR *, Table_Res_List_4*);
  497. extern bool_t _DtCm_xdr_Access_Status_4(XDR *, Access_Status_4*);
  498. extern bool_t _DtCm_xdr_Table_Res_4(XDR *, Table_Res_4*);
  499. extern bool_t _DtCm_xdr_Access_Entry_4(XDR *, Access_Entry_4*);
  500. extern bool_t _DtCm_xdr_Access_Args_4(XDR *, Access_Args_4*);
  501. extern bool_t _DtCm_xdr_Range_4(XDR *, Range_4*);
  502. extern bool_t _DtCm_xdr_Keyrange_4(XDR *, Keyrange_4*);
  503. extern bool_t _DtCm_xdr_Uidopt_4(XDR *, Uidopt_4*);
  504. extern bool_t _DtCm_xdr_Table_Args_Type_4(XDR *, Table_Args_Type_4*);
  505. extern bool_t _DtCm_xdr_Args_4(XDR *, Args_4*);
  506. extern bool_t _DtCm_xdr_Table_Args_4(XDR *, Table_Args_4*);
  507. extern bool_t _DtCm_xdr_Registration_4(XDR *, Registration_4*);
  508. extern bool_t _DtCm_xdr_Table_Op_Args_4(XDR *, Table_Op_Args_4*);
  509. extern bool_t _DtCm_xdr_Table_Status_4(XDR *, Table_Status_4*);
  510. extern bool_t _DtCm_xdr_Registration_Status_4(XDR *, Registration_Status_4*);
  511. #else /* K&R C */
  512. extern bool_t _DtCm_xdr_Buffer_4();
  513. extern bool_t _DtCm_xdr_Interval_4();
  514. extern bool_t _DtCm_xdr_Period_4();
  515. extern bool_t _DtCm_xdr_Event_Type_4();
  516. extern bool_t _DtCm_xdr_Options_4();
  517. extern bool_t _DtCm_xdr_Tag_4();
  518. extern bool_t _DtCm_xdr_Privacy_Level_4();
  519. extern bool_t _DtCm_xdr_Attribute_4();
  520. extern bool_t _DtCm_xdr_Attr_4();
  521. extern bool_t _DtCm_xdr_Except_4();
  522. extern bool_t _DtCm_xdr_Exception_4();
  523. extern bool_t _DtCm_xdr_Id_4();
  524. extern bool_t _DtCm_xdr_Uid_4();
  525. extern bool_t _DtCm_xdr_Appt_Status_4();
  526. extern bool_t _DtCm_xdr_Appt_4();
  527. extern bool_t _DtCm_xdr_Abb_Appt_4();
  528. extern bool_t _DtCm_xdr_Apptid_4();
  529. extern bool_t _DtCm_xdr_Reminder_4();
  530. extern bool_t _DtCm_xdr_Table_Res_Type_4();
  531. extern bool_t _DtCm_xdr_Table_Res_List_4();
  532. extern bool_t _DtCm_xdr_Access_Status_4();
  533. extern bool_t _DtCm_xdr_Table_Res_4();
  534. extern bool_t _DtCm_xdr_Access_Entry_4();
  535. extern bool_t _DtCm_xdr_Access_Args_4();
  536. extern bool_t _DtCm_xdr_Range_4();
  537. extern bool_t _DtCm_xdr_Keyrange_4();
  538. extern bool_t _DtCm_xdr_Uidopt_4();
  539. extern bool_t _DtCm_xdr_Table_Args_Type_4();
  540. extern bool_t _DtCm_xdr_Args_4();
  541. extern bool_t _DtCm_xdr_Table_Args_4();
  542. extern bool_t _DtCm_xdr_Registration_4();
  543. extern bool_t _DtCm_xdr_Table_Op_Args_4();
  544. extern bool_t _DtCm_xdr_Table_Status_4();
  545. extern bool_t _DtCm_xdr_Registration_Status_4();
  546. #endif /* K&R C */
  547. #ifdef __cplusplus
  548. }
  549. #endif
  550. #endif