core/service: Add btd_service_get_auto_connect
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 7 Feb 2014 14:28:08 +0000 (16:28 +0200)
committerMikko Ylinen <mikko.ylinen@intel.com>
Tue, 23 Sep 2014 18:29:21 +0000 (21:29 +0300)
src/service.c
src/service.h

index 826f5dc..c6c7a88 100644 (file)
@@ -316,6 +316,11 @@ void btd_service_set_auto_connect(struct btd_service *service, bool value)
        service->auto_connect = value;
 }
 
+bool btd_service_get_auto_connect(const struct btd_service *service)
+{
+       return service->auto_connect;
+}
+
 unsigned int btd_service_add_state_cb(btd_service_state_cb cb, void *user_data)
 {
        struct service_state_callback *state_cb;
index 209202a..105240b 100644 (file)
@@ -60,6 +60,7 @@ int btd_service_get_error(const struct btd_service *service);
 uint16_t btd_service_get_version(const struct btd_service *service);
 
 void btd_service_set_auto_connect(struct btd_service *service, bool value);
+bool btd_service_get_auto_connect(const struct btd_service *service);
 
 unsigned int btd_service_add_state_cb(btd_service_state_cb cb,
                                                        void *user_data);