Blender V4.3
wm_message_bus_rna.cc File Reference
#include <cstdio>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "WM_message.hh"
#include "WM_types.hh"
#include "message_bus/intern/wm_message_bus_intern.hh"
#include "RNA_access.hh"
#include "RNA_path.hh"

Go to the source code of this file.

Functions

Internal Utilities
BLI_INLINE uint void_hash_uint (const void *key)
 
static uint wm_msg_rna_gset_hash (const void *key_p)
 
static bool wm_msg_rna_gset_cmp (const void *key_a_p, const void *key_b_p)
 
static void wm_msg_rna_gset_key_free (void *key_p)
 
static void wm_msg_rna_repr (FILE *stream, const wmMsgSubscribeKey *msg_key)
 
static void wm_msg_rna_update_by_id (wmMsgBus *mbus, ID *id_src, ID *id_dst)
 
static void wm_msg_rna_remove_by_id (wmMsgBus *mbus, const ID *id)
 
void WM_msgtypeinfo_init_rna (wmMsgTypeInfo *msgtype_info)
 
RNA API
wmMsgSubscribeKey_RNAWM_msg_lookup_rna (wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
 
void WM_msg_publish_rna_params (wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
 
void WM_msg_publish_rna (wmMsgBus *mbus, PointerRNA *ptr, PropertyRNA *prop)
 
void WM_msg_subscribe_rna_params (wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
 
void WM_msg_subscribe_rna (wmMsgBus *mbus, PointerRNA *ptr, const PropertyRNA *prop, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
 
ID variants of RNA API
Note
While we could have a separate type for ID's, use RNA since there is enough overlap.
void WM_msg_subscribe_ID (wmMsgBus *mbus, ID *id, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
 
void WM_msg_publish_ID (wmMsgBus *mbus, ID *id)
 

Function Documentation

◆ void_hash_uint()

BLI_INLINE uint void_hash_uint ( const void * key)

Definition at line 32 of file wm_message_bus_rna.cc.

Referenced by wm_msg_rna_gset_hash().

◆ WM_msg_lookup_rna()

wmMsgSubscribeKey_RNA * WM_msg_lookup_rna ( wmMsgBus * mbus,
const wmMsgParams_RNA * msg_key_params )

◆ WM_msg_publish_ID()

void WM_msg_publish_ID ( wmMsgBus * mbus,
ID * id )

◆ WM_msg_publish_rna()

void WM_msg_publish_rna ( wmMsgBus * mbus,
PointerRNA * ptr,
PropertyRNA * prop )

Definition at line 282 of file wm_message_bus_rna.cc.

References params, ptr, and WM_msg_publish_rna_params().

Referenced by rna_property_update().

◆ WM_msg_publish_rna_params()

◆ wm_msg_rna_gset_cmp()

static bool wm_msg_rna_gset_cmp ( const void * key_a_p,
const void * key_b_p )
static

◆ wm_msg_rna_gset_hash()

static uint wm_msg_rna_gset_hash ( const void * key_p)
static

◆ wm_msg_rna_gset_key_free()

◆ wm_msg_rna_remove_by_id()

◆ wm_msg_rna_repr()

◆ wm_msg_rna_update_by_id()

◆ WM_msg_subscribe_ID()

void WM_msg_subscribe_ID ( wmMsgBus * mbus,
ID * id,
const wmMsgSubscribeValue * msg_val_params,
const char * id_repr )

◆ WM_msg_subscribe_rna()

◆ WM_msg_subscribe_rna_params()

◆ WM_msgtypeinfo_init_rna()