src/c/examples/mycomponent/mycomponent.c
static iot_component_t * my_component_config (iot_container_t * cont, const iot_data_t * map)
{
  iot_logger_t * logger = (iot_logger_t*) iot_container_find_component (cont, iot_data_string_map_get_string (map, "MyLogger"));
  return (iot_component_t*) my_component_alloc (logger);
}
/* Component creation and configuration function, called from factory. */
Component creation and configuration function, called from factory.
Component creation and configuration function called from factory .
static iot_component_t * my_component_config (iot_container_t * cont, const iot_data_t * map)
{
  iot_logger_t * logger = (iot_logger_t*) iot_container_find_component (cont, iot_data_string_map_get_string (map, "MyLogger"));
  return (iot_component_t*) my_component_alloc (logger);
}
static iot_component_t * my_component_config ( iot_container_t * cont , const iot_data_t * map ) { iot_logger_t * logger = ( iot_logger_t * ) iot_container_find_component ( cont , iot_data_string_map_get_string ( map , " " ) ) ; return ( iot_component_t * ) my_component_alloc ( logger ) ; }
Component creation and configuration function, called from factory.
Component creation and configuration function called from factory .