GDB (API)
|
Go to the source code of this file.
#define DECLARE_REGISTRY | ( | TAG | ) |
struct TAG ## _data; \ typedef void (*registry_ ## TAG ## _callback) (struct TAG *, void *); \ extern const struct TAG ## _data *register_ ## TAG ## _data (void); \ extern const struct TAG ## _data *register_ ## TAG ## _data_with_cleanup \ (registry_ ## TAG ## _callback save, registry_ ## TAG ## _callback free); \ extern void clear_ ## TAG ## _data (struct TAG *); \ extern void set_ ## TAG ## _data (struct TAG *, \ const struct TAG ## _data *data, \ void *value); \ extern void *TAG ## _data (struct TAG *, \ const struct TAG ## _data *data);
Definition at line 243 of file registry.h.
#define DEFINE_REGISTRY | ( | TAG, | |
ACCESS | |||
) |
Definition at line 153 of file registry.h.
#define REGISTRY_ACCESS_FIELD | ( | CONTAINER | ) | (CONTAINER) |
Definition at line 84 of file registry.h.
#define REGISTRY_FIELDS struct registry_fields registry_data |
Definition at line 77 of file registry.h.
typedef void(* registry_callback_adaptor)(registry_data_callback func, struct registry_container *container, void *data) |
Definition at line 130 of file registry.h.
typedef void(* registry_data_callback)(struct registry_container *, void *) |
Definition at line 96 of file registry.h.
struct registry_data* register_data_with_cleanup | ( | struct registry_data_registry * | registry, |
registry_data_callback | save, | ||
registry_data_callback | free | ||
) | [read] |
Definition at line 26 of file registry.c.
void registry_alloc_data | ( | struct registry_data_registry * | registry, |
struct registry_fields * | registry_fields | ||
) |
Definition at line 49 of file registry.c.
void registry_clear_data | ( | struct registry_data_registry * | data_registry, |
registry_callback_adaptor | adaptor, | ||
struct registry_container * | container, | ||
struct registry_fields * | fields | ||
) |
Definition at line 58 of file registry.c.
void registry_container_free_data | ( | struct registry_data_registry * | data_registry, |
registry_callback_adaptor | adaptor, | ||
struct registry_container * | container, | ||
struct registry_fields * | fields | ||
) |
Definition at line 88 of file registry.c.
void* registry_data | ( | struct registry_fields * | fields, |
const struct registry_data * | data | ||
) |
Definition at line 110 of file registry.c.
void registry_set_data | ( | struct registry_fields * | fields, |
const struct registry_data * | data, | ||
void * | value | ||
) |
Definition at line 101 of file registry.c.