summaryrefslogtreecommitdiffstats
path: root/include/rpcsvc/ypclnt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rpcsvc/ypclnt.h')
-rw-r--r--include/rpcsvc/ypclnt.h13
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_ */
OpenPOWER on IntegriCloud