Exemple #1
0
static int ril_init(void)
{
	int retval = ofono_modem_driver_register(&ril_driver);
	if (retval)
		DBG("ofono_modem_driver_register returned: %d", retval);

	return retval;
}
Exemple #2
0
/*
 * This plugin is a device plugin for infineon modems that use RIL interface.
 * The plugin 'rildev' is used to determine which RIL plugin should be loaded
 * based upon an environment variable.
 */
static int inf_init(void)
{
	int retval = 0;

	if ((retval = ofono_modem_driver_register(&infineon_driver)))
		DBG("ofono_modem_driver_register returned: %d", retval);

	return retval;
}
Exemple #3
0
static int phonesim_init(void)
{
	int err;
	err = ofono_modem_driver_register(&phonesim_driver);
	if (err < 0)
		return err;

	ofono_modem_driver_register(&localhfp_driver);

	ofono_gprs_context_driver_register(&context_driver);
	ofono_ctm_driver_register(&ctm_driver);

	parse_config();

	err = setup_control_channel();
	if (err < 0)
		return err;

	return 0;
}
Exemple #4
0
static int u8500_init(void)
{
	int err;

	err = ofono_modem_driver_register(&driver);

	if (err < 0)
		return err;

	ofono_devinfo_driver_register(&devinfo_driver);

	return 0;
}
Exemple #5
0
static int hfp_init(void)
{
	DBusConnection *conn = ofono_dbus_get_connection();
	int err;

	if (DBUS_TYPE_UNIX_FD < 0)
		return -EBADF;

	/* Registers External Profile handler */
	if (!g_dbus_register_interface(conn, HFP_EXT_PROFILE_PATH,
					BLUEZ_PROFILE_INTERFACE,
					profile_methods, NULL,
					NULL, NULL, NULL)) {
		ofono_error("Register Profile interface failed: %s",
						HFP_EXT_PROFILE_PATH);
		return -EIO;
	}

	err = ofono_handsfree_card_driver_register(&hfp16_hf_driver);
	if (err < 0) {
		g_dbus_unregister_interface(conn, HFP_EXT_PROFILE_PATH,
						BLUEZ_PROFILE_INTERFACE);
		return err;
	}

	err = ofono_modem_driver_register(&hfp_driver);
	if (err < 0) {
		g_dbus_unregister_interface(conn, HFP_EXT_PROFILE_PATH,
						BLUEZ_PROFILE_INTERFACE);
		return err;
	}

	bluez = g_dbus_client_new(conn, BLUEZ_SERVICE, BLUEZ_MANAGER_PATH);
	if (bluez == NULL) {
		g_dbus_unregister_interface(conn, HFP_EXT_PROFILE_PATH,
						BLUEZ_PROFILE_INTERFACE);
		ofono_modem_driver_unregister(&hfp_driver);
		return -ENOMEM;
	}

	g_dbus_client_set_connect_watch(bluez, connect_handler, NULL);
	g_dbus_client_set_proxy_handlers(bluez, proxy_added, NULL,
						property_changed, NULL);

	ofono_handsfree_audio_ref();

	return 0;
}
Exemple #6
0
static int hfp_init(void)
{
	int err;

	if (DBUS_TYPE_UNIX_FD < 0)
		return -EBADF;

	connection = ofono_dbus_get_connection();

	err = ofono_modem_driver_register(&hfp_driver);
	if (err < 0)
		return err;

	err = bluetooth_register_uuid(HFP_AG_UUID, &hfp_hf);
	if (err < 0) {
		ofono_modem_driver_unregister(&hfp_driver);
		return err;
	}

	modem_hash = g_hash_table_new_full(g_str_hash, g_str_equal,
						g_free, NULL);

	return 0;
}
Exemple #7
0
static int atgen_init(void)
{
    return ofono_modem_driver_register(&atgen_driver);
}
Exemple #8
0
static int ifx_init(void)
{
	return ofono_modem_driver_register(&ifx_driver);
}
Exemple #9
0
static int tc65_init(void)
{
	return ofono_modem_driver_register(&tc65_driver);
}
Exemple #10
0
static int ril_init(void)
{
	return ofono_modem_driver_register(&ril_driver);
}
Exemple #11
0
static int telit_init(void)
{
	return ofono_modem_driver_register(&telit_driver);
}
Exemple #12
0
static int he910_init(void)
{
	DBG("");

	return ofono_modem_driver_register(&he910_driver);
}
Exemple #13
0
static int sierra_init(void)
{
	return ofono_modem_driver_register(&sierra_driver);
}
Exemple #14
0
static int cinterion_init(void)
{
	return ofono_modem_driver_register(&cinterion_driver);
}