Fix osp_server unregister issue
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / include / bt-service-common.h
index e5e8e3d..db3596f 100644 (file)
@@ -50,6 +50,8 @@ extern "C" {
 #define LOG_COLOR_BLUE          "\033[36m"
 #define LOG_COLOR_PURPLE   "\033[35m"
 
+#define BT_PERMANENT_LOG(fmt, args...) _bt_permanent_log(fmt, ##args)
+
 #define BT_DBG(fmt, args...) \
        SLOGD(fmt, ##args)
 #define BT_INFO(fmt, args...) \
@@ -180,6 +182,7 @@ extern "C" {
 #define BT_OBEX_CLIENT_INTERFACE "org.bluez.obex.Client1"
 #ifdef TIZEN_FEATURE_BT_OBEX
 #define BT_OBEX_MESSAGE_INTERFACE "org.bluez.obex.MessageAccess1"
+#define BT_EVENT_FREEDESKTOP "org.freedesktop.DBus"
 #endif
 
 #define BT_OBEX_TRANSFER_INTERFACE "org.bluez.obex.Transfer1"
@@ -361,6 +364,8 @@ char *_bt_get_device_object_path(char *address);
 
 char *_bt_get_profile_uuid128(bt_profile_type_t profile_type);
 
+const char *_bt_convert_uuid_to_string(const char *uuid);
+
 const char *_bt_convert_error_to_string(int error);
 
 const char * _bt_convert_disc_reason_to_string(int reason);
@@ -401,10 +406,14 @@ int _bt_copy_utf8_string(char *dest, const char *src, unsigned int length);
 
 gboolean _bt_utf8_validate(char *name);
 
-int _bt_register_osp_server_in_agent(int type, char *uuid, char *path, int fd);
+int _bt_register_osp_server_in_agent(const char *sender, int type, char *uuid, char *path, int fd);
 
 int _bt_unregister_osp_server_in_agent(int type, char *uuid);
 
+int _bt_unregister_osp_server_in_agent_by_sender(const char *sender);
+
+void _bt_deinit_osp_server();
+
 int _bt_set_socket_non_blocking(int socket_fd);
 
 int _bt_set_non_blocking_tty(int sk);
@@ -425,8 +434,14 @@ void _bt_service_print_dev_info(bluetooth_device_info_t *dev_info);
 
 void _bt_free_remote_dev(bt_remote_dev_info_t * dev_info);
 
+void _bt_free_paired_dev(void * paired_info);
+
 void _bt_set_device_values(gboolean connected, int state);
 
+#ifdef TIZEN_FEATURE_READOUT_NOTIFICATION
+void _bt_set_readout_notification_of_tts(void);
+#endif
+
 void _bt_string_to_uuid(char *str, service_uuid_t *p_uuid);
 
 int _bt_get_ad_data_by_type(char *in_data, int in_len,
@@ -442,6 +457,10 @@ GDBusConnection *_bt_gdbus_get_system_gconn(void);
 
 void _bt_copy_remote_dev_info(bt_remote_dev_info_t *dest, bt_remote_dev_info_t *src);
 
+invocation_info_t* _bt_get_request_info_data_from_function_name(int service_function);
+
+void _bt_permanent_log(const char *fmt, ...);
+
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */