|
Tizen HAL API
1.0
|
The External Connection provides functions for receiving External_connection events or information.
#include <hal-device-external_connection.h>
The External_connection provides the way to get properties related to External_connection. It also supports the API for an application to receive the external_connection event by callback function from the system.
The External_connection functions provide external_connection information including:
For more information on the External_connection features and the macros, see HAL External_connection programming guides and tutorials.
Typedefs | |
| typedef struct _hal_backend_device_external_connection_funcs | hal_backend_device_external_connection_funcs |
| Structure for External_connection functions. | |
| typedef void(* | hal_device_external_connection_updated_cb )(hal_device_external_connection_info_s *info, void *data) |
| Called when a External_connection information is handled. | |
| struct _hal_backend_device_external_connection_funcs |
Structure for External_connection functions.
Data Fields | |
| int(* | register_changed_event )(hal_device_external_connection_updated_cb updated_cb, void *user_data) |
| void(* | unregister_changed_event )(hal_device_external_connection_updated_cb updated_cb) |
| int(* | get_current_state )(hal_device_external_connection_updated_cb updated_cb, void *user_data) |
| int(* _hal_backend_device_external_connection_funcs::get_current_state)(hal_device_external_connection_updated_cb updated_cb, void *user_data) |
Get current states
| int(* _hal_backend_device_external_connection_funcs::register_changed_event)(hal_device_external_connection_updated_cb updated_cb, void *user_data) |
Register external_connection event
| void(* _hal_backend_device_external_connection_funcs::unregister_changed_event)(hal_device_external_connection_updated_cb updated_cb) |
Unregister external_connection event
| struct hal_device_external_connection_info_s |
Structure for External_connection information data.
Data Fields | |
| hal_device_external_connection_device_type_e | device_type |
| char * | state |
This indicates switch device type
This indicates current state of the switch device, e.g) "on" of "off"
| typedef struct _hal_backend_device_external_connection_funcs hal_backend_device_external_connection_funcs |
Structure for External_connection functions.
| typedef void(* hal_device_external_connection_updated_cb)(hal_device_external_connection_info_s *info, void *data) |
Called when a External_connection information is handled.
| [out] | info | External connection information |
| [out] | user_data | User data passed |
Enumeration for External_connection device type.