Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / server / rpcextras.h
1 /* $XConsortium: rpcextras.h /main/4 1995/11/09 12:51:20 rswiston $ */
2 /*
3  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
4  *  (c) Copyright 1993, 1994 International Business Machines Corp.
5  *  (c) Copyright 1993, 1994 Novell, Inc.
6  *  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
7  */
8
9 #ifndef _RPCEXTRAS_H
10 #define _RPCEXTRAS_H
11
12 #include "ansi_c.h"
13
14 #define RPCGEN_ACTION(routine) routine
15
16 struct rpcgen_table {
17     char        *(*proc)();
18     xdrproc_t   xdr_arg;
19     unsigned    len_arg;
20     xdrproc_t   xdr_res;
21     unsigned    len_res;
22 };
23
24 /* you might want to consider a program list rather than a table */
25 /* a list would be cleaner, a table easier.  it's a table here for clarity */
26 typedef struct prog_table {
27         struct rpcgen_table *vers;
28         u_long nproc;
29         } program_table;
30
31 typedef struct prog_object {
32         program_table *prog;
33         u_long nvers;
34         u_long program_num;
35         } program_object;
36
37 typedef program_object *program_handle;
38
39 extern program_handle newph     P(());
40 extern program_handle getph     P(());
41
42 #endif