c_tlm_comp.c File Reference
#include <stdlib.h>
#include <string.h>
#include "c_tlm_comp.h"
Include dependency graph for c_tlm_comp.c:

Functions

tlm_componenttlm_component_add (const char *name)
 
tlm_componenttlm_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
nameThe 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
arg1arg2 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