source: trunk/include/cee/rappture_interface.h @ 49

Last change on this file since 49 was 49, checked in by dkearney, 16 years ago

changed all functions with PyString_AsString calls to copy the contents
of the returned python object to newly allocated memory and return the
newly allocated memory. this leaves it up to the user to free all of
the returned items, while the interface function is still responsible
for taking care of python's memory.

File size: 1.0 KB
Line 
1#include "python2.4/Python.h"
2
3/*
4#ifdef _cplusplus
5extern "C" {
6#endif   
7*/
8
9PyObject* importRappture    ();
10PyObject* createRapptureObj (PyObject* rpObj, const char* path);
11
12void*       rpElement   (PyObject* lib, const char* path, const char* flavor);
13void**      rpChildren  (PyObject* lib, const char* path, const char* flavor);
14PyObject*   rpChildren_f  (PyObject* lib, const char* path, const char* flavor);
15char* rpGet       (PyObject* lib, const char* path);
16void        rpPut       (PyObject* lib,
17                            const char* path,
18                            const char* value,
19                            const char* id,
20                            int append );
21void        rpPutObj    (PyObject* lib,
22                            const char* path,
23                            PyObject* value,
24                            const char* id,
25                            int append );
26
27PyObject*   rpRemove    (PyObject* lib, const char* path);
28char* rpXml       (PyObject* lib);
29
30/*
31#ifdef _cplusplus
32}
33#endif   
34*/
Note: See TracBrowser for help on using the repository browser.