summaryrefslogtreecommitdiff
path: root/nis/nis_cache2_xdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nis_cache2_xdr.c')
-rw-r--r--nis/nis_cache2_xdr.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/nis/nis_cache2_xdr.c b/nis/nis_cache2_xdr.c
new file mode 100644
index 0000000000..b988f3f973
--- /dev/null
+++ b/nis/nis_cache2_xdr.c
@@ -0,0 +1,43 @@
+/*
+ * Please do not edit this file.
+ * It was generated using rpcgen.
+ */
+
+#include <rpc/types.h>
+#include <rpc/xdr.h>
+
+#include "nis_cache2.h"
+#include <rpcsvc/nis.h>
+
+bool_t
+xdr_fs_result(XDR *xdrs, fs_result *objp)
+{
+ if (!xdr_nis_error(xdrs, &objp->status)) {
+ return FALSE;
+ }
+ if (!xdr_long(xdrs, &objp->class)) {
+ return FALSE;
+ }
+ if (!xdr_bytes(xdrs, (char **)&objp->dir_data.dir_data_val, (u_int *)&objp->dir_data.dir_data_len, ~0)) {
+ return FALSE;
+ }
+ if (!xdr_long(xdrs, &objp->server_used)) {
+ return FALSE;
+ }
+ if (!xdr_long(xdrs, &objp->current_ep)) {
+ return FALSE;
+ }
+ return TRUE;
+}
+
+bool_t
+xdr_fs_request(XDR *xdrs, fs_request *objp)
+{
+ if (!xdr_nis_name(xdrs, &objp->name)) {
+ return FALSE;
+ }
+ if (!xdr_long(xdrs, &objp->old_class)) {
+ return FALSE;
+ }
+ return TRUE;
+}