Blender  V2.59
Functions | Variables
bpy_app_handlers.c File Reference
#include <Python.h>
#include "BLI_utildefines.h"
#include "BLI_callbacks.h"
#include "RNA_types.h"
#include "RNA_access.h"
#include "bpy_rna.h"
#include "bpy_app_handlers.h"

Go to the source code of this file.

Functions

void bpy_app_generic_callback (struct Main *main, struct ID *id, void *arg)
static PyObject * make_app_cb_info (void)
PyObject * BPY_app_handlers_struct (void)
void BPY_app_handlers_reset (void)
void bpy_app_generic_callback (struct Main *UNUSED(main), struct ID *id, void *arg)

Variables

static PyTypeObject BlenderAppCbType
static PyStructSequence_Field app_cb_info_fields []
static PyStructSequence_Desc app_cb_info_desc
static PyObject * py_cb_array [BLI_CB_EVT_TOT] = {0}

Detailed Description

Definition in file bpy_app_handlers.c.


Function Documentation

void bpy_app_generic_callback ( struct Main main,
struct ID id,
void *  arg 
)

Referenced by BPY_app_handlers_struct().

void bpy_app_generic_callback ( struct Main UNUSEDmain,
struct ID id,
void *  arg 
)
void BPY_app_handlers_reset ( void  )

Definition at line 120 of file bpy_app_handlers.c.

References BLI_CB_EVT_TOT, and NULL.

Referenced by load_file(), WM_init(), WM_read_file(), and WM_read_homefile().

PyObject* BPY_app_handlers_struct ( void  )
static PyObject* make_app_cb_info ( void  ) [static]

Definition at line 67 of file bpy_app_handlers.c.

References app_cb_info_fields, BlenderAppCbType, BLI_CB_EVT_TOT, and NULL.

Referenced by BPY_app_handlers_struct().


Variable Documentation

PyStructSequence_Desc app_cb_info_desc [static]
Initial value:
 {
        (char *)"bpy.app.handlers",     
        (char *)"This module contains callbacks",    
        app_cb_info_fields,    
        (sizeof(app_cb_info_fields)/sizeof(PyStructSequence_Field)) - 1
}

Definition at line 52 of file bpy_app_handlers.c.

PyStructSequence_Field app_cb_info_fields[] [static]
Initial value:
 {
        {(char *)"render_pre", NULL},
        {(char *)"render_post", NULL},
    {(char *)"load_pre", NULL},
        {(char *)"load_post", NULL},
    {(char *)"save_pre", NULL},
        {(char *)"save_post", NULL},
        {NULL}
}

Definition at line 42 of file bpy_app_handlers.c.

Referenced by make_app_cb_info().

PyTypeObject BlenderAppCbType [static]

Definition at line 40 of file bpy_app_handlers.c.

Referenced by BPY_app_handlers_struct(), and make_app_cb_info().

PyObject* py_cb_array[BLI_CB_EVT_TOT] = {0} [static]

Definition at line 65 of file bpy_app_handlers.c.