From: Guillaume Zajac Date: Fri, 13 Jul 2012 13:44:27 +0000 (+0200) Subject: gprs-context: Add new driver entry definition X-Git-Tag: 1.9~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79b6fd4b249b82d15de5f44b6861185387fd5a54;p=platform%2Fupstream%2Fofono.git gprs-context: Add new driver entry definition --- diff --git a/drivers/atmodem/gprs-context.c b/drivers/atmodem/gprs-context.c index 16893ce..58a829b 100644 --- a/drivers/atmodem/gprs-context.c +++ b/drivers/atmodem/gprs-context.c @@ -291,6 +291,16 @@ static void at_gprs_deactivate_primary(struct ofono_gprs_context *gc, g_at_ppp_shutdown(gcd->ppp); } +static void at_gprs_detach_shutdown(struct ofono_gprs_context *gc, + unsigned int cid) +{ + struct gprs_context_data *gcd = ofono_gprs_context_get_data(gc); + + DBG("cid %u", cid); + + g_at_ppp_shutdown(gcd->ppp); +} + static void cgev_notify(GAtResult *result, gpointer user_data) { struct ofono_gprs_context *gc = user_data; @@ -380,6 +390,7 @@ static struct ofono_gprs_context_driver driver = { .remove = at_gprs_context_remove, .activate_primary = at_gprs_activate_primary, .deactivate_primary = at_gprs_deactivate_primary, + .detach_shutdown = at_gprs_detach_shutdown, }; void at_gprs_context_init(void)