MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_encoder_create

Function xo_encoder_create

tools/libxo/libxo/xo_encoder.c:360–374  ·  view source on GitHub ↗

* A couple of function varieties here, to allow for multiple * use cases. This variant is for when the main program knows * its own encoder needs. */

Source from the content-addressed store, hash-verified

358 * its own encoder needs.
359 */
360xo_handle_t *
361xo_encoder_create (const char *name, xo_xof_flags_t flags)
362{
363 xo_handle_t *xop;
364
365 xop = xo_create(XO_STYLE_ENCODER, flags);
366 if (xop) {
367 if (xo_encoder_init(xop, name)) {
368 xo_destroy(xop);
369 xop = NULL;
370 }
371 }
372
373 return xop;
374}
375
376int
377xo_encoder_handle (xo_handle_t *xop, xo_encoder_op_t op,

Callers

nothing calls this directly

Calls 3

xo_createFunction · 0.85
xo_encoder_initFunction · 0.85
xo_destroyFunction · 0.85

Tested by

no test coverage detected