nfs_prot_xdr.c revision 174295
1132720Skan/*
2132720Skan * Copyright (c) 1997-2006 Erez Zadok
3132720Skan * Copyright (c) 1989 Jan-Simon Pendry
4169691Skan * Copyright (c) 1989 Imperial College of Science, Technology & Medicine
5169691Skan * Copyright (c) 1989 The Regents of the University of California.
6169691Skan * All rights reserved.
7132720Skan *
8132720Skan * This code is derived from software contributed to Berkeley by
9132720Skan * Jan-Simon Pendry at Imperial College, London.
10132720Skan *
11132720Skan * Redistribution and use in source and binary forms, with or without
12132720Skan * modification, are permitted provided that the following conditions
13132720Skan * are met:
14132720Skan * 1. Redistributions of source code must retain the above copyright
15132720Skan *    notice, this list of conditions and the following disclaimer.
16132720Skan * 2. Redistributions in binary form must reproduce the above copyright
17132720Skan *    notice, this list of conditions and the following disclaimer in the
18132720Skan *    documentation and/or other materials provided with the distribution.
19132720Skan * 3. All advertising materials mentioning features or use of this software
20132720Skan *    must display the following acknowledgment:
21132720Skan *      This product includes software developed by the University of
22132720Skan *      California, Berkeley and its contributors.
23132720Skan * 4. Neither the name of the University nor the names of its contributors
24132720Skan *    may be used to endorse or promote products derived from this software
25132720Skan *    without specific prior written permission.
26 *
27 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37 * SUCH DAMAGE.
38 *
39 *
40 * File: am-utils/libamu/nfs_prot_xdr.c
41 *
42 */
43
44#ifdef HAVE_CONFIG_H
45# include <config.h>
46#endif /* HAVE_CONFIG_H */
47#include <am_defs.h>
48#include <amu.h>
49
50
51bool_t
52xdr_amq_string(XDR *xdrs, amq_string *objp)
53{
54  if (!xdr_string(xdrs, objp, AMQ_STRLEN)) {
55    return (FALSE);
56  }
57  return (TRUE);
58}
59