This patch set introduces a new CLI for Connman to use with the current tree. The new files in the client directory compile under a single executable called "connmanctl", which provides a larger range of functions. It consists of patches that add the new client and documentation, remove the old client, and update the Makefile.am and other associated files.
The first 6 patches add the files containing the functions used in the CLI, and the main CLI file and the files for interactive mode. The seventh patch includes a new man page for connmanctl, and the rest are smaller changes to help compile the new source and update author information. Description ----------- With the current functionality, the connmanctl CLI can be used to handle most simple network connections. It is able to connect and configure all options regarding wired or unsecured services. Any type of technology can be enabled or disabled, as long as it actually exists on the system. The current state of the system and current technology can be retrieved, as well as a list of services. The list will show favorite services and currently connected ones. Connecting and disconnecting to a service works as long as the service is not secured. The connmanctl client can also be used to monitor changes to the services, technologies, or the state of the system. Users can run an instance of connmanctl as a monitor, and use another to configure and connect to services, allowing them to view the changes in real-time. Updates ------- Monitor: Starting monitor in normal mode from the CLI starts the monitor loop, which listens for and displays any connman signals until ctrl-d is pressed. Starting monitor in interactive mode will throw the monitor in the background, so that it does not block user input. Any updates and signals from connman will be caught and displayed in realtime in the interactive prompt. More error handling was added to all of the code, which should be more compatible with any test scripts. All of the functions can be used in the normal CLI and the the interactive mode. Future Plans ------------ The next task we plan to focus on is providing functionality to connect to secured networks. We must create and register an agent, as well as the required functions that can reply to connman's request. Smaller updates include configuring some options such as enabling tethering and clearing properties. Ceara Chewning (6): Add technology files. Add connman monitor files. Add manpage for connmanctl client. Update configure.ac checks. Add commands file. Update AUTHORS file. Tudor Marcu (7): Add service files for new client. Add data_manager files. Add interactive mode files. Update include/dbus.h to open more types. Update Makefile.am and add new client main file. Update gitignore with new CLI name. Update TODO CLI authors. .gitignore | 2 +- AUTHORS | 2 + Makefile.am | 17 +- TODO | 4 +- client/commands.c | 509 +++++++++++++++++++++++++++++++++++++++++++++++++ client/data_manager.c | 250 ++++++++++++++++++++++++ client/data_manager.h | 52 +++++ client/interactive.c | 143 ++++++++++++++ client/interactive.h | 41 ++++ client/main.c | 274 ++++++++------------------ client/monitor.c | 249 ++++++++++++++++++++++++ client/monitor.h | 47 +++++ client/services.c | 486 ++++++++++++++++++++++++++++++++++++++++++++++ client/services.h | 58 ++++++ client/technology.c | 184 ++++++++++++++++++ client/technology.h | 45 +++++ configure.ac | 5 + doc/connmanctl.1 | 197 +++++++++++++++++++ include/dbus.h | 19 ++ 19 files changed, 2385 insertions(+), 199 deletions(-) create mode 100644 client/commands.c create mode 100644 client/data_manager.c create mode 100644 client/data_manager.h create mode 100644 client/interactive.c create mode 100644 client/interactive.h create mode 100644 client/monitor.c create mode 100644 client/monitor.h create mode 100644 client/services.c create mode 100644 client/services.h create mode 100644 client/technology.c create mode 100644 client/technology.h create mode 100644 doc/connmanctl.1 -- 1.7.9.5 _______________________________________________ connman mailing list [email protected] http://lists.connman.net/listinfo/connman
