src/c/examples/mycomponent/mycomponent.c
extern const iot_component_factory_t * my_component_factory (void)
{
  static iot_component_factory_t factory = { MY_COMPONENT_TYPE, my_component_config, (iot_component_free_fn_t) my_component_free, NULL , NULL};
  return &factory;
}
/* Function to return static component factory. Used by container. */
Function to return static component factory. Used by container.
Function to return static component factory . Used by container .
extern const iot_component_factory_t * my_component_factory (void)
{
  static iot_component_factory_t factory = { MY_COMPONENT_TYPE, my_component_config, (iot_component_free_fn_t) my_component_free, NULL , NULL};
  return &factory;
}
extern const iot_component_factory_t * my_component_factory ( void ) { static iot_component_factory_t factory = { MY_COMPONENT_TYPE , my_component_config , ( iot_component_free_fn_t ) my_component_free , NULL , NULL } ; return & factory ; }
Function to return static component factory.
Function to return static component factory .