aboutsummaryrefslogtreecommitdiff
path: root/nis/nis_cache2_xdr.c
blob: b988f3f97338ab91b517cf6d52ac923add3db7e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
}