1 /* $XConsortium: programtable.c /main/4 1995/11/09 12:47:18 rswiston $ */
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.
9 /* implements the program table for this program number */
10 /* this module doesn't know anything about the specifics of any */
11 /* rtable except how many rtables are supported */
12 /* - ie it doesn't include rtable*.h. */
13 /* The actual program table entries are filled in by the rtable*.c's */
15 #include <EUSCompat.h>
18 #include "rpcextras.h"
20 program_table ptable[] = {
21 (struct rpcgen_table *)NULL, 0, /* rtable 0 no longer supported */
22 (struct rpcgen_table *)NULL, 0, /* rtable 1 no longer supported */
23 (struct rpcgen_table *)NULL, 0, /* rtable 2 filled in by rtable2.c */
24 (struct rpcgen_table *)NULL, 0, /* rtable 3 filled in by rtable3.c */
25 (struct rpcgen_table *)NULL, 0, /* rtable 4 filled in by rtable4.c */
26 (struct rpcgen_table *)NULL, 0, /* rtable 5 filled in by cmsfunc.c */
29 /* program_num is filled in from one of the rtable*.c's so that */
30 /* it can be declared from one of the rtable*.h's */
35 program_handle program = &po;
37 program_handle newph()
39 extern void initrtable2();
40 extern void initrtable3();
41 extern void initrtable4();
42 extern void initfunctable();
44 program->nvers = sizeof(ptable)/sizeof(ptable[0]);
48 initfunctable(program);
52 program_handle getph()