static void xdrmem_destroy();
static struct xdr_ops xdrmem_ops = {
- xdrmem_getint32,
- xdrmem_putint32,
- xdrmem_getbytes,
- xdrmem_putbytes,
- xdrmem_getpos,
- xdrmem_setpos,
- xdrmem_inline,
- xdrmem_destroy
+ .x_getint32 = xdrmem_getint32,
+ .x_putint32 = xdrmem_putint32,
+ .x_getbytes = xdrmem_getbytes,
+ .x_putbytes = xdrmem_putbytes,
+ .x_getpos = xdrmem_getpos,
+ .x_setpos = xdrmem_setpos,
+ .x_inline = xdrmem_inline,
+ .x_destroy = xdrmem_destroy
};
/*
static u_int fix_buf_size(u_int s);
static struct xdr_ops xdrrec_ops = {
- xdrrec_getint32,
- xdrrec_putint32,
- xdrrec_getbytes,
- xdrrec_putbytes,
- xdrrec_getpos,
- xdrrec_setpos,
- xdrrec_inline,
- xdrrec_destroy
+ .x_getint32 = xdrrec_getint32,
+ .x_putint32 = xdrrec_putint32,
+ .x_getbytes = xdrrec_getbytes,
+ .x_putbytes = xdrrec_putbytes,
+ .x_getpos = xdrrec_getpos,
+ .x_setpos = xdrrec_setpos,
+ .x_inline = xdrrec_inline,
+ .x_destroy = xdrrec_destroy
};
/* * Create an xdr handle for xdrrec
*/
static struct xdr_ops xdrrx_ops = {
#if defined(KERNEL) && ((defined(AFS_SGI61_ENV) && (_MIPS_SZLONG != _MIPS_SZINT)) || defined(AFS_HPUX_64BIT_ENV))
- xdrrx_getint64,
- xdrrx_putint64,
+ .x_getint64 = xdrrx_getint64,
+ .x_putint64 = xdrrx_putint64,
#endif /* defined(KERNEL) && ((defined(AFS_SGI61_ENV) && (_MIPS_SZLONG != _MIPS_SZINT)) || defined(AFS_HPUX_64BIT_ENV)) */
#if !(defined(KERNEL) && defined(AFS_SUN57_ENV))
- xdrrx_getint32, /* deserialize an afs_int32 */
- xdrrx_putint32, /* serialize an afs_int32 */
+ .x_getint32 = xdrrx_getint32, /* deserialize an afs_int32 */
+ .x_putint32 = xdrrx_putint32, /* serialize an afs_int32 */
#endif
- xdrrx_getbytes, /* deserialize counted bytes */
- xdrrx_putbytes, /* serialize counted bytes */
- 0, /* get offset in the stream: not supported. */
- 0, /* set offset in the stream: not supported. */
- xdrrx_inline, /* prime stream for inline macros */
- 0, /* destroy stream */
+ .x_getbytes = xdrrx_getbytes, /* deserialize counted bytes */
+ .x_putbytes = xdrrx_putbytes, /* serialize counted bytes */
+ .x_getpostn = NULL, /* get offset in the stream: not supported. */
+ .x_setpostn = NULL, /* set offset in the stream: not supported. */
+ .x_inline = xdrrx_inline, /* prime stream for inline macros */
+ .x_destroy = NULL, /* destroy stream */
#if defined(KERNEL) && defined(AFS_SUN57_ENV)
- 0,
- xdrrx_getint32, /* deserialize an afs_int32 */
- xdrrx_putint32, /* serialize an afs_int32 */
+ .x_control = NULL,
+ .x_getint32 = xdrrx_getint32, /* deserialize an afs_int32 */
+ .x_putint32 = xdrrx_putint32, /* serialize an afs_int32 */
#endif
};
* Ops vector for stdio type XDR
*/
static struct xdr_ops xdrstdio_ops = {
- xdrstdio_getint32, /* deserialize an afs_int32 */
- xdrstdio_putint32, /* serialize an afs_int32 */
- xdrstdio_getbytes, /* deserialize counted bytes */
- xdrstdio_putbytes, /* serialize counted bytes */
- xdrstdio_getpos, /* get offset in the stream */
- xdrstdio_setpos, /* set offset in the stream */
- xdrstdio_inline, /* prime stream for inline macros */
- xdrstdio_destroy /* destroy stream */
+ .x_getint32 = xdrstdio_getint32, /* deserialize an afs_int32 */
+ .x_putint32 = xdrstdio_putint32, /* serialize an afs_int32 */
+ .x_getbytes = xdrstdio_getbytes, /* deserialize counted bytes */
+ .x_putbytes = xdrstdio_putbytes, /* serialize counted bytes */
+ .x_getpos = xdrstdio_getpos, /* get offset in the stream */
+ .x_setpos = xdrstdio_setpos, /* set offset in the stream */
+ .x_inline = xdrstdio_inline, /* prime stream for inline macros */
+ .x_destroy = xdrstdio_destroy /* destroy stream */
};
/*