-
Notifications
You must be signed in to change notification settings - Fork 3
/
dpl.h
21 lines (17 loc) · 778 Bytes
/
dpl.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __DPL_H_
#define __DPL_H_
#include <stdio.h>
typedef void * PyObject;
void (*Py_Initialize) (void);
void (*PyList_Append) (PyObject *, PyObject *);
PyObject (*PySys_GetObject) (char *);
PyObject (*PyString_FromString) (char *);
PyObject (*PyImport_ImportModule) (char *);
PyObject (*PyObject_GetAttrString) (PyObject *, char *);
int (*PyTuple_SetItem) (PyObject *, size_t pos, PyObject *);
int (*PyCallable_Check) (PyObject *);
PyObject (*PyTuple_New) (int);
PyObject (*PyObject_CallObject) (PyObject *, PyObject *);
char * (*PyString_AsString) (PyObject *);
int dpl_load_python(void);
#endif // __DPL_H_