Пример #1
0
static int hdp_init(void)
{
	connection = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
	if (connection == NULL)
		return -EIO;

	if (hdp_manager_init(connection) < 0) {
		dbus_connection_unref(connection);
		return -EIO;
	}

	return 0;
}
Пример #2
0
static int hdp_init(void)
{
	return hdp_manager_init();
}