/external/clearsilver/util/ |
D | wdb.h | 75 NEOERR * wdb_open (WDB **wdb, const char *name, int flags); 76 NEOERR * wdb_save (WDB *wdb); 77 NEOERR * wdb_update (WDB *wdb, const char *name, const char *key); 78 NEOERR * wdb_create (WDB **wdb, const char *path, const char *name, 81 NEOERR * wdb_column_insert (WDB *wdb, int loc, const char *key, char type); 82 NEOERR * wdb_column_delete (WDB *wdb, const char *name); 83 NEOERR * wdb_column_update (WDB *wdb, const char *oldkey, const char *newkey); 84 NEOERR * wdb_column_exchange (WDB *wdb, const char *key1, const char *key2); 97 NEOERR * wdb_keys (WDB *wdb, char **primary_key, ULIST **data); 99 NEOERR * wdb_attr_get (WDB *wdb, const char *key, char **value); [all …]
|
D | neo_hdf.h | 37 typedef NEOERR* (*HDFFILELOAD)(void *ctx, HDF *hdf, const char *filename, 83 NEOERR* hdf_init (HDF **hdf); 179 NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value, 205 NEOERR * hdf_get_node (HDF *hdf, const char *name, HDF **ret); 235 NEOERR* hdf_set_attr (HDF *hdf, const char *name, const char *key, 324 NEOERR* hdf_set_value (HDF *hdf, const char *name, const char *value); 348 NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...) 350 NEOERR* hdf_set_valuevf (HDF *hdf, const char *fmt, va_list ap); 363 NEOERR* hdf_set_int_value (HDF *hdf, const char *name, int value); 377 NEOERR* hdf_set_copy (HDF *hdf, const char *dest, const char *src); [all …]
|
D | neo_net.h | 37 NEOERR *ne_net_listen(int port, int *fd); 38 NEOERR *ne_net_accept(NSOCK **sock, int fd, int data_timeout); 39 NEOERR *ne_net_connect(NSOCK **sock, const char *host, int port, 41 NEOERR *ne_net_close(NSOCK **sock); 42 NEOERR *ne_net_read(NSOCK *sock, UINT8 *buf, int buflen); 43 NEOERR *ne_net_read_line(NSOCK *sock, char **buf); 44 NEOERR *ne_net_read_binary(NSOCK *sock, UINT8 **b, int *blen); 45 NEOERR *ne_net_read_str_alloc(NSOCK *sock, char **s, int *len); 46 NEOERR *ne_net_read_int(NSOCK *sock, int *i); 47 NEOERR *ne_net_write(NSOCK *sock, const char *b, int blen); [all …]
|
D | neo_err.h | 26 #define STATUS_OK ((NEOERR *)0) 28 #define INTERNAL_ERR ((NEOERR *)1) 61 } NEOERR; typedef 94 NEOERR *nerr_raisef (const char *func, const char *file, int lineno, 108 NEOERR *nerr_raise_errnof (const char *func, const char *file, int lineno, 124 NEOERR *nerr_passf (const char *func, const char *file, int lineno, 125 NEOERR *err); 148 NEOERR *nerr_pass_ctxf (const char *func, const char *file, int lineno, 149 NEOERR *err, const char *fmt, ...) 156 void nerr_log_error (NEOERR *err); [all …]
|
D | neo_err.c | 38 static NEOERR *FreeList = NULL; 53 static NEOERR *_err_alloc(void) in _err_alloc() 55 NEOERR *err; in _err_alloc() 59 err = (NEOERR *)calloc (1, sizeof (NEOERR)); in _err_alloc() 77 static int _err_free (NEOERR *err) in _err_free() 97 NEOERR *nerr_raisef (const char *func, const char *file, int lineno, int error, in nerr_raisef() 100 NEOERR *err; in nerr_raisef() 119 NEOERR *nerr_raise_errnof (const char *func, const char *file, int lineno, in nerr_raise_errnof() 122 NEOERR *err; in nerr_raise_errnof() 146 NEOERR *nerr_passf (const char *func, const char *file, int lineno, NEOERR *err) in nerr_passf() [all …]
|
D | ulist.h | 28 NEOERR * uListInit(ULIST **ul, int size, int flags); 29 NEOERR * uListvInit(ULIST **ul, ...); 31 NEOERR * uListAppend (ULIST *ul, void *data); 32 NEOERR * uListPop (ULIST *ul, void **data); 33 NEOERR * uListInsert (ULIST *ul, int x, void *data); 34 NEOERR * uListDelete (ULIST *ul, int x, void **data); 35 NEOERR * uListGet (ULIST *ul, int x, void **data); 36 NEOERR * uListSet (ULIST *ul, int x, void *data); 37 NEOERR * uListReverse (ULIST *ul); 38 NEOERR * uListSort (ULIST *ul, int (*compareFunc)(const void*, const void*)); [all …]
|
D | neo_str.h | 58 NEOERR *string_set (STRING *str, const char *buf); 59 NEOERR *string_append (STRING *str, const char *buf); 60 NEOERR *string_appendn (STRING *str, const char *buf, int l); 61 NEOERR *string_append_char (STRING *str, char c); 62 NEOERR *string_appendf (STRING *str, const char *fmt, ...) ATTRIBUTE_PRINTF(2,3); 63 NEOERR *string_appendvf (STRING *str, const char *fmt, va_list ap); 64 NEOERR *string_readline (STRING *str, FILE *fp); 71 NEOERR *string_array_split (ULIST **list, char *s, const char *sep, 88 NEOERR* neos_escape(UINT8 *buf, int buflen, char esc_char, const char *escape, 96 NEOERR *neos_var_escape (NEOS_ESCAPE context, [all …]
|
D | rcfs.h | 20 NEOERR * rcfs_init (RCFS **rcfs); 21 NEOERR * rcfs_destroy (RCFS **rcfs); 23 NEOERR * rcfs_load (const char *path, int version, char **data); 24 NEOERR * rcfs_save (const char *path, const char *data, const char *user, 26 NEOERR * rcfs_lock (const char *path, int *lock); 28 NEOERR * rcfs_meta_load (const char *path, HDF **meta); 29 NEOERR * rcfs_meta_save (const char *path, HDF *meta); 30 NEOERR * rcfs_listdir (const char *path, ULIST **list); 31 NEOERR * rcfs_link (const char *src_path, const char *dest_path); 32 NEOERR * rcfs_unlink (const char *path);
|
D | ulocks.h | 21 NEOERR *fCreate(int *plock, const char *file); 34 NEOERR *fFind(int *plock, const char *file); 59 NEOERR *fLock(int lock); 86 NEOERR *mCreate(pthread_mutex_t *mutex); 107 NEOERR *mLock(pthread_mutex_t *mutex); 119 NEOERR *mUnlock(pthread_mutex_t *mutex); 130 NEOERR *cCreate(pthread_cond_t *cond); 152 NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex); 165 NEOERR *cBroadcast(pthread_cond_t *cond); 177 NEOERR *cSignal(pthread_cond_t *cond);
|
D | neo_files.h | 25 NEOERR *ne_mkdirs (const char *path, mode_t mode); 26 NEOERR *ne_load_file (const char *path, char **str); 27 NEOERR *ne_load_file_len (const char *path, char **str, int *len); 28 NEOERR *ne_save_file (const char *path, char *str); 29 NEOERR *ne_remove_dir (const char *path); 30 NEOERR *ne_listdir(const char *path, ULIST **files); 31 NEOERR *ne_listdir_match(const char *path, ULIST **files, const char *match); 32 NEOERR *ne_listdir_fmatch(const char *path, ULIST **files, MATCH_FUNC fmatch,
|
D | ulist.c | 24 static NEOERR *check_resize (ULIST *ul, int size) in check_resize() 51 NEOERR *uListInit(ULIST **ul, int size, int flags) in uListInit() 81 NEOERR *uListvInit(ULIST **ul, ...) in uListvInit() 83 NEOERR *err; in uListvInit() 107 NEOERR *uListAppend (ULIST *ul, void *data) in uListAppend() 109 NEOERR *r; in uListAppend() 121 NEOERR *uListPop (ULIST *ul, void **data) in uListPop() 132 NEOERR *uListInsert (ULIST *ul, int x, void *data) in uListInsert() 135 NEOERR *r; in uListInsert() 156 NEOERR *uListDelete (ULIST *ul, int x, void **data) in uListDelete() [all …]
|
D | ulocks.c | 26 NEOERR *fCreate(int *plock, const char *file) in fCreate() 28 NEOERR *err; in fCreate() 75 NEOERR *fFind(int *plock, const char *file) in fFind() 92 NEOERR *fLock(int lock) in fLock() 114 NEOERR *mCreate(pthread_mutex_t *mutex) in mCreate() 134 NEOERR *mLock(pthread_mutex_t *mutex) in mLock() 144 NEOERR *mUnlock(pthread_mutex_t *mutex) in mUnlock() 154 NEOERR *cCreate(pthread_cond_t *cond) in cCreate() 173 NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex) in cWait() 183 NEOERR *cBroadcast(pthread_cond_t *cond) in cBroadcast() [all …]
|
D | neo_net.c | 40 NEOERR *ne_net_listen(int port, int *fd) in ne_net_listen() 110 NEOERR *ne_net_accept(NSOCK **sock, int sfd, int data_timeout) in ne_net_accept() 149 NEOERR *ne_net_connect(NSOCK **sock, const char *host, int port, in ne_net_connect() 282 NEOERR *ne_net_close(NSOCK **sock) in ne_net_close() 284 NEOERR *err; in ne_net_close() 306 static NEOERR *ne_net_fill(NSOCK *sock) in ne_net_fill() 308 NEOERR *err; in ne_net_fill() 367 NEOERR *ne_net_flush(NSOCK *sock) in ne_net_flush() 412 NEOERR *ne_net_read(NSOCK *sock, UINT8 *buf, int buflen) in ne_net_read() 414 NEOERR *err; in ne_net_read() [all …]
|
D | rcfs.c | 35 NEOERR * rcfs_meta_load (const char *path, HDF **meta) in rcfs_meta_load() 37 NEOERR *err; in rcfs_meta_load() 55 static NEOERR * _meta_save (const char *path, HDF *meta) in _meta_save() 57 NEOERR *err; in _meta_save() 75 NEOERR * rcfs_meta_save (const char *path, HDF *meta) in rcfs_meta_save() 77 NEOERR *err; in rcfs_meta_save() 97 NEOERR * rcfs_load (const char *path, int version, char **data) in rcfs_load() 99 NEOERR *err; in rcfs_load() 123 NEOERR * rcfs_save (const char *path, const char *data, const char *user, in rcfs_save() 126 NEOERR *err; in rcfs_save() [all …]
|
D | wdb.c | 80 static NEOERR *wdb_encode_str_alloc (const char *s, char **o) in wdb_encode_str_alloc() 125 static NEOERR *wdb_decode_str_alloc (const char *s, char **o) in wdb_decode_str_alloc() 180 static NEOERR *wdb_alloc (WDB **wdb, int flags) in wdb_alloc() 183 NEOERR *err = STATUS_OK; in wdb_alloc() 215 static NEOERR *wdb_load_defn_v1 (WDB *wdb, FILE *fp) in wdb_load_defn_v1() 220 NEOERR *err = STATUS_OK; in wdb_load_defn_v1() 328 static NEOERR *wdb_save_defn_v1 (WDB *wdb, FILE *fp) in wdb_save_defn_v1() 330 NEOERR *err = STATUS_OK; in wdb_save_defn_v1() 405 static NEOERR *wdb_load_defn (WDB *wdb, const char *name) in wdb_load_defn() 410 NEOERR *err = STATUS_OK; in wdb_load_defn() [all …]
|
D | neo_files.c | 30 NEOERR *ne_mkdirs (const char *path, mode_t mode) in ne_mkdirs() 66 NEOERR *ne_load_file_len (const char *path, char **str, int *out_len) in ne_load_file_len() 111 NEOERR *ne_load_file (const char *path, char **str) { in ne_load_file() 115 NEOERR *ne_save_file (const char *path, char *str) in ne_save_file() 117 NEOERR *err; in ne_save_file() 139 NEOERR *ne_remove_dir (const char *path) in ne_remove_dir() 141 NEOERR *err; in ne_remove_dir() 195 NEOERR *ne_listdir(const char *path, ULIST **files) in ne_listdir() 205 NEOERR *ne_listdir_match(const char *path, ULIST **files, const char *match) in ne_listdir_match() 210 NEOERR *ne_listdir_fmatch(const char *path, ULIST **files, MATCH_FUNC fmatch, in ne_listdir_fmatch() [all …]
|
D | neo_str.c | 82 static NEOERR* string_check_length (STRING *str, int l) in string_check_length() 111 NEOERR *string_set (STRING *str, const char *buf) in string_set() 117 NEOERR *string_append (STRING *str, const char *buf) in string_append() 119 NEOERR *err; in string_append() 131 NEOERR *string_appendn (STRING *str, const char *buf, int l) in string_appendn() 133 NEOERR *err; in string_appendn() 145 NEOERR *string_appendvf (STRING *str, const char *fmt, va_list ap) in string_appendvf() 147 NEOERR *err; in string_appendvf() 184 NEOERR *string_appendf (STRING *str, const char *fmt, ...) in string_appendf() 186 NEOERR *err; in string_appendf() [all …]
|
D | neo_hdf.c | 56 static NEOERR *_alloc_hdf (HDF **hdf, const char *name, size_t nlen, in _alloc_hdf() 165 NEOERR* hdf_init (HDF **hdf) in hdf_init() 167 NEOERR *err; in hdf_init() 348 NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value, in hdf_get_copy() 401 NEOERR* hdf_set_attr (HDF *hdf, const char *name, const char *key, in hdf_set_attr() 554 NEOERR* _hdf_hash_level(HDF *hdf) in _hdf_hash_level() 556 NEOERR *err; in _hdf_hash_level() 572 static NEOERR* _set_value (HDF *hdf, const char *name, const char *value, in _set_value() 576 NEOERR *err; in _set_value() 821 NEOERR* hdf_set_value (HDF *hdf, const char *name, const char *value) in hdf_set_value() [all …]
|
D | dict.h | 23 NEOERR *dictCreate(dictCtx *dict, BOOL threaded, UINT32 root, UINT32 maxLevel, 116 NEOERR *dictSetValue(dictCtx dict, const char *id, void *value); 129 typedef NEOERR *(*dictNewValueCB)(const char *id, void *rock, void **new_val); 130 typedef NEOERR *(*dictUpdateValueCB)(const char *id, void *value, void *rock); 132 NEOERR *dictModifyValue(dictCtx dict, const char *id, dictNewValueCB new_cb,
|
/external/clearsilver/cgi/ |
D | cgi.h | 34 typedef NEOERR* (*CGI_PARSE_CB)(CGI *, char *method, char *ctype, void *rock); 111 NEOERR *cgi_init (CGI **cgi, HDF *hdf); 140 NEOERR *cgi_parse (CGI *cgi); 191 NEOERR *cgi_register_parse_cb(CGI *cgi, const char *method, const char *ctype, 217 NEOERR *cgi_cs_init(CGI *cgi, CSPARSE **cs); 231 NEOERR *cgi_display (CGI *cgi, const char *cs_file); 244 NEOERR *cgi_output (CGI *cgi, STRING *output); 274 void cgi_neo_error (CGI *cgi, NEOERR *err); 315 NEOERR *cgi_url_escape (const char *buf, char **esc); 329 NEOERR *cgi_url_escape_more (const char *buf, char **esc, const char *other); [all …]
|
D | cgiwrap.h | 88 NEOERR *cgiwrap_getenv (const char *k, char **v); 104 NEOERR *cgiwrap_putenv (const char *k, const char *v); 117 NEOERR *cgiwrap_iterenv (int n, char **k, char **v); 127 NEOERR *cgiwrap_writef (const char *fmt, ...) 141 NEOERR *cgiwrap_writevf (const char *fmt, va_list ap); 152 NEOERR *cgiwrap_write (const char *buf, int buf_len);
|
D | cgi.c | 218 static NEOERR *_add_cgi_env_var (CGI *cgi, char *env, char *name) in _add_cgi_env_var() 220 NEOERR *err; in _add_cgi_env_var() 267 NEOERR *cgi_js_escape (const char *in, char **esc) in cgi_js_escape() 272 NEOERR *cgi_url_escape (const char *buf, char **esc) in cgi_url_escape() 277 NEOERR *cgi_url_escape_more (const char *in, char **esc, in cgi_url_escape_more() 283 NEOERR *cgi_url_validate (const char *buf, char **esc) in cgi_url_validate() 288 static NEOERR *_parse_query (CGI *cgi, char *query) in _parse_query() 290 NEOERR *err = STATUS_OK; in _parse_query() 376 static NEOERR *_parse_post_form (CGI *cgi) in _parse_post_form() 378 NEOERR *err = STATUS_OK; in _parse_post_form() [all …]
|
/external/clearsilver/cs/ |
D | cs.h | 176 typedef NEOERR* (*CSOUTFUNC)(void *, char *); 182 typedef NEOERR* (*CSFUNCTION)(CSPARSE *parse, CS_FUNCTION *csf, CSARG *args, 190 typedef NEOERR* (*CSSTRFUNC)(const char *str, char **ret); 200 typedef NEOERR* (*CSFILELOAD)(void *ctx, HDF *hdf, const char *filename, 250 NEOERR *err; 315 NEOERR *cs_init (CSPARSE **parse, HDF *hdf); 334 NEOERR *cs_parse_file (CSPARSE *parse, const char *path); 356 NEOERR *cs_parse_string (CSPARSE *parse, char *buf, size_t blen); 379 NEOERR *cs_render (CSPARSE *parse, void *ctx, CSOUTFUNC cb); 394 NEOERR *cs_dump (CSPARSE *parse, void *ctx, CSOUTFUNC cb); [all …]
|
D | csparse.c | 77 static NEOERR *literal_parse (CSPARSE *parse, int cmd, char *arg); 78 static NEOERR *literal_eval (CSPARSE *parse, CSTREE *node, CSTREE **next); 79 static NEOERR *name_parse (CSPARSE *parse, int cmd, char *arg); 80 static NEOERR *name_eval (CSPARSE *parse, CSTREE *node, CSTREE **next); 81 static NEOERR *var_parse (CSPARSE *parse, int cmd, char *arg); 82 static NEOERR *var_eval (CSPARSE *parse, CSTREE *node, CSTREE **next); 83 static NEOERR *evar_parse (CSPARSE *parse, int cmd, char *arg); 84 static NEOERR *lvar_parse (CSPARSE *parse, int cmd, char *arg); 85 static NEOERR *lvar_eval (CSPARSE *parse, CSTREE *node, CSTREE **next); 86 static NEOERR *if_parse (CSPARSE *parse, int cmd, char *arg); [all …]
|
/external/clearsilver/csharp/ |
D | CS.cs | 9 public unsafe struct NEOERR {}; struct 14 private static extern unsafe NEOERR* hdf_init(HDF **foo); in hdf_init() 18 private static unsafe extern NEOERR* hdf_set_value(HDF *hdf, in hdf_set_value() 94 extern static unsafe NEOERR *cs_init (CSPARSE **parse, HDF *hdf); in cs_init() 101 extern static unsafe NEOERR *cs_parse_file (CSPARSE *parse, in cs_parse_file() 115 extern static unsafe NEOERR *cs_render (CSPARSE *parse, in cs_render() 120 private unsafe delegate NEOERR* CSOUTFUNC(void* ctx, sbyte* more_bytes); in CSOUTFUNC() 124 public unsafe NEOERR* handleOutput(void* ctx, sbyte* more_bytes) { in handleOutput()
|