1
/* Copyright (c) 2000 Thorsten Kukuk
2
Author: Thorsten Kukuk <kukuk@suse.de>
4
The YP Server is free software; you can redistribute it and/or
5
modify it under the terms of the GNU General Public License
6
version 2 as published by the Free Software Foundation.
8
The YP Server is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
General Public License for more details.
13
You should have received a copy of the GNU General Public
14
License along with the YP Server; see the file COPYING. If
15
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
16
Cambridge, MA 02139, USA. */
18
#ifndef _LIB_YPXFRD_H_
19
#define _LIB_YPXFRD_H_
23
#define YPXFRBLOCK 32767
34
XFR_DB_ENDIAN_MISMATCH = 9,
35
XFR_DB_TYPE_MISMATCH = 10
37
typedef enum xfrstat xfrstat;
52
XFR_DB_GNU_GDBM64 = 13
54
typedef enum xfr_db_type xfr_db_type;
58
XFR_ENDIAN_LITTLE = 2,
61
typedef enum xfr_byte_order xfr_byte_order;
63
typedef char *xfrdomain;
65
typedef char *xfrmap_filename;
67
struct ypxfr_mapname {
70
xfrmap_filename xfrmap_filename;
71
xfr_db_type xfr_db_type;
72
xfr_byte_order xfr_byte_order;
74
typedef struct ypxfr_mapname ypxfr_mapname;
80
u_int xfrblock_buf_len;
81
char *xfrblock_buf_val;
86
typedef struct xfr xfr;
88
#define YPXFRD_FREEBSD_PROG 600100069
89
#define YPXFRD_FREEBSD_VERS 1
91
#define YPXFRD_GETMAP 1
92
extern struct xfr *ypxfrd_getmap_1 (ypxfr_mapname *, CLIENT *);
93
extern struct xfr *ypxfrd_getmap_1_svc (ypxfr_mapname *, struct svc_req *);
94
extern void ypxfrd_freebsd_prog_1 (struct svc_req *, register SVCXPRT *);
95
extern int ypxfrd_freebsd_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
97
extern bool_t xdr_xfrstat (XDR *, xfrstat*);
98
extern bool_t xdr_xfr_db_type (XDR *, xfr_db_type*);
99
extern bool_t xdr_xfr_byte_order (XDR *, xfr_byte_order*);
100
extern bool_t xdr_xfrdomain (XDR *, xfrdomain*);
101
extern bool_t xdr_xfrmap (XDR *, xfrmap*);
102
extern bool_t xdr_xfrmap_filename (XDR *, xfrmap_filename*);
103
extern bool_t xdr_xfrstat (XDR *, xfrstat*);
104
extern bool_t xdr_xfr_db_type (XDR *, xfr_db_type*);
105
extern bool_t xdr_xfr_byte_order (XDR *, xfr_byte_order*);
106
extern bool_t xdr_ypxfr_mapname (XDR *, ypxfr_mapname*);
107
extern bool_t xdr_xfr (XDR *, xfr*);
109
#endif /* !_LIB_YPXFRD_H_ */