2011-02-23 23:22:25 +00:00
|
|
|
/*
|
2008-12-21 08:53:36 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2008-12-21 08:53:36 +00:00
|
|
|
*
|
|
|
|
|
* Contributor(s): Campbell Barton
|
|
|
|
|
*
|
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
*/
|
2011-02-27 20:10:08 +00:00
|
|
|
|
|
|
|
|
/** \file blender/python/intern/bpy_operator.h
|
|
|
|
|
* \ingroup pythonintern
|
|
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __BPY_OPERATOR_H__
|
|
|
|
|
#define __BPY_OPERATOR_H__
|
2008-12-21 08:53:36 +00:00
|
|
|
|
|
|
|
|
extern PyTypeObject pyop_base_Type;
|
|
|
|
|
|
2009-02-28 13:27:45 +00:00
|
|
|
#define BPy_OperatorBase_Check(v) (PyObject_TypeCheck(v, &pyop_base_Type))
|
2009-02-26 05:50:19 +00:00
|
|
|
|
2008-12-21 08:53:36 +00:00
|
|
|
typedef struct {
|
2009-01-29 09:38:52 +00:00
|
|
|
PyObject_HEAD /* required python macro */
|
2008-12-21 08:53:36 +00:00
|
|
|
} BPy_OperatorBase;
|
|
|
|
|
|
2009-04-11 05:46:40 +00:00
|
|
|
PyObject *BPY_operator_module(void);
|
2008-12-21 08:53:36 +00:00
|
|
|
|
|
|
|
|
#endif
|