• Home
  • Raw
  • Download

Lines Matching refs:jbl

109   JBL jbl = 0;  in _on_get()  local
113 iwrc rc = ejdb_get(ctx->jbr->db, ctx->cname, ctx->id, &jbl); in _on_get()
122 RCC(rc, finish, jbl_as_json(jbl, jbl_count_json_printer, &nbytes, JBL_PRINT_PRETTY)); in _on_get()
125 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _on_get()
126 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _on_get()
137 jbl_destroy(&jbl); in _on_get()
150 JBL jbl; in _on_post() local
153 iwrc rc = jbl_from_json(&jbl, ctx->req->body); in _on_post()
158 RCC(rc, finish, ejdb_put_new(ctx->jbr->db, ctx->cname, jbl, &id)); in _on_post()
165 jbl_destroy(&jbl); in _on_post()
177 JBL jbl; in _on_put() local
179 iwrc rc = jbl_from_json(&jbl, ctx->req->body); in _on_put()
184 RCC(rc, finish, ejdb_put(ctx->jbr->db, ctx->cname, jbl, ctx->id)); in _on_put()
191 jbl_destroy(&jbl); in _on_put()
254 JBL jbl = 0; in _on_options() local
258 RCC(rc, finish, ejdb_get_meta(ctx->jbr->db, &jbl)); in _on_options()
259 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _on_options()
260 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _on_options()
289 jbl_destroy(&jbl); in _on_options()
616 JBL jbl = 0; in _ws_info() local
624 RCC(rc, finish, ejdb_get_meta(ctx->jbr->db, &jbl)); in _ws_info()
625 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _ws_info()
627 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _ws_info()
634 jbl_destroy(&jbl); in _ws_info()
659 JBL jbl = 0; in _ws_document_add() local
667 RCC(rc, finish, jbl_from_json(&jbl, json)); in _ws_document_add()
668 RCC(rc, finish, ejdb_put_new(ctx->jbr->db, mctx->cname, jbl, &id)); in _ws_document_add()
672 jbl_destroy(&jbl); in _ws_document_add()
681 JBL jbl = 0; in _ws_document_get() local
686 RCC(rc, finish, ejdb_get(ctx->jbr->db, mctx->cname, id, &jbl)); in _ws_document_get()
687 RCA(xstr = iwxstr_new2(jbl->bn.size * 2), finish); in _ws_document_get()
689 RCC(rc, finish, jbl_as_json(jbl, jbl_xstr_json_printer, xstr, JBL_PRINT_PRETTY)); in _ws_document_get()
694 jbl_destroy(&jbl); in _ws_document_get()
703 JBL jbl = 0; in _ws_document_set() local
710 RCC(rc, finish, jbl_from_json(&jbl, json)); in _ws_document_set()
711 RCC(rc, finish, ejdb_put(ctx->jbr->db, mctx->cname, jbl, id)); in _ws_document_set()
715 jbl_destroy(&jbl); in _ws_document_set()