All of lore.kernel.org
 help / color / mirror / Atom feed
* [gprs-provision PATCHv5 0/6] Plugin API for provisioning of GPRS context setting
@ 2011-01-20 13:11 Jukka Saunamaki
  2011-01-20 13:11 ` [PATCH 1/6] gprs-provision: add driver API header Jukka Saunamaki
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Jukka Saunamaki @ 2011-01-20 13:11 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 2302 bytes --]

Hello

And again, here is a new patchset about implementing automatic provisioning of GPRS context settings.

Since last time, driver API should be cleaner now. Some whitespace issues fixed, and probably some new ones introduced :)

Example driver patch requires ofono_sim_get_mcc/mnc in SIM atom API patches, that I mailed earlier.

[copy from earlier mail]
Provisioning data for gprs contexts is returned by gprs-provisioning plugins/drivers. Different kind of provisioning modules may be created for different platforms or use cases.
It is up to the module what settings database it uses, and how many, and what type of contexts (with settings) it returns.
Several plugins may be loaded in oFono, and they will be called in priority order until first plugin returns non-empty result.

Provisioning modules are called in case there are no previously configured contexts found during gprs atom registration.
 
These patches add new gprs-provision.[hc] API for provisioning plugins to register into, and __ofono_gprs_provision_get_settings for gprs.c to call when needed.
gprs.c is modified to use provisioning if reading existing context settings fails.

A dummy example provisioning plugin is included. In case it is called when using phonesim with default.xml configuration, the plugin returns dummy settings for two contexts, one type Internet and one type MMS. 

--Jukka Saunamäki


Jukka Saunamaki (6):
      gprs-provision: add driver API header
      ofono.h: add new atom type for gprs-provision
      gprs-provision: add driver API sources
      modem: probe gprs_provision drivers
      gprs: add gprs context provisioning
      gprs-provision: add example context provisioning driver

 Makefile.am              |    7 +-
 examples/provision.c     |  221 ++++++++++++++++++++++++++++++++++++++++++++++
 include/gprs-provision.h |   74 +++++++++++++++
 src/gprs-provision.c     |  219 +++++++++++++++++++++++++++++++++++++++++++++
 src/gprs.c               |  147 ++++++++++++++++++++++++++++---
 src/modem.c              |    1 +
 src/ofono.h              |    8 ++
 7 files changed, 661 insertions(+), 16 deletions(-)
 create mode 100644 examples/provision.c
 create mode 100644 include/gprs-provision.h
 create mode 100644 src/gprs-provision.c


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-24 10:38 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-20 13:11 [gprs-provision PATCHv5 0/6] Plugin API for provisioning of GPRS context setting Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 1/6] gprs-provision: add driver API header Jukka Saunamaki
2011-01-20 21:51   ` Denis Kenzior
2011-01-21  7:39     ` Jukka Saunamaki
2011-01-21 17:44       ` Denis Kenzior
2011-01-24  7:10         ` Jukka Saunamaki
2011-01-24 10:16           ` Aki Niemi
2011-01-24 10:38         ` Aki Niemi
2011-01-20 13:11 ` [PATCH 2/6] ofono.h: add new atom type for gprs-provision Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 3/6] gprs-provision: add driver API sources Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 4/6] modem: probe gprs_provision drivers Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 5/6] gprs: add gprs context provisioning Jukka Saunamaki
2011-01-20 13:11 ` [PATCH 6/6] gprs-provision: add example context provisioning driver Jukka Saunamaki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.