47 #define XFER_FL_ABS_OFFSET 0x0001 50 #define XFER_FL_OVER 0x0002 53 #define XFER_FL_OUT 0x0004 60 #define XFER_FL_CMD_STAT 0x0008 63 #define XFER_FL_RESPONSE 0x0010 69 #define xfer_vredirect_TYPE( object_type ) \ 70 typeof ( int ( object_type, int type, va_list args ) ) 73 #define xfer_window_TYPE( object_type ) \ 74 typeof ( size_t ( object_type ) ) 77 #define xfer_window_changed_TYPE( object_type ) \ 78 typeof ( void ( object_type ) ) 82 #define xfer_alloc_iob_TYPE( object_type ) \ 83 typeof ( struct io_buffer * ( object_type, size_t len ) ) 88 #define xfer_deliver_TYPE( object_type ) \ 89 typeof ( int ( object_type, struct io_buffer *iobuf, \ 90 struct xfer_metadata *meta ) ) 100 const void *
data,
size_t len );
int const char int xfer_seek(struct interface *intf, off_t offset)
Seek to position.
int printf(const char *fmt,...)
Write a formatted string to the console.
int xfer_deliver_raw(struct interface *intf, const void *data, size_t len)
Deliver datagram as raw data without metadata.
uint32_t type
Operating system type.
int xfer_deliver(struct interface *intf, struct io_buffer *iobuf, struct xfer_metadata *meta)
Deliver datagram.
int xfer_vprintf(struct interface *intf, const char *format, va_list args)
Deliver formatted string.
int xfer_deliver_iob(struct interface *intf, struct io_buffer *iobuf)
Deliver datagram as I/O buffer without metadata.
int xfer_deliver_raw_meta(struct interface *intf, const void *data, size_t len, struct xfer_metadata *meta)
Deliver datagram as raw data.
Generalized socket address structure.
int __attribute__((format(printf, 2, 3))) xfer_printf(struct interface *intf
int xfer_vredirect(struct interface *intf, int type, va_list args)
Send redirection event.
void xfer_window_changed(struct interface *intf)
Report change of flow control window.
int xfer_printf(struct interface *intf, const char *format,...)
Deliver formatted string.
size_t xfer_window(struct interface *intf)
Check flow control window.
__builtin_va_list va_list
uint8_t data[48]
Additional event data.
int xfer_redirect(struct interface *xfer, int type,...)
Send redirection event.
uint16_t offset
Offset to command line.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct io_buffer * xfer_alloc_iob(struct interface *intf, size_t len)
Allocate I/O buffer.
int xfer_check_order(struct xfer_metadata *meta, size_t *pos, size_t len)
Check that data is delivered strictly in order.