c_tlm_comp.c File Reference
Include dependency graph for c_tlm_comp.c:

Functions | |
tlm_component * | tlm_component_add (const char *name) |
tlm_component * | tlm_component_get_by_name (const char *name) |
void | tlm_component_for_each (tlm_comp_callback callback, void *arg1, void *arg2) |
Function Documentation
tlm_component* tlm_component_add | ( | const char * | name | ) |
Adds a telemetry component by name.
- Parameters
-
name The persistent data pointer to the name of the telemetry component.
- Returns
- tlm_component pointer if this component added successfully, but NULL if another component already exists with this name.
void tlm_component_for_each | ( | tlm_comp_callback | callback, |
void * | arg1, | ||
void * | arg2 | ||
) |
Calls your callback function for each telemetry component added to the telemetry components list by tlm_component_add().
- Parameters
-
arg1 arg2 The arguments is passed to your callback like this: callback(tlm_component*, arg1, arg2)
tlm_component* tlm_component_get_by_name | ( | const char * | name | ) |
Get an existing telemetry component by name
- Returns
- NULL pointer if the component by name was not found