The Component Context API contains functions for obtaining information about running components.
Required Header
#include <component_manager.h>
Overview
Typedef Documentation
Component context handle.
- Since :
- 5.5
Enumeration Type Documentation
Enumeration for the component state.
- Since :
- 5.5
- Enumerator:
COMPONENT_STATE_INITIALIZED |
The initialized state. The state that the component is constructed but the callback for creating a component is not called yet.
|
COMPONENT_STATE_CREATED |
The created state. The state that the creating callback is called.
|
COMPONENT_STATE_STARTED |
The started state. The state that the starting callback is called.
|
COMPONENT_STATE_RESUMED |
The resumed state. The state that the resuming callback is called.
|
COMPONENT_STATE_PAUSED |
The paused state. The state that the pausing callback is called.
|
COMPONENT_STATE_DESTROYED |
The destroyed state. The state that right before the destroying callback is called.
|
Function Documentation
Clones the component context handle.
- Since :
- 5.5
- Parameters:
-
[out] | clone | A newly created component context handle, if cloning is successful |
[in] | handle | The component context handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Destroys the component context handle and releases all its resources.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the application ID of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | app_id | The application ID |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the ID of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | component_id | The component ID |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the state of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | state | The component state |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Gets the instance ID of the component.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | instance_id | The instance ID |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Checks whether the component is running as sub component of the group.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | is_subcomponent | true if the sub component of the group,
otherwise false if the main component of the group |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
Checks whether the component is terminated or not.
- Since :
- 5.5
- Parameters:
-
[in] | handle | The component context handle |
[out] | terminated | true if the component is terminated,
otherwise false if the component is running |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-