1 /* Copyright (c) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Thorsten Kukuk <kukuk@suse.de>, 1997.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
20 #ifndef __NIS_INTERN_H
22 #define __NIS_INTERN_H
34 int (*callback
) (const_nis_name
, const nis_object
*, const void *);
37 typedef struct nis_cb nis_cb
;
39 extern unsigned long int inetstr2int (const char *str
);
40 extern long int __nis_findfastest (dir_binding
*bind
);
41 extern nis_error
__do_niscall2 (const nis_server
*serv
, u_int serv_len
,
42 u_long prog
, xdrproc_t xargs
, caddr_t req
,
43 xdrproc_t xres
, caddr_t resp
,
44 unsigned int flags
, nis_cb
*cb
);
45 extern nis_error
__do_niscall (const_nis_name name
, u_long prog
,
46 xdrproc_t xargs
, caddr_t req
,
47 xdrproc_t xres
, caddr_t resp
,
48 unsigned int flags
, nis_cb
*cb
);
49 extern nis_error
__do_niscall3 (dir_binding
*dbp
, u_long prog
,
50 xdrproc_t xargs
, caddr_t req
,
51 xdrproc_t xres
, caddr_t resp
,
52 unsigned int flags
, nis_cb
*cb
);
54 extern u_short
__pmap_getnisport (struct sockaddr_in
*address
, u_long program
,
55 u_long version
, u_int protocol
);
58 extern nis_error
__nis_do_callback (struct dir_binding
*bptr
,
59 netobj
*cookie
, struct nis_cb
*cb
);
60 extern struct nis_cb
*__nis_create_callback
61 (int (*callback
)(const_nis_name
, const nis_object
*, const void *),
62 const void *userdata
, unsigned int flags
);
63 extern nis_error
__nis_destroy_callback (struct nis_cb
*cb
);