48 #define OMAPI_BUF_SIZE 4048 57 #define BUFFER_BYTES_FREE(x) \ 58 ((x) -> tail > (x) -> head \ 59 ? sizeof ((x) -> buf) - ((x) -> tail - (x) -> head) \ 60 : (x) -> head - (x) -> tail) 62 #define BYTES_IN_BUFFER(x) \ 63 ((x) -> tail > (x) -> head \ 64 ? (x) -> tail - (x) -> head - 1 \ 65 : sizeof ((x) -> buf) - ((x) -> head - (x) -> tail) - 1) 71 const unsigned char *,
unsigned);
struct _omapi_buffer omapi_buffer_t
isc_result_t omapi_connection_copyin(omapi_object_t *, const unsigned char *, unsigned)
struct _omapi_buffer * next
isc_result_t omapi_connection_put_uint32(omapi_object_t *, u_int32_t)
isc_result_t omapi_connection_require(omapi_object_t *, unsigned)
isc_result_t omapi_connection_get_uint32(omapi_object_t *, u_int32_t *)
isc_result_t omapi_connection_flush(omapi_object_t *)
isc_result_t omapi_connection_put_uint16(omapi_object_t *, u_int32_t)
isc_result_t omapi_connection_copyout(unsigned char *, omapi_object_t *, unsigned)
isc_result_t omapi_connection_get_uint16(omapi_object_t *, u_int16_t *)