1#ifndef _IPXE_ONCRPC_IOB_H
2#define _IPXE_ONCRPC_IOB_H
25#define oncrpc_iob_add_string( buf, str ) \
27 const char * _str = (str); \
28 oncrpc_iob_add_array ( (buf), strlen ( _str ), _str ); \
38#define oncrpc_iob_get_int( buf ) \
42 iob_pull ( (buf), sizeof ( uint32_t ) ); \
52#define oncrpc_iob_get_int64( buf ) \
56 iob_pull ( (buf), sizeof ( uint64_t ) ); \
86 return (
sizeof (
val) );
99 return (
sizeof (
val) );
unsigned long long uint64_t
uint32_t array
Array number.
uint8_t data[48]
Additional event data.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define iob_put(iobuf, len)
size_t oncrpc_iob_get_cred(struct io_buffer *io_buf, struct oncrpc_cred *cred)
Get credential information from the beginning of an I/O buffer.
size_t oncrpc_iob_add_array(struct io_buffer *io_buf, size_t length, const void *data)
Add an array of bytes to the end of an I/O buffer.
static size_t oncrpc_iob_add_int64(struct io_buffer *io_buf, uint64_t val)
Add a 64 bits integer to the end of an I/O buffer.
static size_t oncrpc_iob_add_int(struct io_buffer *io_buf, uint32_t val)
Add a 32 bits integer to the end of an I/O buffer.
size_t oncrpc_iob_add_intarray(struct io_buffer *io_buf, size_t length, const uint32_t *array)
Add an int array to the end of an I/O buffer.
size_t oncrpc_iob_add_fields(struct io_buffer *io_buf, const struct oncrpc_field fields[])
size_t oncrpc_iob_add_cred(struct io_buffer *io_buf, const struct oncrpc_cred *cred)
Add credential information to the end of an I/O buffer.