X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=include%2Flibnfs-zdr.h;h=c5794b6eca098ab55204f7199999fbdcf584729a;hb=442b829a054a0e02f26bc050346f3e4df18c579d;hp=660f3b187ce1aa643d5414f1cae8b2469f599646;hpb=763cd6e3e2bbb6906186e7ed6a86660276b596b7;p=deb_libnfs.git diff --git a/include/libnfs-zdr.h b/include/libnfs-zdr.h index 660f3b1..c5794b6 100644 --- a/include/libnfs-zdr.h +++ b/include/libnfs-zdr.h @@ -96,11 +96,11 @@ struct opaque_auth { extern struct opaque_auth _null_auth; -typedef struct { +struct AUTH { struct opaque_auth ah_cred; struct opaque_auth ah_verf; caddr_t ah_private; -} AUTH; +}; enum msg_type { CALL=0, @@ -231,7 +231,7 @@ bool_t libnfs_zdr_u_quad_t(ZDR *zdrs, uint64_t *u); bool_t libnfs_zdr_quad_t(ZDR *zdrs, int64_t *i); #define zdr_enum libnfs_zdr_enum -bool_t libnfs_zdr_enum(ZDR *zdrs, int32_t *e); +bool_t libnfs_zdr_enum(ZDR *zdrs, enum_t *e); #define zdr_bool libnfs_zdr_bool bool_t libnfs_zdr_bool(ZDR *zdrs, bool_t *b); @@ -267,15 +267,15 @@ bool_t libnfs_zdr_callmsg(ZDR *zdrs, struct rpc_msg *msg); bool_t libnfs_zdr_replymsg(ZDR *zdrs, struct rpc_msg *msg); #define authnone_create libnfs_authnone_create -AUTH *libnfs_authnone_create(void); +struct AUTH *libnfs_authnone_create(void); #define authunix_create libnfs_authunix_create -AUTH *libnfs_authunix_create(char *host, uint32_t uid, uint32_t gid, uint32_t len, uint32_t *groups); +struct AUTH *libnfs_authunix_create(char *host, uint32_t uid, uint32_t gid, uint32_t len, uint32_t *groups); #define authunix_create_default libnfs_authunix_create_default -AUTH *libnfs_authunix_create_default(void); +struct AUTH *libnfs_authunix_create_default(void); #define auth_destroy libnfs_auth_destroy -void libnfs_auth_destroy(AUTH *auth); +void libnfs_auth_destroy(struct AUTH *auth); #endif