ZOO-Project
Data Structures | Macros | Functions | Variables
service_internal_python.c File Reference
#include "service_internal_python.h"

Data Structures

struct  module_state
 The state for the zoo Python module. More...
 

Macros

#define GETSTATE(m)   (&_state)
 

Functions

PyMODINIT_FUNC init_zoo ()
 Function to create and initialize the zoo Python module. More...
 
int zoo_python_support (maps **main_conf, map *request, service *s, maps **real_inputs, maps **real_outputs)
 Load a Python module then run the function corresponding to the service by passing the conf, inputs and outputs parameters by reference. More...
 
void PythonZooReport (maps *m, const char *module, int load)
 Report Python error which may occur on loading the Python module or at runtime. More...
 
PyDictObject * PyDict_FromMaps (maps *t)
 Convert a maps to a Python dictionary. More...
 
PyDictObject * PyDict_FromMap (map *t)
 Convert a map to a Python dictionary. More...
 
mapsmapsFromPyDict (PyDictObject *t)
 Convert a Python dictionary to a maps. More...
 
maps_mapsFromPyDict (PyDictObject *t)
 Convert a Python dictionary to a maps. More...
 
mapmapFromPyDict (PyDictObject *t)
 Convert a Python dictionary to a map. More...
 
map_mapFromPyDict (PyDictObject *t)
 Convert a Python dictionary to a map. More...
 
PyObject * PythonTranslate (PyObject *self, PyObject *args)
 Use the ZOO-Services messages translation function from the Python environment. More...
 
PyObject * PythonUpdateStatus (PyObject *self, PyObject *args)
 Update the ongoing status of a running service from the Python environment. More...
 

Variables

static struct module_state _state
 
static PyObject * ZooError
 The exception for the zoo Python module. More...
 
PyMethodDef zooMethods []
 Function definitions for the zoo Python Module. More...
 

Data Structure Documentation

struct module_state

The state for the zoo Python module.

Data Fields
PyObject * error

Macro Definition Documentation

#define GETSTATE (   m)    (&_state)