Blender  V3.3
wm_message_bus_rna.c File Reference
#include <stdio.h>
#include "CLG_log.h"
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "WM_message.h"
#include "WM_types.h"
#include "message_bus/intern/wm_message_bus_intern.h"
#include "RNA_access.h"
#include "RNA_path.h"

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 (struct wmMsgBus *mbus, ID *id_src, ID *id_dst)
 
static void wm_msg_rna_remove_by_id (struct wmMsgBus *mbus, const ID *id)
 
void WM_msgtypeinfo_init_rna (wmMsgTypeInfo *msgtype_info)
 
RNA API
wmMsgSubscribeKey_RNA * WM_msg_lookup_rna (struct wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
 
void WM_msg_publish_rna_params (struct wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params)
 
void WM_msg_publish_rna (struct wmMsgBus *mbus, PointerRNA *ptr, PropertyRNA *prop)
 
void WM_msg_subscribe_rna_params (struct wmMsgBus *mbus, const wmMsgParams_RNA *msg_key_params, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
 
void WM_msg_subscribe_rna (struct 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 (struct wmMsgBus *mbus, ID *id, const wmMsgSubscribeValue *msg_val_params, const char *id_repr)
 
void WM_msg_publish_ID (struct wmMsgBus *mbus, ID *id)
 

Function Documentation

◆ void_hash_uint()

BLI_INLINE uint void_hash_uint ( const void *  key)

Definition at line 29 of file wm_message_bus_rna.c.

References y.

Referenced by wm_msg_rna_gset_hash().

◆ WM_msg_lookup_rna()

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

◆ WM_msg_publish_ID()

void WM_msg_publish_ID ( struct wmMsgBus *  mbus,
ID *  id 
)

◆ WM_msg_publish_rna()

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

Definition at line 262 of file wm_message_bus_rna.c.

References ptr, and WM_msg_publish_rna_params().

Referenced by rna_property_update().

◆ WM_msg_publish_rna_params()

void WM_msg_publish_rna_params ( struct wmMsgBus *  mbus,
const wmMsgParams_RNA *  msg_key_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()

static void wm_msg_rna_gset_key_free ( void *  key_p)
static

◆ wm_msg_rna_remove_by_id()

static void wm_msg_rna_remove_by_id ( struct wmMsgBus *  mbus,
const ID *  id 
)
static

◆ wm_msg_rna_repr()

static void wm_msg_rna_repr ( FILE *  stream,
const wmMsgSubscribeKey *  msg_key 
)
static

◆ wm_msg_rna_update_by_id()

static void wm_msg_rna_update_by_id ( struct wmMsgBus *  mbus,
ID *  id_src,
ID *  id_dst 
)
static

◆ WM_msg_subscribe_ID()

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

◆ WM_msg_subscribe_rna()

void WM_msg_subscribe_rna ( struct wmMsgBus *  mbus,
PointerRNA *  ptr,
const PropertyRNA *  prop,
const wmMsgSubscribeValue *  msg_val_params,
const char *  id_repr 
)

◆ WM_msg_subscribe_rna_params()

void WM_msg_subscribe_rna_params ( struct wmMsgBus *  mbus,
const wmMsgParams_RNA *  msg_key_params,
const wmMsgSubscribeValue *  msg_val_params,
const char *  id_repr 
)

◆ WM_msgtypeinfo_init_rna()

void WM_msgtypeinfo_init_rna ( wmMsgTypeInfo *  msgtype_info)