summaryrefslogtreecommitdiff
path: root/src/examples/ecore/Makefile.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-09-15 21:43:19 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-08 22:40:34 -0200
commit98fe627ca41f648e0dbf4e0072efa05057f273ca (patch)
treef996295c5bcdff77e30707a9379f97e031f0d13f /src/examples/ecore/Makefile.am
parent5e53ecb9e659759a351be108dbe1399f5d253d6b (diff)
efl_net_session and efl_net_control for ConnMan
These are objects to allow control of networking devices (efl_net_control) as well as an application to request for connectivity (efl_net_session). They are loosely based on ConnMan.org, which we already use in Enlightenment Window Manager via DBus access with Eldbus. However they do not map 1:1 as the goal was to expose a viable subset of controls but in a simple and general way, thus nome strings were converted to enums, some arrays of strings were converted to bitwise flags, some names were made more general, such as "service" was turned into "access point" so it doesn't generate confusion with other "network services" (ie: http server), or "favorite" that was renamed to "remembered". Some behavior are slightly different (yet able to be implemented on top), such as "Service.MoveBefore" and "MoveAfter" were converted to a numeric "priority", calculated from service's list index, changing the priority will reoder the list and thus generate the MoveBefore and MoveAfter DBus commands. ConnMan was chosen not only because we already use it, but because its DBus API is sane and simple, with the server doing almost all that we need. This is visible in the efl_net_session, which is completely done in the server and do not require any extra work on our side -- aside from talking DBus and converting to Eo, which is a major work :-D NOTE: ConnMan doesn't use FreeDesktop.Org DBus interfaces such as Properties and ObjectManager, thus we cannot use eldbus_model_object. There are two examples added: - efl_net_session_example: monitors the connection available for an application and try to connect. You need a connman compiled with session_policy_local and a configuration file explained in https://github.com/aldebaran/connman/blob/master/doc/session-policy-format.txt to get a connection if nothing is connected. Otherwise it will just monitor the connectivity state. - efl_net_control_example: monitors, plays the agent and configure the network details. It can enable/disable technologies, connect to access points (services) and configure them. It's quite extensive as allows testing all of ConnMan's DBus API except P2P (Peers).
Diffstat (limited to 'src/examples/ecore/Makefile.am')
-rw-r--r--src/examples/ecore/Makefile.am14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index dde9e48510..2fa4350638 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -88,7 +88,9 @@ efl_net_dialer_websocket_example \
88efl_net_dialer_websocket_autobahntestee \ 88efl_net_dialer_websocket_autobahntestee \
89efl_net_dialer_udp_example \ 89efl_net_dialer_udp_example \
90efl_net_socket_ssl_dialer_example \ 90efl_net_socket_ssl_dialer_example \
91efl_net_socket_ssl_server_example 91efl_net_socket_ssl_server_example \
92efl_net_session_example \
93efl_net_control_example
92 94
93 95
94ECORE_COMMON_LDADD = \ 96ECORE_COMMON_LDADD = \
@@ -334,6 +336,12 @@ efl_net_socket_ssl_dialer_example_LDADD = $(ECORE_CON_COMMON_LDADD)
334efl_net_socket_ssl_server_example_SOURCES = efl_net_socket_ssl_server_example.c 336efl_net_socket_ssl_server_example_SOURCES = efl_net_socket_ssl_server_example.c
335efl_net_socket_ssl_server_example_LDADD = $(ECORE_CON_COMMON_LDADD) 337efl_net_socket_ssl_server_example_LDADD = $(ECORE_CON_COMMON_LDADD)
336 338
339efl_net_session_example_SOURCES = efl_net_session_example.c
340efl_net_session_example_LDADD = $(ECORE_CON_COMMON_LDADD)
341
342efl_net_control_example_SOURCES = efl_net_control_example.c
343efl_net_control_example_LDADD = $(ECORE_CON_COMMON_LDADD)
344
337SRCS = \ 345SRCS = \
338ecore_animator_example.c \ 346ecore_animator_example.c \
339ecore_buffer_example.c \ 347ecore_buffer_example.c \
@@ -391,7 +399,9 @@ efl_net_dialer_websocket_example.c \
391efl_net_dialer_websocket_autobahntestee.c \ 399efl_net_dialer_websocket_autobahntestee.c \
392efl_net_dialer_udp_example.c \ 400efl_net_dialer_udp_example.c \
393efl_net_socket_ssl_dialer_example.c \ 401efl_net_socket_ssl_dialer_example.c \
394efl_net_socket_ssl_server_example.c 402efl_net_socket_ssl_server_example.c \
403efl_net_session_example.c \
404efl_net_control_example.c
395 405
396%.pem: 406%.pem:
397 echo -e "US\nOR\nPortland\nXPTO Ltd\n\nlocalhost\nroot@localhost\n" | openssl req -new -x509 -days 30 -nodes -out $@ -keyout $@ 407 echo -e "US\nOR\nPortland\nXPTO Ltd\n\nlocalhost\nroot@localhost\n" | openssl req -new -x509 -days 30 -nodes -out $@ -keyout $@