diff options
author | peter <peter@FreeBSD.org> | 1996-12-30 14:01:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-12-30 14:01:12 +0000 |
commit | 13078090d34ec72ae7cb0d5e2ed657cb8d61de51 (patch) | |
tree | 0f64395b63be59bb444239117683c64890282199 /include/rpcsvc/ypclnt.h | |
parent | bd9931aed2cc704a5fee1601e7e88458290fb6a8 (diff) | |
download | FreeBSD-src-13078090d34ec72ae7cb0d5e2ed657cb8d61de51.zip FreeBSD-src-13078090d34ec72ae7cb0d5e2ed657cb8d61de51.tar.gz |
- Prototypes, including pointers to functions
- C++ safe
Diffstat (limited to 'include/rpcsvc/ypclnt.h')
-rw-r--r-- | include/rpcsvc/ypclnt.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/rpcsvc/ypclnt.h b/include/rpcsvc/ypclnt.h index 8168012..45d0a2e 100644 --- a/include/rpcsvc/ypclnt.h +++ b/include/rpcsvc/ypclnt.h @@ -26,11 +26,11 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ypclnt.h,v 1.2 1995/04/21 18:07:34 wpaul Exp $ + * $Id: ypclnt.h,v 1.3 1995/05/30 04:55:49 rgrimes Exp $ */ -#ifndef _YPCLNT_H_ -#define _YPCLNT_H_ +#ifndef _RPCSVC_YPCLNT_H_ +#define _RPCSVC_YPCLNT_H_ #define YPERR_BADARGS 1 /* args to function are bad */ #define YPERR_RPC 2 /* RPC failure */ @@ -58,10 +58,12 @@ #define YPOP_STORE 4 /* add, or change */ struct ypall_callback { - int (*foreach)(); /* return non-0 to stop getting called */ + /* return non-0 to stop getting called */ + int (*foreach) __P((u_long, char *, int, char *, int, void *)); char *data; /* opaque pointer for use of callback fn */ }; +__BEGIN_DECLS int yp_bind __P((char *dom)); int _yp_dobind __P((char *dom, struct dom_binding **ypdb)); void yp_unbind __P((char *dom)); @@ -82,6 +84,7 @@ int yp_all __P((char *indomain, char *inmap, char * yperr_string __P((int incode)); char * ypbinderr_string __P((int incode)); int ypprot_err __P((unsigned int incode)); +__END_DECLS -#endif /* _YPCLNT_H_ */ +#endif /* _RPCSVC_YPCLNT_H_ */ |