20 #include "ws_symbol_export.h"
26 typedef struct _uat_fld_rep_t uat_fld_rep_t;
27 typedef struct _uat_rep_t uat_rep_t;
29 typedef void (*uat_rep_fld_free_cb_t)(uat_fld_rep_t*);
30 typedef void (*uat_rep_free_cb_t)(uat_rep_t*);
35 uat_rep_fld_free_cb_t free_rep;
50 uat_post_update_cb_t post_update_cb;
54 const char** default_values;
61 uat_rep_free_cb_t free_rep;
67 char* uat_get_actual_filename(
uat_t* uat,
bool for_writing);
137 #define UAT_UPDATE(uat) do { *((uat)->user_ptr) = (void*)((uat)->user_data->data); *((uat)->nrows_p) = (uat)->user_data->len; } while(0)
143 #define UAT_INDEX_PTR(uat,idx) (uat->raw_data->data + (uat->record_size * (idx)))
148 #define UAT_USER_INDEX_PTR(uat,idx) (uat->user_data->data + (uat->record_size * (idx)))
void ** user_ptr
Definition: uat-int.h:45
GArray * raw_data
Definition: uat-int.h:57
unsigned * nrows_p
Definition: uat-int.h:46
GArray * valid_data
Definition: uat-int.h:58
GArray * user_data
Definition: uat-int.h:56
WS_DLL_PUBLIC bool uat_save(uat_t *uat, char **error)
Definition: uat.c:368
WS_DLL_PUBLIC void uat_update_record(uat_t *uat, const void *record, bool valid_rec)
Definition: uat.c:146
WS_DLL_PUBLIC void uat_move_index(uat_t *uat, unsigned old_idx, unsigned new_idx)
Definition: uat.c:218
WS_DLL_PUBLIC void uat_clear(uat_t *uat)
Definition: uat.c:462
WS_DLL_PUBLIC void uat_swap(uat_t *uat, unsigned idx_a, unsigned idx_b)
Definition: uat.c:165
void uat_load_all(void)
Definition: uat.c:532
WS_DLL_PUBLIC void uat_remove_record_idx(uat_t *uat, unsigned rec_idx)
Definition: uat.c:206
WS_DLL_PUBLIC void * uat_add_record(uat_t *uat, const void *orig_rec_ptr, bool valid_rec)
Definition: uat.c:118
WS_DLL_PUBLIC char * uat_fld_tostr(void *rec, uat_field_t *f)
Definition: uat.c:274
WS_DLL_PUBLIC void uat_insert_record_idx(uat_t *uat, unsigned rec_idx, const void *src_record)
Definition: uat.c:187
void *(* uat_copy_cb_t)(void *dest, const void *source, size_t len)
Definition: uat.h:87
void(* uat_free_cb_t)(void *record)
Definition: uat.h:97
bool(* uat_update_cb_t)(void *record, char **error)
Definition: uat.h:119
void(* uat_reset_cb_t)(void)
Definition: uat.h:105