version 1.1 | | version 1.2 |
---|
| | |
#define PLUGIN_PYTHON_H | | #define PLUGIN_PYTHON_H |
| | |
/* First the required header files - only the CF module interface and Python */ | | /* First the required header files - only the CF module interface and Python */ |
#ifndef __CEXTRACT__ | | |
#include <Python.h> | | #include <Python.h> |
#include <plugin.h> | | #include <plugin.h> |
#endif | | |
| | |
#undef MODULEAPI | | #undef MODULEAPI |
#ifdef WIN32 | | #ifdef WIN32 |
| | |
#include <plugin_common.h> | | #include <plugin_common.h> |
#include <cfpython_object.h> | | #include <cfpython_object.h> |
#include <cfpython_map.h> | | #include <cfpython_map.h> |
#include <cfpython_proto.h> | | |
| | |
typedef struct _cfpcontext | | typedef struct _cfpcontext |
{ | | { |
| | |
/* This plugin allows up to 1024 custom commands. */ | | /* This plugin allows up to 1024 custom commands. */ |
#define NR_CUSTOM_CMD 1024 | | #define NR_CUSTOM_CMD 1024 |
PythonCmd CustomCommand[NR_CUSTOM_CMD]; | | PythonCmd CustomCommand[NR_CUSTOM_CMD]; |
| | #include <cfpython_proto.h> |
| | |
#endif /* PLUGIN_PYTHON_H */ | | #endif /* PLUGIN_PYTHON_H */ |