35 size_t y = size_t(key) >>
sizeof(
void *);
64 return MEM_new<wmMsgSubscribeKey_RNA>(__func__, *key_src);
71 msg_lnk = msg_lnk_next)
73 msg_lnk_next = msg_lnk->
next;
86 const char *none =
"<none>";
90 "%s.%s values_len=%d\n",
117 msg_lnk = msg_lnk_next)
119 msg_lnk_next = msg_lnk->next;
120 if (msg_lnk->params.is_persistent ==
false) {
121 if (msg_lnk->params.tag) {
155 msg_lnk = msg_lnk_next)
157 msg_lnk_next = msg_lnk->next;
158 if (msg_lnk->params.is_persistent ==
false) {
159 if (msg_lnk->params.tag) {
192 msg_lnk = msg_lnk_next)
194 msg_lnk_next = msg_lnk->next;
195 if (msg_lnk->params.tag) {
238 const char *none =
"<none>";
241 "rna(id='%s', %s.%s)",
256 if (msg_key_params_anon.
prop !=
nullptr) {
258 msg_key_params_anon.
prop =
nullptr;
262 msg_key_params_anon.
prop = msg_key_params->
prop;
266 msg_key_params_anon.
ptr.
data =
nullptr;
272 if (msg_key_params->
prop) {
273 msg_key_params_anon.
prop =
nullptr;
300 msg_key_test.
msg.
params = *msg_key_params;
302 const char *none =
"<none>";
305 "rna(id='%s', %s.%s, info='%s')",
#define CLOG_DEBUG(clg_ref,...)
#define CLOG_TRACE(clg_ref,...)
ID and Library types, which are fundamental for SDNA.
Read Blender memory allocation and freeing.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
CLG_LogRef * WM_LOG_MSGBUS_SUB
static uint wm_msg_rna_gset_hash(const void *key_p)
bool RNA_path_resolve(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
void * BLI_gset_lookup(const GSet *gs, const void *key) ATTR_WARN_UNUSED_RESULT
PointerRNA RNA_id_pointer_create(ID *id)
const char * RNA_property_identifier(const PropertyRNA *prop)
std::optional< std::string > RNA_path_from_ID_to_struct(const PointerRNA *ptr)
BLI_INLINE bool BLI_gsetIterator_done(const GSetIterator *gsi)
char * BLI_strdupn(const char *str, size_t len) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void WM_msg_subscribe_rna_params(wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
BLI_INLINE uint void_hash_uint(const void *key)
static void wm_msg_rna_remove_by_id(wmMsgBus *mbus, const ID *id)
wmMsgSubscribeKey * WM_msg_subscribe_with_key(wmMsgBus *mbus, const wmMsgSubscribeKey *msg_key_test, const wmMsgSubscribeValue *msg_val_params)
static void wm_msg_rna_update_by_id(wmMsgBus *mbus, ID *id_src, ID *id_dst)
static bool wm_msg_rna_gset_cmp(const void *key_a_p, const void *key_b_p)
void wm_msg_subscribe_value_free(wmMsgSubscribeKey *msg_key, wmMsgSubscribeValueLink *msg_lnk)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
BLI_INLINE void BLI_gsetIterator_init(GSetIterator *gsi, GSet *gs)
void WM_msg_publish_with_key(wmMsgBus *mbus, wmMsgSubscribeKey *msg_key)
void WM_msg_publish_rna(wmMsgBus *mbus, PointerRNA *ptr, PropertyRNA *prop)
static void wm_msg_rna_repr(FILE *stream, const wmMsgSubscribeKey *msg_key)
const char * RNA_struct_identifier(const StructRNA *type)
void WM_msg_subscribe_rna(wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
void WM_msg_publish_ID(wmMsgBus *mbus, ID *id)
void WM_msg_subscribe_ID(wmMsgBus *mbus, ID *id, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
wmMsgSubscribeKey_RNA * WM_msg_lookup_rna(wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
bool BLI_gset_remove(GSet *gs, const void *key, GSetKeyFreeFP keyfreefp)
BLI_INLINE void BLI_gsetIterator_step(GSetIterator *gsi)
static void wm_msg_rna_gset_key_free(void *key_p)
bool BLI_gset_haskey(const GSet *gs, const void *key) ATTR_WARN_UNUSED_RESULT
CLG_LogRef * WM_LOG_MSGBUS_PUB
static void * wm_msg_rna_gset_key_duplicate(const void *key_p)
void WM_msg_publish_rna_params(wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
void WM_msgtypeinfo_init_rna(wmMsgTypeInfo *msgtype_info)
bool BLI_gset_add(GSet *gs, void *key)
BLI_INLINE void * BLI_gsetIterator_getKey(GSetIterator *gsi)
bool has_owner_id() const
ListBaseT< wmMsgSubscribeKey > messages
GSet * messages_gset[WM_MSG_TYPE_NUM]
ListBaseT< wmMsgSubscribeValueLink > values
wmMsgSubscribeValueLink * next
void(*) repr(FILE *stream, const wmMsgSubscribeKey *msg_key)
void(*) remove_by_id(wmMsgBus *mbus, const ID *id)
struct blender::wmMsgTypeInfo::@222252052342264033027352010177057107113002371022 gset
void(*) update_by_id(wmMsgBus *mbus, ID *id_src, ID *id_dst)