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

Function xo_encoder_register

tools/libxo/libxo/xo_encoder.c:261–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261void
262xo_encoder_register (const char *name, xo_encoder_func_t func)
263{
264 xo_encoder_setup();
265
266 xo_encoder_node_t *xep = xo_encoder_find(name);
267
268 if (xep) /* "We alla-ready got one" */
269 return;
270
271 xep = xo_encoder_list_add(name);
272 if (xep)
273 xep->xe_handler = func;
274}
275
276void
277xo_encoder_unregister (const char *name)

Callers

nothing calls this directly

Calls 3

xo_encoder_setupFunction · 0.85
xo_encoder_findFunction · 0.85
xo_encoder_list_addFunction · 0.85

Tested by

no test coverage detected