X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-api%2Finclude%2Fbt-common.h;h=b4873d94f876a14d325c1de1ba0e073b234810cd;hb=1fa07edcd0e77a445700975773db3300f556caf5;hp=2537f013afeed42d065c13202c87a0e53a0cb8fc;hpb=07aebdf6ae78fc1e0ed441b867d1fffee4abf705;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-api/include/bt-common.h b/bt-api/include/bt-common.h index 2537f01..b4873d9 100644 --- a/bt-api/include/bt-common.h +++ b/bt-api/include/bt-common.h @@ -216,6 +216,7 @@ extern "C" { #define BT_ERROR_BUSY "InProgress" #define BT_ERROR_INVALID_PARAM "InvalidArguments" #define BT_ERROR_ALREADY_EXIST "AlreadyExists" +#define BT_ERROR_DOES_NOT_EXIST "DoesNotExist" #define BT_ERROR_ALREADY_CONNECTED "Already Connected" #define BT_ERROR_NO_MEMORY "No memory" #define BT_ERROR_NO_DATA "No data" @@ -226,7 +227,6 @@ extern "C" { #define BT_ERROR_INVALID_FILE_DESCRIPTOR "Invalid File Descriptor" #define BT_ERROR_ACCESS_DENIED "Rejected send message" -#define BT_MAX_USER_INFO 5 #define RFKILL_EVENT_SIZE 8 #define RFKILL_NODE "/dev/rfkill" @@ -256,6 +256,14 @@ typedef enum { BT_AUDIO, BT_AVRCP, BT_HF, +#ifndef GATT_DIRECT + BT_GATT_SERVER, +#endif + +#ifdef TIZEN_GATT_CLIENT + BT_GATT_CLIENT, +#endif + BT_MAX_USER_INFO } bt_user_info_type_t; typedef struct { @@ -293,6 +301,16 @@ void _bt_opp_client_event_cb(int event, int result, void *param, void _bt_map_client_event_cb(int event, int result, void *param, void *callback, void *user_data); +#ifndef GATT_DIRECT +void _bt_gatt_server_event_cb(int event, int result, void *param, + void *callback, void *user_data); +#endif + +#ifdef TIZEN_GATT_CLIENT +void _bt_gatt_client_event_cb(int event, int result, void *param, + void *callback, void *user_data); +#endif + void _bt_divide_device_class(bluetooth_device_class_t *device_class, unsigned int cod); @@ -312,6 +330,8 @@ int _bt_copy_utf8_string(char *dest, const char *src, unsigned int length); gboolean _bt_utf8_validate(char *name); +void _bt_convert_uuid_type_to_string(char *str, const unsigned char *uuid); + typedef struct { char *obj_path; char *uuid; @@ -325,6 +345,7 @@ typedef struct { int _bt_get_adapter_path(GDBusConnection *conn, char *path); char *_bt_get_device_object_path(char *address); +void _bt_print_api_caller_name(void); int _bt_connect_profile(char *address, char *uuid, void *cb, gpointer func_data); int _bt_disconnect_profile(char *address, char *uuid, void *cb, @@ -344,8 +365,6 @@ int _bt_register_profile_platform(bt_register_profile_info_t *info, gboolean use int _bt_register_profile_ex(bt_register_profile_info_t *info, gboolean use_default_rfcomm, const char *name, const char *path); void _bt_unregister_profile(char *path); -GDBusNodeInfo * _bt_get_gdbus_node(const gchar *xml_data); -GDBusNodeInfo * _bt_get_gdbus_node_ex(const gchar *xml_data, const char *bus_name); int __rfcomm_assign_id(void); void __rfcomm_delete_id(int id); void _bt_unregister_gdbus(int object_id); @@ -355,23 +374,13 @@ int _bt_register_new_conn(const char *path, bt_new_connection_cb cb); int _bt_register_new_conn_ex(const char *path, const char *bus_name, bt_new_connection_cb cb); void _bt_swap_addr(unsigned char *dst, const unsigned char *src); -GDBusConnection *_bt_init_system_gdbus_conn(void); - -GDBusConnection *g_bus_get_private_conn(void); - -//GDBusConnection *_bt_get_system_gconn(void); - -//GDBusConnection *_bt_get_system_conn(void); - int _bt_register_osp_server_in_agent(int type, char *uuid, char *path, int fd); int _bt_unregister_osp_server_in_agent(int type, char *uuid); - int _bt_check_privilege(int service_type, int service_function); -GDBusConnection *_bt_gdbus_init_system_gconn(void); - -GDBusConnection *_bt_gdbus_get_system_gconn(void); +GDBusConnection *_bt_get_system_shared_conn(void); +GDBusConnection *_bt_get_system_private_conn(void); GVariant *_bt_get_managed_objects(void); @@ -404,6 +413,9 @@ void _bt_hid_free_hid_info(void); int _bt_get_error_value_from_message(const char *error_message); +void _bt_hdp_app_remove_obj_info(unsigned int channe_id); +int _bt_hdp_app_acquire_fd(bt_hdp_connected_t *conn_info); + #ifdef __cplusplus } #endif /* __cplusplus */