summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-05-11 17:20:40 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2018-05-19 01:42:26 +0200
commit35bbedc96f158885bf36c741ec402a97a02f52f0 (patch)
treef2891f942765a3264973f7141215b9029350d665 /src/lib/ecore_con
parent6fdc3794eb933ed28d29a0c8d1b206ddab61b836 (diff)
efl: Add missing event types
Summary: All events must have a type now, otherwise bindings don't know how to handle the event_info field. Most of the missing event types were actually "void" (no event_info present). Some struct definitions had to be moved to eo instead of h files, so they are available to bindings. Some have not, and are marked with FIXME. Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb). In general, there are hundreds of changed files, but mostly to add a type which was not present before, so there's no harm done. Also, A lot of FIXMEs have been added which should be, like, fixed. For example, some events can send different types of event_info, which is very inconvenient (and error prone). Test Plan: make with c# bindings works, make check and make examples work too. Reviewers: cedric, q66, lauromoura Subscribers: zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6169
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/efl_net_control_access_point.eo2
-rw-r--r--src/lib/ecore_con/efl_net_control_manager.eo8
-rw-r--r--src/lib/ecore_con/efl_net_control_technology.eo2
-rw-r--r--src/lib/ecore_con/efl_net_dialer.eo3
-rw-r--r--src/lib/ecore_con/efl_net_dialer_http.eo2
-rw-r--r--src/lib/ecore_con/efl_net_server.eo2
-rw-r--r--src/lib/ecore_con/efl_net_session.eo2
-rw-r--r--src/lib/ecore_con/efl_net_socket_ssl.eo2
8 files changed, 12 insertions, 11 deletions
diff --git a/src/lib/ecore_con/efl_net_control_access_point.eo b/src/lib/ecore_con/efl_net_control_access_point.eo
index f97ba2d..ec8cce7 100644
--- a/src/lib/ecore_con/efl_net_control_access_point.eo
+++ b/src/lib/ecore_con/efl_net_control_access_point.eo
@@ -87,7 +87,7 @@ class Efl.Net.Control.Access_Point (Efl.Loop_Consumer) {
87 ]] 87 ]]
88 88
89 events { 89 events {
90 changed; [[Called when some properties were changed.]] 90 changed: void; [[Called when some properties were changed.]]
91 } 91 }
92 92
93 methods { 93 methods {
diff --git a/src/lib/ecore_con/efl_net_control_manager.eo b/src/lib/ecore_con/efl_net_control_manager.eo
index d9ce75d..3250c4b 100644
--- a/src/lib/ecore_con/efl_net_control_manager.eo
+++ b/src/lib/ecore_con/efl_net_control_manager.eo
@@ -110,13 +110,13 @@ class Efl.Net.Control.Manager (Efl.Loop_Consumer) {
110 events { 110 events {
111 access_point,add: Efl.Net.Control.Access_Point; [[The given access point has been added]] 111 access_point,add: Efl.Net.Control.Access_Point; [[The given access point has been added]]
112 access_point,del: Efl.Net.Control.Access_Point; [[The given access point will be deleted]] 112 access_point,del: Efl.Net.Control.Access_Point; [[The given access point will be deleted]]
113 access_points,changed; [[Access points were added, deleted or reordered.]] 113 access_points,changed: void; [[Access points were added, deleted or reordered.]]
114 technology,add: Efl.Net.Control.Technology; [[The given technology has been added]] 114 technology,add: Efl.Net.Control.Technology; [[The given technology has been added]]
115 technology,del: Efl.Net.Control.Technology; [[The given technology will be deleted]] 115 technology,del: Efl.Net.Control.Technology; [[The given technology will be deleted]]
116 radios_offline,changed; [[Property @.radios_offline changed]] 116 radios_offline,changed: void; [[Property @.radios_offline changed]]
117 state,changed; [[Property @.state changed]] 117 state,changed: void; [[Property @.state changed]]
118 118
119 agent_released; [[Notifies we're not the agent anymore]] 119 agent_released: void; [[Notifies we're not the agent anymore]]
120 agent_error: Efl.Net.Control.Agent_Error; [[Requires the error to be reported to the user]] 120 agent_error: Efl.Net.Control.Agent_Error; [[Requires the error to be reported to the user]]
121 agent_browser_url: Efl.Net.Control.Agent_Browser_Url; [[Requires the user to visit a web page]] 121 agent_browser_url: Efl.Net.Control.Agent_Browser_Url; [[Requires the user to visit a web page]]
122 agent_request_input: Efl.Net.Control.Agent_Request_Input; [[Requires the user to enter information in order to proceed, such as hidden SSID, passphrase, etc. After the user enters the information, reply by calling @.agent_reply]] 122 agent_request_input: Efl.Net.Control.Agent_Request_Input; [[Requires the user to enter information in order to proceed, such as hidden SSID, passphrase, etc. After the user enters the information, reply by calling @.agent_reply]]
diff --git a/src/lib/ecore_con/efl_net_control_technology.eo b/src/lib/ecore_con/efl_net_control_technology.eo
index bbf7af8..04e0a4c 100644
--- a/src/lib/ecore_con/efl_net_control_technology.eo
+++ b/src/lib/ecore_con/efl_net_control_technology.eo
@@ -28,7 +28,7 @@ class Efl.Net.Control.Technology (Efl.Loop_Consumer) {
28 @since 1.19 28 @since 1.19
29 ]] 29 ]]
30 events { 30 events {
31 changed; [[Called when some properties were changed.]] 31 changed: void; [[Called when some properties were changed.]]
32 } 32 }
33 33
34 methods { 34 methods {
diff --git a/src/lib/ecore_con/efl_net_dialer.eo b/src/lib/ecore_con/efl_net_dialer.eo
index 756643e..b1f2afe 100644
--- a/src/lib/ecore_con/efl_net_dialer.eo
+++ b/src/lib/ecore_con/efl_net_dialer.eo
@@ -111,6 +111,7 @@ interface Efl.Net.Dialer (Efl.Net.Socket) {
111 } 111 }
112 112
113 events { 113 events {
114 /* FIXME: Might be NULL, but @nullable does not work on event types */
114 resolved: string; [[Notifies @.address_dial was resolved to 115 resolved: string; [[Notifies @.address_dial was resolved to
115 @Efl.Net.Socket.address_remote. 116 @Efl.Net.Socket.address_remote.
116 117
@@ -126,6 +127,6 @@ interface Efl.Net.Dialer (Efl.Net.Socket) {
126 error: Eina.Error; [[Some error happened and the socket 127 error: Eina.Error; [[Some error happened and the socket
127 stopped working. 128 stopped working.
128 ]] 129 ]]
129 connected; [[Notifies the socket is connected to the remote peer.]] 130 connected: void; [[Notifies the socket is connected to the remote peer.]]
130 } 131 }
131} 132}
diff --git a/src/lib/ecore_con/efl_net_dialer_http.eo b/src/lib/ecore_con/efl_net_dialer_http.eo
index 7aab27c..7a3f864 100644
--- a/src/lib/ecore_con/efl_net_dialer_http.eo
+++ b/src/lib/ecore_con/efl_net_dialer_http.eo
@@ -388,7 +388,7 @@ class Efl.Net.Dialer_Http (Efl.Loop_Consumer, Efl.Net.Dialer, Efl.Io.Sizer) {
388 } 388 }
389 389
390 events { 390 events {
391 headers,done; [[Notifies all headers were parsed and are available.]] 391 headers,done: void; [[Notifies all headers were parsed and are available.]]
392 } 392 }
393 393
394 implements { 394 implements {
diff --git a/src/lib/ecore_con/efl_net_server.eo b/src/lib/ecore_con/efl_net_server.eo
index f6d29c4..8a84fdb 100644
--- a/src/lib/ecore_con/efl_net_server.eo
+++ b/src/lib/ecore_con/efl_net_server.eo
@@ -29,7 +29,7 @@ interface Efl.Net.Server {
29 error: Eina.Error; [[An error has occurred and the server needs 29 error: Eina.Error; [[An error has occurred and the server needs
30 to be stopped. 30 to be stopped.
31 ]] 31 ]]
32 serving; [[Notifies the server is ready to accept clients. 32 serving: void; [[Notifies the server is ready to accept clients.
33 See property @.serving]] 33 See property @.serving]]
34 } 34 }
35 35
diff --git a/src/lib/ecore_con/efl_net_session.eo b/src/lib/ecore_con/efl_net_session.eo
index 96d4aa4..8bfd449 100644
--- a/src/lib/ecore_con/efl_net_session.eo
+++ b/src/lib/ecore_con/efl_net_session.eo
@@ -51,7 +51,7 @@ class Efl.Net.Session (Efl.Loop_Consumer) {
51 @since 1.19 51 @since 1.19
52 ]] 52 ]]
53 events { 53 events {
54 changed; [[Called when some properties were changed.]] 54 changed: void; [[Called when some properties were changed.]]
55 } 55 }
56 56
57 methods { 57 methods {
diff --git a/src/lib/ecore_con/efl_net_socket_ssl.eo b/src/lib/ecore_con/efl_net_socket_ssl.eo
index 4f46181..c8e3066 100644
--- a/src/lib/ecore_con/efl_net_socket_ssl.eo
+++ b/src/lib/ecore_con/efl_net_socket_ssl.eo
@@ -13,7 +13,7 @@ class Efl.Net.Socket_Ssl (Efl.Loop_Consumer, Efl.Net.Socket) {
13 ]] 13 ]]
14 14
15 events { 15 events {
16 ssl,ready; [[Notifies the SSL handshake has been performed and the socket is now able to communicate]] 16 ssl,ready: void; [[Notifies the SSL handshake has been performed and the socket is now able to communicate]]
17 ssl,error: Eina.Error; [[An error such as @Efl.Net.Socket_Ssl_Error.HANDSHAKE]] 17 ssl,error: Eina.Error; [[An error such as @Efl.Net.Socket_Ssl_Error.HANDSHAKE]]
18 } 18 }
19 19