profiles: Remove GATT enable option

This commit is contained in:
Marcel Holtmann 2012-11-09 20:36:46 +01:00
parent c4858bbf24
commit 91b4b3633d
9 changed files with 0 additions and 60 deletions

View File

@ -37,19 +37,11 @@
static int alert_init(void) static int alert_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
return alert_manager_init(); return alert_manager_init();
} }
static void alert_exit(void) static void alert_exit(void)
{ {
if (!main_opts.gatt_enabled)
return;
alert_manager_exit(); alert_manager_exit();
} }

View File

@ -35,11 +35,6 @@
static int deviceinfo_init(void) static int deviceinfo_init(void)
{ {
if (!main_opts.gatt_enabled) {
error("DIS cannot start: GATT is disabled");
return -ENOTSUP;
}
return deviceinfo_manager_init(); return deviceinfo_manager_init();
} }

View File

@ -35,11 +35,6 @@
static int gatt_init(void) static int gatt_init(void)
{ {
if (!main_opts.gatt_enabled) {
error("GATT can not start: EnableGatt is false");
return -ENOTSUP;
}
return gatt_manager_init(); return gatt_manager_init();
} }

View File

@ -35,11 +35,6 @@
static int heartrate_init(void) static int heartrate_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
return heartrate_manager_init(); return heartrate_manager_init();
} }

View File

@ -149,19 +149,11 @@ static void hog_manager_exit(void)
static int hog_init(void) static int hog_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
return hog_manager_init(); return hog_manager_init();
} }
static void hog_exit(void) static void hog_exit(void)
{ {
if (!main_opts.gatt_enabled)
return;
hog_manager_exit(); hog_manager_exit();
} }

View File

@ -59,11 +59,6 @@ static GKeyFile *open_config_file(const char *file)
static int proximity_init(void) static int proximity_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
config = open_config_file(CONFIGDIR "/proximity.conf"); config = open_config_file(CONFIGDIR "/proximity.conf");
if (proximity_manager_init(config) < 0) if (proximity_manager_init(config) < 0)
@ -74,9 +69,6 @@ static int proximity_init(void)
static void proximity_exit(void) static void proximity_exit(void)
{ {
if (!main_opts.gatt_enabled)
return;
if (config) if (config)
g_key_file_free(config); g_key_file_free(config);

View File

@ -37,11 +37,6 @@
static int scan_param_init(void) static int scan_param_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("Scan Parameters: GATT is disabled");
return -ENOTSUP;
}
return scan_param_manager_init(); return scan_param_manager_init();
} }

View File

@ -35,19 +35,11 @@
static int thermometer_init(void) static int thermometer_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
return thermometer_manager_init(); return thermometer_manager_init();
} }
static void thermometer_exit(void) static void thermometer_exit(void)
{ {
if (!main_opts.gatt_enabled)
return;
thermometer_manager_exit(); thermometer_manager_exit();
} }

View File

@ -37,19 +37,11 @@
static int time_init(void) static int time_init(void)
{ {
if (!main_opts.gatt_enabled) {
DBG("GATT is disabled");
return -ENOTSUP;
}
return time_manager_init(); return time_manager_init();
} }
static void time_exit(void) static void time_exit(void)
{ {
if (!main_opts.gatt_enabled)
return;
time_manager_exit(); time_manager_exit();
} }