c561226c4b0ade8eeb13ada1e659f474110b7a20 kate Thu Apr 12 17:12:40 2012 -0700 Minimal lib for shared functions for API programs diff --git src/hg/inc/api.h src/hg/inc/api.h new file mode 100644 index 0000000..1deb376 --- /dev/null +++ src/hg/inc/api.h @@ -0,0 +1,7 @@ +/* Utility functions for web API programs */ + +void apiOut(char *text, char *jsonp); +/* Output content header and text to stdout */ + +void apiWarnAbortHandler(char *format, va_list args); +/* warnAbort handler that aborts with an HTTP 400 status code. */