3 * \author John Hodge (thePowersGang)
9 #include <udi_internal.h>
11 typedef struct sUDI_BufTag
13 struct sUDI_BufTag *Next;
15 struct sUDI_BufSect *Sect;
18 typedef struct sUDI_BufSect
20 struct sUDI_BufSect *Next;
31 tUDI_BufSect *Sections;
36 EXPORT(udi_buf_write);
42 udi_buf_copy_call_t *callback,
50 udi_buf_path_t path_handle
57 * \brief Write to a buffer
58 * \param callback Function to call once the write has completed
59 * \param gcb Control Block
60 * \param src_mem Source Data
61 * \param src_len Length of source data
62 * \param dst_buf Destination buffer
63 * \param dst_off Destination offset in the buffer
64 * \param dst_len Length of destination area
65 * \param path_handle ???
68 udi_buf_write_call_t *callback,
75 udi_buf_path_t path_handle
78 tUDI_BufInt *dst = (void*)dst_buf;
80 dst = NEW(tUDI_BufInt,);
85 // Insert / Initialise
88 Log_Warning("UDI", "TODO: udi_buf_write - insert");
100 Log_Warning("UDI", "TODO: udi_buf_write - overwrite");
105 Log_Warning("UDI", "TODO: udi_buf_write - delete");
109 callback(gcb, &dst->buf);
121 void udi_buf_free(udi_buf_t *buf)