Blender  V3.3
Macros | Functions | Variables
callbacks.c File Reference
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BKE_callbacks.h"
#include "MEM_guardedalloc.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "RNA_types.h"

Go to the source code of this file.

Macros

#define ASSERT_CALLBACKS_INITIALIZED()
 

Functions

void BKE_callback_exec (struct Main *bmain, struct PointerRNA **pointers, const int num_pointers, eCbEvent evt)
 
void BKE_callback_exec_null (struct Main *bmain, eCbEvent evt)
 
void BKE_callback_exec_id (struct Main *bmain, struct ID *id, eCbEvent evt)
 
void BKE_callback_exec_id_depsgraph (struct Main *bmain, struct ID *id, struct Depsgraph *depsgraph, eCbEvent evt)
 
void BKE_callback_add (bCallbackFuncStore *funcstore, eCbEvent evt)
 
void BKE_callback_remove (bCallbackFuncStore *funcstore, eCbEvent evt)
 
void BKE_callback_global_init (void)
 
void BKE_callback_global_finalize (void)
 

Variables

static ListBase callback_slots [BKE_CB_EVT_TOT] = {{NULL}}
 
static bool callbacks_initialized = false
 

Macro Definition Documentation

◆ ASSERT_CALLBACKS_INITIALIZED

#define ASSERT_CALLBACKS_INITIALIZED ( )
Value:
"Callbacks should be initialized with BKE_callback_global_init() before using " \
"the callback system.")
#define BLI_assert_msg(a, msg)
Definition: BLI_assert.h:53
static bool callbacks_initialized
Definition: callbacks.c:20

Definition at line 22 of file callbacks.c.

Function Documentation

◆ BKE_callback_add()

void BKE_callback_add ( bCallbackFuncStore funcstore,
eCbEvent  evt 
)

◆ BKE_callback_exec()

void BKE_callback_exec ( struct Main bmain,
struct PointerRNA **  pointers,
const int  num_pointers,
eCbEvent  evt 
)

◆ BKE_callback_exec_id()

void BKE_callback_exec_id ( struct Main bmain,
struct ID id,
eCbEvent  evt 
)

◆ BKE_callback_exec_id_depsgraph()

void BKE_callback_exec_id_depsgraph ( struct Main bmain,
struct ID id,
struct Depsgraph depsgraph,
eCbEvent  evt 
)

◆ BKE_callback_exec_null()

void BKE_callback_exec_null ( struct Main bmain,
eCbEvent  evt 
)

◆ BKE_callback_global_finalize()

void BKE_callback_global_finalize ( void  )

◆ BKE_callback_global_init()

void BKE_callback_global_init ( void  )

◆ BKE_callback_remove()

void BKE_callback_remove ( bCallbackFuncStore funcstore,
eCbEvent  evt 
)

Variable Documentation

◆ callback_slots

ListBase callback_slots[BKE_CB_EVT_TOT] = {{NULL}}
static

◆ callbacks_initialized

bool callbacks_initialized = false
static