25 #ifndef ZOO_SERVICE_INTERNAL_JS_H
26 #define ZOO_SERVICE_INTERNAL_JS_H 1
34 #include <sys/types.h>
49 JSBool
JSRequest(JSContext*, uintN, jsval*);
51 JSBool
JSSleep(JSContext*,uintN,jsval *);
53 void reportError(JSContext *cx,
const char *message, JSErrorReport *report);
JSBool JSUpdateStatus(JSContext *, uintN, jsval *)
The function used as ZOOUpdateStatus from the JavaScript environment (ZOO-API).
Definition: service_internal_js.c:996
JSObject * JSObject_FromMaps(JSContext *, maps *)
Convert a maps to a JavaScript Object.
Definition: service_internal_js.c:422
map * mapFromJSObject(JSContext *, jsval)
Convert a JavaScript Object to a map.
Definition: service_internal_js.c:713
maps * mapsFromJSObject(JSContext *, jsval)
Convert a JavaScript Object to a maps.
Definition: service_internal_js.c:524
linked list of map pointer
Definition: main_conf_read.y:292
void reportError(JSContext *cx, const char *message, JSErrorReport *report)
Print debug information messages on stderr.
Definition: service_internal_js.c:776
int zoo_js_support(maps **, map *, service *, maps **, maps **)
Load a JavaScript file then run the function corresponding to the service by passing the conf...
Definition: service_internal_js.c:102
KVP linked list.
Definition: service.h:244
Metadata information about a full Service.
Definition: main_conf_read.y:329
char * JSValToChar(JSContext *, jsval *)
Convert a JavaScript value to a char*.
Definition: service_internal_js.c:796
JSObject * loadZooApiFile(JSContext *, JSObject *, char *)
Load a JavaScript file.
Definition: service_internal_js.c:390
JSObject * JSObject_FromMap(JSContext *, map *)
Convert a map to a JavaScript Object.
Definition: service_internal_js.c:451
JSBool JSSleep(JSContext *, uintN, jsval *)
The function used as sleep from the JavaScript environment (ZOO-API).
Definition: service_internal_js.c:1041
JSBool JSRequest(JSContext *, uintN, jsval *)
The function used as ZOORequest from the JavaScript environment (ZOO-API)
Definition: service_internal_js.c:896
JSBool JSTranslate(JSContext *, uintN, jsval *)
The function used as ZOOTranslate from the JavaScript environment.
Definition: service_internal_js.c:876