#include <rpc/rpc.h>
#include <rpcsvc/ypclnt.h>
+__BEGIN_DECLS
+
/*
* The following procedures are supported by the protocol:
*
typedef struct {
u_int keydat_len;
char *keydat_val;
-} keydat;
+} keydat_t;
typedef struct {
u_int valdat_len;
char *valdat_val;
-} valdat;
+} valdat_t;
struct ypmap_parms {
char *domain; /* Null string means not available */
struct ypreq_key {
const char *domain;
const char *map;
- keydat keydat;
+ keydat_t keydat;
};
struct ypreq_nokey {
struct ypresp_val {
ypstat status;
- valdat valdat;
+ valdat_t valdat;
};
struct ypresp_key_val {
implementation somehow must change the order internally. We
don't want to follow this bad example since the user should be
able to use rpcgen on this file. */
- keydat keydat;
- valdat valdat;
+ keydat_t keydat;
+ valdat_t valdat;
#else
- valdat valdat;
- keydat keydat;
+ valdat_t valdat;
+ keydat_t keydat;
#endif
};
} ypresp_all_u;
};
-__BEGIN_DECLS
-
extern bool_t xdr_ypreq_key __P ((XDR *__xdrs, struct ypreq_key * __objp));
extern bool_t xdr_ypreq_nokey __P ((XDR *__xdrs, struct ypreq_nokey * __objp));
extern bool_t xdr_ypreq_xfr __P ((XDR *__xdrs, struct ypreq_xfr * __objp));