Go to the documentation of this file.
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);
Metadata information about a full Service.
Definition: service.h:715
maps * mapsFromJSObject(JSContext *, jsval)
Convert a JavaScript Object to a maps.
Definition: service_internal_js.c:545
JSBool JSRequest(JSContext *, uintN, jsval *)
The function used as ZOORequest from the JavaScript environment (ZOO-API)
Definition: service_internal_js.c:920
char * JSValToChar(JSContext *, jsval *)
Convert a JavaScript value to a char*.
Definition: service_internal_js.c:820
JSBool JSTranslate(JSContext *, uintN, jsval *)
The function used as ZOOTranslate from the JavaScript environment.
Definition: service_internal_js.c:900
JSObject * JSObject_FromMaps(JSContext *, maps *)
Convert a maps to a JavaScript Object.
Definition: service_internal_js.c:443
linked list of map pointer
Definition: service.h:678
JSObject * JSObject_FromMap(JSContext *, map *)
Convert a map to a JavaScript Object.
Definition: service_internal_js.c:472
KVP linked list.
Definition: service.h:657
JSBool JSUpdateStatus(JSContext *, uintN, jsval *)
The function used as ZOOUpdateStatus from the JavaScript environment (ZOO-API).
Definition: service_internal_js.c:1021
JSObject * loadZooApiFile(JSContext *, JSObject *, char *)
Load a JavaScript file.
Definition: service_internal_js.c:411
JSBool JSSleep(JSContext *, uintN, jsval *)
The function used as sleep from the JavaScript environment (ZOO-API).
Definition: service_internal_js.c:1066
void reportError(JSContext *cx, const char *message, JSErrorReport *report)
Print debug information messages on stderr.
Definition: service_internal_js.c:800
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
map * mapFromJSObject(JSContext *, jsval)
Convert a JavaScript Object to a map.
Definition: service_internal_js.c:737