Home
last modified time | relevance | path

Searched refs:xop (Results 1 – 10 of 10) sorted by relevance

/f-stack/tools/libxo/libxo/
H A Dlibxo.c709 xop = xo_default(xop); in xo_indent()
1490 xop = xo_default(xop); in xo_warn_hcv()
1664 xop = xo_default(xop); in xo_message_hcv()
1873 bzero(xop, sizeof(*xop)); in xo_create()
1919 xop = xo_default(xop); in xo_set_file_h()
1988 xop = xo_default(xop); in xo_set_style()
2001 xop = xo_default(xop); in xo_get_style()
2272 xop = xo_default(xop); in xo_set_options()
2455 xop = xo_default(xop); in xo_set_flags()
3865 xop->xo_checkpointer(xop, xop->xo_vap, 0); in xo_buf_append_div()
[all …]
H A Dxo.h158 xo_destroy (xo_handle_t *xop);
171 xo_get_style (xo_handle_t *xop);
180 xo_get_flags (xo_handle_t *xop);
189 xo_set_file_h (xo_handle_t *xop, FILE *fp);
226 return xo_emit_hv(xop, fmt, vap); in xo_emit_hvp()
303 xo_close_container_hd (xo_handle_t *xop);
330 xo_close_list_hd (xo_handle_t *xop);
357 xo_close_instance_hd (xo_handle_t *xop);
402 xo_flush_h (xo_handle_t *xop);
408 xo_finish_h (xo_handle_t *xop);
[all …]
H A Dxo_encoder.c341 xo_set_encoder(xop, xep->xe_handler); in xo_encoder_init()
349 rc = xo_encoder_handle(xop, op, name, opts, 0); in xo_encoder_init()
363 xo_handle_t *xop; in xo_encoder_create() local
365 xop = xo_create(XO_STYLE_ENCODER, flags); in xo_encoder_create()
366 if (xop) { in xo_encoder_create()
367 if (xo_encoder_init(xop, name)) { in xo_encoder_create()
368 xo_destroy(xop); in xo_encoder_create()
369 xop = NULL; in xo_encoder_create()
373 return xop; in xo_encoder_create()
380 void *private = xo_get_private(xop); in xo_encoder_handle()
[all …]
H A Dxo_encoder.h96 xo_handle_t *xop __attribute__ ((__unused__)), \
134 xo_get_private (xo_handle_t *xop);
140 xo_set_private (xo_handle_t *xop, void *opaque);
143 xo_get_encoder (xo_handle_t *xop);
146 xo_set_encoder (xo_handle_t *xop, xo_encoder_func_t encoder);
149 xo_encoder_init (xo_handle_t *xop, const char *name);
155 xo_encoder_handle (xo_handle_t *xop, xo_encoder_op_t op,
168 xo_failure (xo_handle_t *xop, const char *fmt, ...);
H A Dxo_syslog.c528 xo_handle_t *xop = xo_create(XO_STYLE_SDPARAMS, 0); in xo_vsyslog() local
529 if (xop == NULL) { in xo_vsyslog()
539 xo_set_writer(xop, &xb, xo_syslog_handle_write, xo_syslog_handle_close, in xo_vsyslog()
656 xo_emit_hv(xop, fmt, ap); in xo_vsyslog()
657 xo_flush_h(xop); in xo_vsyslog()
679 xo_set_style(xop, XO_STYLE_TEXT); in xo_vsyslog()
680 xo_set_flags(xop, XOF_UTF8); in xo_vsyslog()
683 xo_emit_hv(xop, fmt, ap); in xo_vsyslog()
684 xo_flush_h(xop); in xo_vsyslog()
690 if (xo_get_flags(xop) & XOF_LOG_SYSLOG) in xo_vsyslog()
[all …]
H A Dxo_explicit.h58 xo_explicit_transition (xo_handle_t *xop, xo_state_t new_state,
/f-stack/tools/libxo/encoder/cbor/
H A Denc_cbor.c180 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()
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()
272 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
283 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
295 cbor_append(xop, cbor, xbp, CBOR_BREAK, 0, NULL); in cbor_handler()
325 cbor_content(xop, cbor, xbp, value); in cbor_handler()
[all …]
/f-stack/tools/libxo/encoder/csv/
H A Denc_csv.c182 csv_create (xo_handle_t *xop) in csv_create() argument
196 xo_set_private(xop, csv); in csv_create()
396 xo_flush_h(xop); in csv_emit_record()
427 csv_emit_record(xop, csv); in csv_open_level()
468 csv_emit_record(xop, csv); in csv_close_level()
592 csv_leaf_num(xop, csv, cp, 0); in csv_record_leafs()
709 xo_warn_hc(xop, -1, in csv_options()
738 csv_leaf_set(xop, csv, lp, value); in csv_data()
764 rc = csv_create(xop); in csv_handler()
791 rc = csv_close_level(xop, csv, name); in csv_handler()
[all …]
/f-stack/tools/libxo/doc/
H A Dapi.rst118 :type xop: xo_handle_t *
137 :type xop: xo_handle_t *
182 :type xop: xo_handle_t *
203 :type xop: xo_handle_t \*
222 :type xop: xo_handle_t \*
343 :type xop: xo_handle_t \*
358 :type xop: xo_handle_t \*
673 :type xop: xo_handle_t *
687 :type xop: xo_handle_t *
1237 :type xop: va_list
[all …]
/f-stack/tools/libxo/xo/
H A Dxo.c81 checkpoint (xo_handle_t *xop UNUSED, va_list vap UNUSED, int restore) in checkpoint()
95 formatter (xo_handle_t *xop, char *buf, xo_ssize_t bufsiz, in formatter() argument
127 xo_error_h(xop, "unsupported format: '%s'", fmt); in formatter()