Hi,

this patchset implements multiple agent support.
This means that multiple agents can be registered
and connman directs user requests to best agent
available.

Patch 1 contains no functionality changes and is just
a preparation for patch 5.

Patch 2 checks that we do not try to pass NULL pointer
to DBus API as that will cause crash in DBus library.
This is needed by patch 5.

Patches 3 and 4 cleanup all the pending agent requests
in service and vpn provider before service and provider
hashes are cleared. This prevents free memory access that
would happen otherwise.

The multiple agent support is implemented in patch 5.
Unfortunately the patch looks quite ugly, so it might
be easier to review if one applies it first.


Cheers,
Jukka


Jukka Rissanen (5):
  agent: Change the name of the agent struct
  agent: Check that message exists before calling dbus
  service: Unregister agent driver before removing service
  vpn: Unregister agent driver before removing provider
  agent: Add multi agent support

 include/agent.h           |   9 +-
 src/agent-connman.c       |  32 +++-
 src/agent.c               | 465 +++++++++++++++++++++++++++++++---------------
 src/connman.h             |   3 +-
 src/service.c             |  20 +-
 vpn/plugins/l2tp.c        |  18 +-
 vpn/plugins/openconnect.c |  17 +-
 vpn/plugins/openvpn.c     |   3 +-
 vpn/plugins/pptp.c        |  18 +-
 vpn/plugins/vpn.c         |   6 +-
 vpn/plugins/vpn.h         |   3 +-
 vpn/plugins/vpnc.c        |   3 +-
 vpn/vpn-provider.c        |   8 +-
 vpn/vpn-provider.h        |   3 +-
 14 files changed, 407 insertions(+), 201 deletions(-)

-- 
1.7.11.7

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to