コード例 #1
0
ファイル: main.c プロジェクト: 520lly/bluez
static int time_init(void)
{
	if (!main_opts.gatt_enabled) {
		DBG("GATT is disabled");
		return -ENOTSUP;
	}

	return time_server_init();
}
コード例 #2
0
static int time_init(void)
{
	if (!main_opts.attrib_server) {
		DBG("Attribute server is disabled");
		return -1;
	}

	return time_server_init();
}