Tizen HAL API  1.0
External Connection

The External Connection provides functions for receiving External_connection events or information.

Required Header

#include <hal-device-external_connection.h>

Overview

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.

Data Structure Documentation

struct _hal_backend_device_external_connection_funcs

Structure for External_connection functions.

Since:
HAL_MODULE_DEVICE_EXTERNAL_CONNECTION 1.0

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)

Field Documentation

Register external_connection event

struct hal_device_external_connection_info_s

Structure for External_connection information data.

Since:
HAL_MODULE_DEVICE_EXTERNAL_CONNECTION 1.0

Data Fields

hal_device_external_connection_device_type_e device_type
char * state

Field Documentation

This indicates current state of the switch device, e.g) "on" of "off"


Typedef Documentation

Structure for External_connection functions.

Since:
HAL_MODULE_DEVICE_EXTERNAL_CONNECTION 1.0

Called when a External_connection information is handled.

Since:
HAL_MODULE_DEVICE_EXTERNAL_CONNECTION 1.0
Parameters:
[out]infoExternal connection information
[out]user_dataUser data passed

Enumeration Type Documentation

Enumeration for External_connection device type.

Since:
HAL_MODULE_DEVICE_EXTERNAL_CONNECTION 1.0
Enumerator:
HAL_DEVICE_EXTERNAL_CONNECTION_USB 

USB device

HAL_DEVICE_EXTERNAL_CONNECTION_USB_HOST 

USB host device

HAL_DEVICE_EXTERNAL_CONNECTION_TA 

TA device

HAL_DEVICE_EXTERNAL_CONNECTION_HDMI 

HDMI device

HAL_DEVICE_EXTERNAL_CONNECTION_DOCK 

Dock device

HAL_DEVICE_EXTERNAL_CONNECTION_MIC 

MIC device

HAL_DEVICE_EXTERNAL_CONNECTION_HEADPHONE 

Headphone device