From 15b1a733b0a3a99adcf619b82ee4304a43ade4dd Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 1 Sep 2009 16:57:24 -0500 Subject: Introduce vendor parameter to call-barring --- src/call-barring.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/call-barring.c b/src/call-barring.c index a88cc616..2e831f84 100644 --- a/src/call-barring.c +++ b/src/call-barring.c @@ -1098,7 +1098,9 @@ static void call_barring_remove(struct ofono_atom *atom) } struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem, - const char *driver, void *data) + int vendor, + const char *driver, + void *data) { struct ofono_call_barring *cb; GSList *l; @@ -1116,7 +1118,6 @@ struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem, cb->cur_locks = g_new0(int, lcount); cb->new_locks = g_new0(int, lcount); - cb->driver_data = data; cb->atom = __ofono_modem_add_atom(modem, OFONO_ATOM_TYPE_CALL_BARRING, call_barring_remove, cb); @@ -1126,7 +1127,7 @@ struct ofono_call_barring *ofono_call_barring_create(struct ofono_modem *modem, if (g_strcmp0(drv->name, driver)) continue; - if (drv->probe(cb) < 0) + if (drv->probe(cb, vendor, data) < 0) continue; cb->driver = drv; -- cgit v1.2.3