diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-05 00:13:39 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-05 00:13:39 +0400 |
commit | 21bf13989f0a38d56dbe98334e9503623a976ea2 (patch) | |
tree | 735ab5bbc13a1dd32bd7c0f2d7099d2f92affeb5 /intern/audaspace | |
parent | 6e97ecee00bef36fa21fd60a53271d651d43c2e0 (diff) |
code cleanup: remove Python.h include from blenkernel.
Diffstat (limited to 'intern/audaspace')
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.cpp | 6 | ||||
-rw-r--r-- | intern/audaspace/intern/AUD_C-API.h | 8 |
2 files changed, 5 insertions, 9 deletions
diff --git a/intern/audaspace/intern/AUD_C-API.cpp b/intern/audaspace/intern/AUD_C-API.cpp index 50b47650696..a7d37da0426 100644 --- a/intern/audaspace/intern/AUD_C-API.cpp +++ b/intern/audaspace/intern/AUD_C-API.cpp @@ -244,7 +244,7 @@ PyObject* AUD_initPython() return module; } -PyObject* AUD_getPythonFactory(AUD_Sound* sound) +void* AUD_getPythonFactory(AUD_Sound* sound) { if(sound) { @@ -259,9 +259,9 @@ PyObject* AUD_getPythonFactory(AUD_Sound* sound) return NULL; } -AUD_Sound* AUD_getPythonSound(PyObject* sound) +AUD_Sound* AUD_getPythonSound(void* sound) { - Factory* factory = checkFactory(sound); + Factory* factory = checkFactory((PyObject *)sound); if(!factory) return NULL; diff --git a/intern/audaspace/intern/AUD_C-API.h b/intern/audaspace/intern/AUD_C-API.h index a52a1fa8369..66e6984c71b 100644 --- a/intern/audaspace/intern/AUD_C-API.h +++ b/intern/audaspace/intern/AUD_C-API.h @@ -29,10 +29,6 @@ #ifndef __AUD_C_API_H__ #define __AUD_C_API_H__ -#ifdef WITH_PYTHON -#include "Python.h" -#endif - #ifdef __cplusplus extern "C" { #endif @@ -740,14 +736,14 @@ extern AUD_Device* AUD_openMixdownDevice(AUD_DeviceSpecs specs, AUD_Sound* seque * \param sound The sound factory. * \return The python factory. */ -extern PyObject* AUD_getPythonFactory(AUD_Sound* sound); +extern void* AUD_getPythonFactory(AUD_Sound* sound); /** * Retrieves the sound factory of a python factory. * \param sound The python factory. * \return The sound factory. */ -extern AUD_Sound* AUD_getPythonSound(PyObject* sound); +extern AUD_Sound* AUD_getPythonSound(void* sound); #endif #ifdef __cplusplus |