3
* BlueZ - Bluetooth protocol stack for Linux
5
* Copyright (C) 2010 GSyC/LibreSoft, Universidad Rey Juan Carlos.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
32
#include "hdp_manager.h"
34
static DBusConnection *connection = NULL;
36
static int hdp_init(void)
38
connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
39
if (connection == NULL)
42
if (hdp_manager_init(connection) < 0) {
43
dbus_connection_unref(connection);
50
static void hdp_exit(void)
54
dbus_connection_unref(connection);
58
BLUETOOTH_PLUGIN_DEFINE(health, VERSION,
59
BLUETOOTH_PLUGIN_PRIORITY_DEFAULT, hdp_init, hdp_exit)