From: Daniel Wagner <daniel.wag...@bmw-carit.de> Hi,
Here is the current state of work on the session policy plugin. The series is not perfect, meaning some stuff could be rearanged or merged/splitted, but I am not sure if that is really needed. I tried to keep the patches small so, each step should make sense. Maybe it helps to apply all patches and look at the result. cheers, daniel Daniel Wagner (33): session: Check D-Bus argumets for Changed method session: Move plugin code up session: Add plugin priority session_policy: Set plugin priority to low session: Remove global configuration plugin session: Maintain plugin list sorted session: Assign config plugin to session session: Update session when plugin is add/removed session: Remove AvoidHandover documentation session: Remove AvoidHandover implementation unit: Update session unit test to API changes session: No need to free NULL list session: Rename connman_session_config to connman_session_policy session: Move struct connman_session to session.h session: Use session pointer instead of string id session: Move bearer_info to session.h session: Move configuration bits to a public struct session: Allow plugin access to connman_session_allowed_bearers_any session: Add callbacks for config creation/distruction session_policy: Implement config creation/destruction session: Get config from policy plugin session: Remove unused functions session: Add bearer list cleanup function session_policy: Use bearer free function session: Support no match AllowedBearers session: Update ConnnectionType documentation session: Enforce correct ConnectionType settings session: Apply policy on AllowedBearers session: Update AllowedBearers documentation unit: Do not append empty AllowedBearers dictionary unit: Support ConnectionType unknown session: Apply policy on ConnnectionType session: Update sessions on config updates doc/session-api.txt | 46 ++-- include/session.h | 57 +++- plugins/session_policy.c | 77 ++++-- src/connman.h | 3 +- src/session.c | 661 +++++++++++++++++++++++++++-------------------- unit/session-api.c | 118 +-------- unit/test-connman.h | 29 +-- 7 files changed, 509 insertions(+), 482 deletions(-) -- 1.7.12.315.g682ce8b _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman