Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/message_bus/wm_message_bus.h
| Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | typedef struct wmMsgTypeInfo { | ||||
| struct { | struct { | ||||
| unsigned int (*hash_fn)(const void *msg); | unsigned int (*hash_fn)(const void *msg); | ||||
| bool (*cmp_fn)(const void *a, const void *b); | bool (*cmp_fn)(const void *a, const void *b); | ||||
| void (*key_free_fn)(void *key); | void (*key_free_fn)(void *key); | ||||
| } gset; | } gset; | ||||
| void (*update_by_id)(struct wmMsgBus *mbus, struct ID *id_src, struct ID *id_dst); | void (*update_by_id)(struct wmMsgBus *mbus, struct ID *id_src, struct ID *id_dst); | ||||
| void (*remove_by_id)(struct wmMsgBus *mbus, const struct ID *id); | void (*remove_by_id)(struct wmMsgBus *mbus, const struct ID *id); | ||||
| void (*repr)(FILE *stream, const struct wmMsgSubscribeKey *msg_key); | char *(*repr)(const struct wmMsgSubscribeKey *msg_key); | ||||
| /* sizeof(wmMsgSubscribeKey_*) */ | /* sizeof(wmMsgSubscribeKey_*) */ | ||||
| uint msg_key_size; | uint msg_key_size; | ||||
| } wmMsgTypeInfo; | } wmMsgTypeInfo; | ||||
| typedef struct wmMsg { | typedef struct wmMsg { | ||||
| unsigned int type; | unsigned int type; | ||||
| // #ifdef DEBUG | // #ifdef DEBUG | ||||
| Show All 39 Lines | |||||
| void WM_msgbus_types_init(void); | void WM_msgbus_types_init(void); | ||||
| struct wmMsgBus *WM_msgbus_create(void); | struct wmMsgBus *WM_msgbus_create(void); | ||||
| void WM_msgbus_destroy(struct wmMsgBus *mbus); | void WM_msgbus_destroy(struct wmMsgBus *mbus); | ||||
| void WM_msgbus_clear_by_owner(struct wmMsgBus *mbus, void *owner); | void WM_msgbus_clear_by_owner(struct wmMsgBus *mbus, void *owner); | ||||
| void WM_msg_dump(struct wmMsgBus *mbus, const char *info); | char *WM_msg_sprintN(struct wmMsgBus *mbus); | ||||
| void WM_msgbus_handle(struct wmMsgBus *mbus, struct bContext *C); | void WM_msgbus_handle(struct wmMsgBus *mbus, struct bContext *C); | ||||
| void WM_msg_publish_with_key(struct wmMsgBus *mbus, wmMsgSubscribeKey *msg_key); | void WM_msg_publish_with_key(struct wmMsgBus *mbus, wmMsgSubscribeKey *msg_key); | ||||
| wmMsgSubscribeKey *WM_msg_subscribe_with_key(struct wmMsgBus *mbus, | wmMsgSubscribeKey *WM_msg_subscribe_with_key(struct wmMsgBus *mbus, | ||||
| const wmMsgSubscribeKey *msg_key_test, | const wmMsgSubscribeKey *msg_key_test, | ||||
| const wmMsgSubscribeValue *msg_val_params); | const wmMsgSubscribeValue *msg_val_params); | ||||
| void WM_msg_id_update(struct wmMsgBus *mbus, struct ID *id_src, struct ID *id_dst); | void WM_msg_id_update(struct wmMsgBus *mbus, struct ID *id_src, struct ID *id_dst); | ||||
| ▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines | |||||