17#ifndef GP_WIDGET_UID_H
18#define GP_WIDGET_UID_H
23typedef struct gp_widget_uid_map {
30#define GP_WIDGET_UID(wuid, wtype, structure, member) \
31 {.uid = wuid, .type = wtype, .offset = offsetof(structure, member)}
33#define GP_WIDGET_CUID(wuid, wclass, structure, member) \
34 {.uid = wuid, .cls = wclass, .offset = offsetof(structure, member)}
36void gp_widgets_by_uids(
gp_htable *uids, gp_widget_uid_map *uid_map,
void *structure);
Simple hash table implementation.