Blender V2.61 - r43446
Defines | Functions | Variables

bpy_operator.c File Reference

#include <Python.h>
#include "RNA_types.h"
#include "BPY_extern.h"
#include "bpy_operator.h"
#include "bpy_operator_wrap.h"
#include "bpy_rna.h"
#include "bpy_util.h"
#include "../generic/bpy_internal_import.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BKE_report.h"
#include "BKE_context.h"

Go to the source code of this file.

Defines

#define BPY_RELEASE_GIL

Functions

static PyObject * pyop_poll (PyObject *UNUSED(self), PyObject *args)
static PyObject * pyop_call (PyObject *UNUSED(self), PyObject *args)
static PyObject * pyop_as_string (PyObject *UNUSED(self), PyObject *args)
static PyObject * pyop_dir (PyObject *UNUSED(self))
static PyObject * pyop_getrna (PyObject *UNUSED(self), PyObject *value)
static PyObject * pyop_getinstance (PyObject *UNUSED(self), PyObject *value)
PyObject * BPY_operator_module (void)

Variables

static struct PyMethodDef bpy_ops_methods []
static struct PyModuleDef bpy_ops_module

Detailed Description

This file defines '_bpy.ops', an internal python module which gives python the ability to inspect and call both C and Python defined operators.

Note:
This module is exposed to the user via 'release/scripts/modules/bpy/ops.py' which fakes exposing operators as modules/functions using its own classes.

Definition in file bpy_operator.c.


Define Documentation

#define BPY_RELEASE_GIL

Definition at line 62 of file bpy_operator.c.


Function Documentation

PyObject* BPY_operator_module ( void  )

Definition at line 471 of file bpy_operator.c.

Referenced by BPy_init_modules().

static PyObject* pyop_as_string ( PyObject *  UNUSEDself,
PyObject *  args 
) [static]
static PyObject* pyop_call ( PyObject *  UNUSEDself,
PyObject *  args 
) [static]
static PyObject* pyop_dir ( PyObject *  UNUSEDself) [static]
static PyObject* pyop_getinstance ( PyObject *  UNUSEDself,
PyObject *  value 
) [static]
static PyObject* pyop_getrna ( PyObject *  UNUSEDself,
PyObject *  value 
) [static]
static PyObject* pyop_poll ( PyObject *  UNUSEDself,
PyObject *  args 
) [static]

Variable Documentation

struct PyMethodDef bpy_ops_methods[] [static]
Initial value:
 {
    {"poll", (PyCFunction) pyop_poll, METH_VARARGS, NULL},
    {"call", (PyCFunction) pyop_call, METH_VARARGS, NULL},
    {"as_string", (PyCFunction) pyop_as_string, METH_VARARGS, NULL},
    {"dir", (PyCFunction) pyop_dir, METH_NOARGS, NULL},
    {"get_rna", (PyCFunction) pyop_getrna, METH_O, NULL},           
    {"get_instance", (PyCFunction) pyop_getinstance, METH_O, NULL}, 
    {"macro_define", (PyCFunction) PYOP_wrap_macro_define, METH_VARARGS, NULL},
    {NULL, NULL, 0, NULL}
}

Definition at line 451 of file bpy_operator.c.

struct PyModuleDef bpy_ops_module [static]
Initial value:
 {
    PyModuleDef_HEAD_INIT,
    "_bpy.ops",
    NULL,
    -1,
    bpy_ops_methods,
    NULL, NULL, NULL, NULL
}

Definition at line 462 of file bpy_operator.c.