2013-02-23 18:32:28 +00:00
|
|
|
/*
|
|
|
|
|
* 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,
|
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
|
* \ingroup freestyle
|
2013-02-23 18:32:28 +00:00
|
|
|
*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#ifndef __FREESTYLE_PYTHON_ID_H__
|
|
|
|
|
#define __FREESTYLE_PYTHON_ID_H__
|
2008-07-12 04:02:08 +00:00
|
|
|
|
2014-04-17 12:25:41 +09:00
|
|
|
extern "C" {
|
2010-04-07 23:28:29 +00:00
|
|
|
#include <Python.h>
|
2014-04-17 12:25:41 +09:00
|
|
|
}
|
|
|
|
|
|
2008-07-12 04:02:08 +00:00
|
|
|
#include <iostream>
|
2013-04-09 00:46:49 +00:00
|
|
|
|
2008-07-12 04:02:08 +00:00
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
#include "../system/Id.h"
|
|
|
|
|
|
2013-04-09 00:46:49 +00:00
|
|
|
using namespace Freestyle;
|
|
|
|
|
|
2008-07-12 04:02:08 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
extern PyTypeObject Id_Type;
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#define BPy_Id_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&Id_Type))
|
2008-07-12 04:02:08 +00:00
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_Id structure definition----------*/
|
|
|
|
|
typedef struct {
|
2019-04-17 06:17:24 +02:00
|
|
|
PyObject_HEAD Id *id;
|
2008-07-12 04:02:08 +00:00
|
|
|
} BPy_Id;
|
|
|
|
|
|
|
|
|
|
/*---------------------------Python BPy_Id visible prototypes-----------*/
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
int Id_Init(PyObject *module);
|
2008-07-12 04:02:08 +00:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2013-02-23 18:50:33 +00:00
|
|
|
#endif /* __FREESTYLE_PYTHON_ID_H__ */
|