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) );
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.
#define iob_put(iobuf, len)
unsigned long long uint64_t
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
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.
uint32_t array
Array number.
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_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_get_cred(struct io_buffer *io_buf, struct oncrpc_cred *cred)
Get credential information from the beginning of an I/O buffer.
uint8_t data[48]
Additional event data.
size_t oncrpc_iob_add_fields(struct io_buffer *io_buf, const struct oncrpc_field fields[])