master
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/* from @(#)ypupdate_prot.x 1.3 91/03/11 TIRPC 1.0 */
49
50/*
51 * Compiled from ypupdate_prot.x using rpcgen
52 * This is NOT source code!
53 * DO NOT EDIT THIS FILE!
54 */
55
56#ifndef _rpcsvc_ypupdate_prot_h
57#define _rpcsvc_ypupdate_prot_h
58
59#define MAXMAPNAMELEN 255
60#define MAXYPDATALEN 1023
61#define MAXERRMSGLEN 255
62
63typedef struct {
64 u_int yp_buf_len;
65 char *yp_buf_val;
66} yp_buf;
67
68struct ypupdate_args {
69 char *mapname;
70 yp_buf key;
71 yp_buf datum;
72};
73typedef struct ypupdate_args ypupdate_args;
74
75struct ypdelete_args {
76 char *mapname;
77 yp_buf key;
78};
79typedef struct ypdelete_args ypdelete_args;
80
81#endif /* !_rpcsvc_ypupdate_prot_h */
82
83#define YPU_PROG ((unsigned long)(100028))
84#define YPU_VERS ((unsigned long)(1))
85
86extern void ypu_prog_1(struct svc_req *rqstp, SVCXPRT *transp);
87#define YPU_CHANGE ((unsigned long)(1))
88extern u_int * ypu_change_1(ypupdate_args *, CLIENT *);
89extern u_int * ypu_change_1_svc(ypupdate_args *, struct svc_req *);
90#define YPU_INSERT ((unsigned long)(2))
91extern u_int * ypu_insert_1(ypupdate_args *, CLIENT *);
92extern u_int * ypu_insert_1_svc(ypupdate_args *, struct svc_req *);
93#define YPU_DELETE ((unsigned long)(3))
94extern u_int * ypu_delete_1(ypdelete_args *, CLIENT *);
95extern u_int * ypu_delete_1_svc(ypdelete_args *, struct svc_req *);
96#define YPU_STORE ((unsigned long)(4))
97extern u_int * ypu_store_1(ypupdate_args *, CLIENT *);
98extern u_int * ypu_store_1_svc(ypupdate_args *, struct svc_req *);
99extern int ypu_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
100
101/* the xdr functions */
102extern bool_t xdr_yp_buf(XDR *, yp_buf*);
103extern bool_t xdr_ypupdate_args(XDR *, ypupdate_args*);
104extern bool_t xdr_ypdelete_args(XDR *, ypdelete_args*);
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif /* !_YPUPDATE_PROT_H_RPCGEN */