Home
last modified time | relevance | path

Searched refs:xo_handle_t (Results 1 – 12 of 12) sorted by relevance

/freebsd/contrib/libxo/libxo/
H A Dxo.h123 typedef struct xo_handle_s xo_handle_t; /* Handle for XO output */ typedef
147 typedef xo_ssize_t (*xo_formatter_t)(xo_handle_t *, char *, xo_ssize_t,
149 typedef void (*xo_checkpointer_t)(xo_handle_t *, va_list, int);
151 xo_handle_t *
154 xo_handle_t *
158 xo_destroy (xo_handle_t *xop);
161 xo_set_writer (xo_handle_t *xop, void *opaque, xo_write_func_t write_func,
168 xo_set_style (xo_handle_t *xop, xo_style_t style);
171 xo_get_style (xo_handle_t *xop);
174 xo_set_style_name (xo_handle_t *xop, const char *style);
[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);
151 xo_handle_t *
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 Dlibxo.c392 static THREAD_LOCAL(xo_handle_t) xo_default_handle;
406 xo_transition (xo_handle_t *xop, xo_xof_flags_t flags, const char *name,
410 xo_set_options_simple (xo_handle_t *xop, const char *input);
416 xo_buf_append_div (xo_handle_t *xop, const char *class, xo_xff_flags_t flags,
423 xo_anchor_clear (xo_handle_t *xop);
434 xo_style (xo_handle_t *xop UNUSED) in xo_style()
529 xo_depth_check (xo_handle_t *xop, int depth) in xo_depth_check()
565 xo_xml_leader_len (xo_handle_t *xop, const char *name, xo_ssize_t nlen) in xo_xml_leader_len()
575 xo_xml_leader (xo_handle_t *xop, const char *name) in xo_xml_leader()
609 xo_init_handle (xo_handle_t *xop) in xo_init_handle()
[all …]
H A Dxo_encoder.c316 xo_encoder_init (xo_handle_t *xop, const char *name) in xo_encoder_init()
387 xo_handle_t *
390 xo_handle_t *xop; in xo_encoder_create()
404 xo_encoder_handle (xo_handle_t *xop, xo_encoder_op_t op, in xo_encoder_handle()
H A Dxo_explicit.h58 xo_explicit_transition (xo_handle_t *xop, xo_state_t new_state,
H A Dxo_syslog.c528 xo_handle_t *xop = xo_create(XO_STYLE_SDPARAMS, 0); in xo_vsyslog()
/freebsd/contrib/libxo/encoder/csv/
H A Denc_csv.c164 csv_dbg (xo_handle_t *xop UNUSED, csv_private_t *csv UNUSED, in csv_dbg()
182 csv_create (xo_handle_t *xop) in csv_create()
205 csv_destroy (xo_handle_t *xop UNUSED, csv_private_t *csv) in csv_destroy()
271 csv_quote_flags (xo_handle_t *xop UNUSED, csv_private_t *csv UNUSED, in csv_quote_flags()
337 csv_emit_record (xo_handle_t *xop, csv_private_t *csv) in csv_emit_record()
421 csv_open_level (xo_handle_t *xop UNUSED, csv_private_t *csv, in csv_open_level()
463 csv_close_level (xo_handle_t *xop UNUSED, csv_private_t *csv, const char *name) in csv_close_level()
493 csv_leaf_num (xo_handle_t *xop UNUSED, csv_private_t *csv, in csv_leaf_num()
555 csv_leaf_set (xo_handle_t *xop UNUSED, csv_private_t *csv, leaf_t *lp, in csv_leaf_set()
575 csv_record_leafs (xo_handle_t *xop, csv_private_t *csv, const char *leafs_raw) in csv_record_leafs()
[all …]
/freebsd/contrib/libxo/doc/
H A Dapi.rst20 stream of output. Handles have the data type "`xo_handle_t`" and are
52 .. c:function:: xo_handle_t *xo_create (xo_style_t style, xo_xof_flags_t flags)
55 to further libxo function calls. The `xo_handle_t` structure is
61 :rtype: xo_handle_t \*
66 xo_handle_t *xop = xo_create(XO_STYLE_JSON, XOF_WARN | XOF_PRETTY);
79 xo_handle_t *xo_create_to_file (FILE *fp, unsigned style, unsigned flags)
94 :rtype: xo_handle_t \*
105 void xo_set_writer (xo_handle_t *xop, void *opaque, \
118 :type xop: xo_handle_t *
131 .. c:function:: xo_style_t xo_get_style(xo_handle_t *xop)
[all …]
/freebsd/contrib/libxo/encoder/cbor/
H A Denc_cbor.c167 cbor_append (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, in cbor_append()
187 cbor_create (xo_handle_t *xop) in cbor_create()
204 cbor_content (xo_handle_t *xop, cbor_private_t *cbor, xo_buffer_t *xbp, in cbor_content()
/freebsd/usr.bin/wc/
H A Dwc.c62 static xo_handle_t *stderr_handle;
179 xo_handle_t *xop; in show_cnt()
/freebsd/contrib/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()
/freebsd/sbin/savecore/
H A Dsavecore.c162 printheader(xo_handle_t *xo, const struct kerneldumpheader *h, in printheader()
311 write_header_info(xo_handle_t *xostdout, const struct kerneldumpheader *kdh, in write_header_info()
315 xo_handle_t *xoinfo; in write_header_info()
753 xo_handle_t *xostdout; in DoLiveFile()
928 xo_handle_t *xostdout; in DoFile()