/* * CDE - Common Desktop Environment * * Copyright (c) 1993-2012, The Open Group. All rights reserved. * * These libraries and programs are free software; you can * redistribute them and/or modify them under the terms of the GNU * Lesser General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. * * These libraries and programs are distributed in the hope that * they will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public * License along with these librararies and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ /* $XConsortium: programtable.c /main/4 1995/11/09 12:47:18 rswiston $ */ /* * (c) Copyright 1993, 1994 Hewlett-Packard Company * (c) Copyright 1993, 1994 International Business Machines Corp. * (c) Copyright 1993, 1994 Novell, Inc. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. */ /* implements the program table for this program number */ /* this module doesn't know anything about the specifics of any */ /* rtable except how many rtables are supported */ /* - ie it doesn't include rtable*.h. */ /* The actual program table entries are filled in by the rtable*.c's */ #include #include #include #include "rpcextras.h" program_table ptable[] = { (struct rpcgen_table *)NULL, 0, /* rtable 0 no longer supported */ (struct rpcgen_table *)NULL, 0, /* rtable 1 no longer supported */ (struct rpcgen_table *)NULL, 0, /* rtable 2 filled in by rtable2.c */ (struct rpcgen_table *)NULL, 0, /* rtable 3 filled in by rtable3.c */ (struct rpcgen_table *)NULL, 0, /* rtable 4 filled in by rtable4.c */ (struct rpcgen_table *)NULL, 0, /* rtable 5 filled in by cmsfunc.c */ }; /* program_num is filled in from one of the rtable*.c's so that */ /* it can be declared from one of the rtable*.h's */ program_object po = { &ptable[0], 0, 0, }; program_handle program = &po; program_handle newph() { extern void initrtable2(); extern void initrtable3(); extern void initrtable4(); extern void initfunctable(); program->nvers = sizeof(ptable)/sizeof(ptable[0]); initrtable2(program); initrtable3(program); initrtable4(program); initfunctable(program); return(program); } program_handle getph() { return(program); }