1/*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6#ifndef _YPUPDATE_PROT_H_RPCGEN
7#define _YPUPDATE_PROT_H_RPCGEN
8
9#include <rpc/rpc.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/*
16 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
17 * unrestricted use provided that this legend is included on all tape
18 * media and as a part of the software program in whole or part. Users
19 * may copy or modify Sun RPC without charge, but are not authorized
20 * to license or distribute it to anyone else except as part of a product or
21 * program developed by the user or with the express written consent of
22 * Sun Microsystems, Inc.
23 *
24 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
25 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
26 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
27 *
28 * Sun RPC is provided with no support and without any obligation on the
29 * part of Sun Microsystems, Inc. to assist in its use, correction,
30 * modification or enhancement.
31 *
32 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
33 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
34 * OR ANY PART THEREOF.
35 *
36 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
37 * or profits or other special, indirect and consequential damages, even if
38 * Sun has been advised of the possibility of such damages.
39 *
40 * Sun Microsystems, Inc.
41 * 2550 Garcia Avenue
42 * Mountain View, California 94043
43 */
44/*
45 * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
46 */
47
48
49/*
50 * Compiled from ypupdate_prot.x using rpcgen
51 * This is NOT source code!
52 * DO NOT EDIT THIS FILE!
53 */
54
55#ifndef _rpcsvc_ypupdate_prot_h
56#define _rpcsvc_ypupdate_prot_h
57
58#define MAXMAPNAMELEN 255
59#define MAXYPDATALEN 1023
60#define MAXERRMSGLEN 255
61
62typedef struct {
63 u_int yp_buf_len;
64 char *yp_buf_val;
65} yp_buf;
66
67struct ypupdate_args {
68 char *mapname;
69 yp_buf key;
70 yp_buf datum;
71};
72typedef struct ypupdate_args ypupdate_args;
73
74struct ypdelete_args {
75 char *mapname;
76 yp_buf key;
77};
78typedef struct ypdelete_args ypdelete_args;
79
80#endif /* !_rpcsvc_ypupdate_prot_h */
81
82#define YPU_PROG ((unsigned long)(100028))
83#define YPU_VERS ((unsigned long)(1))
84
85extern void ypu_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
86#define YPU_CHANGE ((unsigned long)(1))
87extern u_int * ypu_change_1(ypupdate_args *, CLIENT *);
88extern u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *);
89#define YPU_INSERT ((unsigned long)(2))
90extern u_int * ypu_insert_1(ypupdate_args *, CLIENT *);
91extern u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *);
92#define YPU_DELETE ((unsigned long)(3))
93extern u_int * ypu_delete_1(ypdelete_args *, CLIENT *);
94extern u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *);
95#define YPU_STORE ((unsigned long)(4))
96extern u_int * ypu_store_1(ypupdate_args *, CLIENT *);
97extern u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *);
98extern int ypu_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
99
100/* the xdr functions */
101extern bool_t xdr_yp_buf(XDR *, yp_buf*);
102extern bool_t xdr_ypupdate_args(XDR *, ypupdate_args*);
103extern bool_t xdr_ypdelete_args(XDR *, ypdelete_args*);
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif /* !_YPUPDATE_PROT_H_RPCGEN */