The plug-ins are now initialized automatically
This commit is contained in:
parent
dc270dabeb
commit
23bbe5c4ee
|
@ -41,9 +41,7 @@ static int _engineering(void)
|
||||||
{
|
{
|
||||||
Phone phone;
|
Phone phone;
|
||||||
|
|
||||||
config_load(phone.config, "/home/khorben/.phone"); /* FIXME hardcoded */
|
if(_phone_init(&phone, &plugin) != 0)
|
||||||
_phone_init(&phone, &plugin);
|
|
||||||
if((phone.plugin = plugin.init(&helper)) == NULL)
|
|
||||||
return -1;
|
return -1;
|
||||||
gtk_main();
|
gtk_main();
|
||||||
_engineering_destroy(phone.plugin);
|
_engineering_destroy(phone.plugin);
|
||||||
|
|
|
@ -43,11 +43,7 @@ static int _gprs(void)
|
||||||
{
|
{
|
||||||
Phone phone;
|
Phone phone;
|
||||||
|
|
||||||
_phone_init(&phone, &plugin);
|
if(_phone_init(&phone, &plugin) != 0)
|
||||||
/* FIXME no longer hardcode the interface name */
|
|
||||||
config_set(phone.config, "gprs", "interface", "ppp0");
|
|
||||||
config_set(phone.config, "gprs", "systray", "1");
|
|
||||||
if((phone.plugin = plugin.init(&phone.helper)) == NULL)
|
|
||||||
return -1;
|
return -1;
|
||||||
g_idle_add(_gprs_on_idle, &phone);
|
g_idle_add(_gprs_on_idle, &phone);
|
||||||
gtk_main();
|
gtk_main();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user