Lines Matching refs:xop
167 cbor_append (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, in cbor_append() argument
180 if (xo_get_flags(xop) & XOF_PRETTY) in cbor_append()
187 cbor_create (xo_handle_t *xop) in cbor_create() argument
196 xo_set_private(xop, cbor); in cbor_create()
198 cbor_append(xop, cbor, &cbor->c_data, CBOR_MAP | CBOR_INDEF, 0, NULL); in cbor_create()
204 cbor_content (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, in cbor_content() argument
212 cbor_append(xop, cbor, &cbor->c_data, CBOR_TRUE, 0, NULL); in cbor_content()
214 cbor_append(xop, cbor, &cbor->c_data, CBOR_FALSE, 0, NULL); in cbor_content()
226 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(value), value); in cbor_content()
235 if (xo_get_flags(xop) & XOF_PRETTY) in cbor_content()
250 if (xo_get_flags(xop) & XOF_PRETTY) { in cbor_handler()
262 rc = cbor_create(xop); in cbor_handler()
266 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(name), name); in cbor_handler()
267 cbor_append(xop, cbor, xbp, CBOR_MAP | CBOR_INDEF, 0, NULL); in cbor_handler()
272 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
277 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(name), name); in cbor_handler()
278 cbor_append(xop, cbor, xbp, CBOR_ARRAY | CBOR_INDEF, 0, NULL); in cbor_handler()
283 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
288 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(name), name); in cbor_handler()
289 cbor_append(xop, cbor, xbp, CBOR_ARRAY | CBOR_INDEF, 0, NULL); in cbor_handler()
295 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
301 cbor_append(xop, cbor, xbp, CBOR_MAP | CBOR_INDEF, 0, NULL); in cbor_handler()
306 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
312 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(name), name); in cbor_handler()
313 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(value), value); in cbor_handler()
318 cbor_append(xop, cbor, xbp, CBOR_STRING, strlen(name), name); in cbor_handler()
325 cbor_content(xop, cbor, xbp, value); in cbor_handler()
329 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
334 if (xo_get_flags(xop) & XOF_PRETTY) in cbor_handler()