44 static const char* adapter_str =
"adapter";
58 switch(adapter->
type) {
64 "unknown adapter", adapter_str);
86 ods_log_error(
"[%s] unable to create adapter: create allocator failed",
94 ods_log_error(
"[%s] unable to create adapter: allocator failed",
102 adapter->
type = type;
136 ods_log_error(
"[%s] unable to read zone %s from adapter: unknown "
137 "adapter", adapter_str, adzone->
name);
158 ods_log_error(
"[%s] unable to write zone: no output adapter",
167 adapter_str, adzone->
name);
175 "adapter %s", adapter_str, adzone->
name,
182 ods_log_error(
"[%s] unable to write zone %s to adapter: unknown "
183 "adapter", adapter_str, adzone->
name);
int adapter_compare(adapter_type *a1, adapter_type *a2)
void * allocator_alloc(allocator_type *allocator, size_t size)
ods_status adfile_read(struct zone_struct *zone, const char *filename)
enum ods_enum_status ods_status
void ods_log_error(const char *format,...)
int ods_strcmp(const char *s1, const char *s2)
adapter_type * adoutbound
allocator_type * allocator
allocator_type * allocator_create(void *(*allocator)(size_t size), void(*deallocator)(void *))
ods_status adapter_read(struct zone_struct *zone)
char * allocator_strdup(allocator_type *allocator, const char *string)
ods_status adapter_write(struct zone_struct *zone)
adapter_type * adapter_create(const char *str, adapter_mode type, int inbound)
enum adapter_mode_enum adapter_mode
ods_status adfile_init(void)
void ods_log_verbose(const char *format,...)
void allocator_cleanup(allocator_type *allocator)
void allocator_deallocate(allocator_type *allocator, void *data)
#define ods_log_assert(x)
ods_status adfile_write(struct zone_struct *zone, const char *filename)
void adapter_cleanup(adapter_type *adapter)
ods_status adapter_init(adapter_type *adapter)