summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-18 16:13:08 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-18 16:14:31 +0100
commit058a9c9d88b4532ff859f3d7a82e15ea64a94be3 (patch)
treed4e35abcfe912e9e948082d39e6a114e8e0ca010 /src/lib/ecore_con
parentdcc73c8f9a2e337dcdb18b26da13d98d03a4ec1f (diff)
eolian: new syntax for params/values/keys
Instead of "@in type name;" we now use "@in name: type;". This change is done because of consistency with the rest of Eolian; pretty much every other part of Eolian syntax uses the latter form. This is a big breaking change in the .eo format, so please update your .eo files accordingly and compile Elementary together with the EFL. @feature
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_base.eo22
-rw-r--r--src/lib/ecore_con/ecore_con_client.eo2
-rw-r--r--src/lib/ecore_con/ecore_con_server.eo10
-rw-r--r--src/lib/ecore_con/efl_network_url.eo2
4 files changed, 18 insertions, 18 deletions
diff --git a/src/lib/ecore_con/ecore_con_base.eo b/src/lib/ecore_con/ecore_con_base.eo
index 9400335842..48e92c2d4b 100644
--- a/src/lib/ecore_con/ecore_con_base.eo
+++ b/src/lib/ecore_con/ecore_con_base.eo
@@ -17,7 +17,7 @@ abstract Ecore.Con.Base (Eo.Base) {
17 legacy: null; 17 legacy: null;
18 } 18 }
19 values { 19 values {
20 const(char)* ip; /*@ The IP address */ 20 ip: const(char)*; /*@ The IP address */
21 } 21 }
22 } 22 }
23 @property uptime { 23 @property uptime {
@@ -30,7 +30,7 @@ abstract Ecore.Con.Base (Eo.Base) {
30 legacy: null; 30 legacy: null;
31 } 31 }
32 values { 32 values {
33 double uptime; /*@ The total time, in seconds, that the object has been connected. */ 33 uptime: double; /*@ The total time, in seconds, that the object has been connected. */
34 } 34 }
35 } 35 }
36 @property port { 36 @property port {
@@ -45,7 +45,7 @@ abstract Ecore.Con.Base (Eo.Base) {
45 legacy: null; 45 legacy: null;
46 } 46 }
47 values { 47 values {
48 int port; /*@ The The port that obj is connected to, or -1 on error. */ 48 port: int; /*@ The The port that obj is connected to, or -1 on error. */
49 } 49 }
50 } 50 }
51 @property fd { 51 @property fd {
@@ -62,7 +62,7 @@ abstract Ecore.Con.Base (Eo.Base) {
62 legacy: null; 62 legacy: null;
63 } 63 }
64 values { 64 values {
65 int fd; /*@ The fd, or -1 on failure. */ 65 fd: int; /*@ The fd, or -1 on failure. */
66 } 66 }
67 } 67 }
68 @property connected { 68 @property connected {
@@ -73,7 +73,7 @@ abstract Ecore.Con.Base (Eo.Base) {
73 legacy: null; 73 legacy: null;
74 } 74 }
75 values { 75 values {
76 bool connected; /*@ Returns True if connected, False otherwise. */ 76 connected: bool; /*@ Returns True if connected, False otherwise. */
77 } 77 }
78 } 78 }
79 @property timeout { 79 @property timeout {
@@ -96,7 +96,7 @@ abstract Ecore.Con.Base (Eo.Base) {
96 legacy: null; 96 legacy: null;
97 } 97 }
98 values { 98 values {
99 double timeout; /*@ The timeout, in seconds, to disconnect after. */ 99 timeout: double; /*@ The timeout, in seconds, to disconnect after. */
100 } 100 }
101 } 101 }
102 flush { 102 flush {
@@ -122,8 +122,8 @@ abstract Ecore.Con.Base (Eo.Base) {
122 legacy: null; 122 legacy: null;
123 123
124 params { 124 params {
125 const(void)* data; /*@ The given data */ 125 data: const(void)*; /*@ The given data */
126 int size; /*@ Length of the data, in bytes. */ 126 size: int; /*@ Length of the data, in bytes. */
127 } 127 }
128 return: int; /*@ The number of bytes sent. @c 0 will be returned if there is an error. */ 128 return: int; /*@ The number of bytes sent. @c 0 will be returned if there is an error. */
129 } 129 }
@@ -147,9 +147,9 @@ abstract Ecore.Con.Base (Eo.Base) {
147 * @li @c data - the data pointer given as parameter to ecore_con_lookup() 147 * @li @c data - the data pointer given as parameter to ecore_con_lookup()
148 */ 148 */
149 params { 149 params {
150 const(char)* name @nonull; /*@ Hostname to lookup. */ 150 name: const(char)* @nonull; /*@ Hostname to lookup. */
151 Ecore_Con_Dns_Cb done_cb; /*@ The callback to be called wehn lookup is done. */ 151 done_cb: Ecore_Con_Dns_Cb; /*@ The callback to be called wehn lookup is done. */
152 const(void)* data; /*@ User data for the callback. */ 152 data: const(void)*; /*@ User data for the callback. */
153 } 153 }
154 return: bool; 154 return: bool;
155 } 155 }
diff --git a/src/lib/ecore_con/ecore_con_client.eo b/src/lib/ecore_con/ecore_con_client.eo
index 4c545fc0cd..e1e3c06bca 100644
--- a/src/lib/ecore_con/ecore_con_client.eo
+++ b/src/lib/ecore_con/ecore_con_client.eo
@@ -10,7 +10,7 @@ class Ecore.Con.Client (Ecore.Con.Base) {
10 get { 10 get {
11 } 11 }
12 values { 12 values {
13 Ecore.Con.Server *svr; /*@ The server the client is connected to. */ 13 svr: Ecore.Con.Server *; /*@ The server the client is connected to. */
14 } 14 }
15 } 15 }
16 } 16 }
diff --git a/src/lib/ecore_con/ecore_con_server.eo b/src/lib/ecore_con/ecore_con_server.eo
index 6eea9399f2..e942d77330 100644
--- a/src/lib/ecore_con/ecore_con_server.eo
+++ b/src/lib/ecore_con/ecore_con_server.eo
@@ -13,7 +13,7 @@ class Ecore.Con.Server (Ecore.Con.Base) {
13 get { 13 get {
14 } 14 }
15 values { 15 values {
16 const(char) *name; /*@ The name of the server. */ 16 name: const(char) *; /*@ The name of the server. */
17 } 17 }
18 } 18 }
19 @property client_limit { 19 @property client_limit {
@@ -34,8 +34,8 @@ class Ecore.Con.Server (Ecore.Con.Base) {
34 legacy: null; 34 legacy: null;
35 } 35 }
36 values { 36 values {
37 int client_limit; /*@ The maximum number of clients to handle concurrently. -1 means unlimited (default). 0 effectively disables the server. */ 37 client_limit: int; /*@ The maximum number of clients to handle concurrently. -1 means unlimited (default). 0 effectively disables the server. */
38 char reject_excess_clients; /*@ Set to 1 to automatically disconnect excess clients as soon as they connect if you are already handling client_limit clients. Set to 0 (default) to just hold off on the "accept()" system call until the number of active clients drops. This causes the kernel to queue up to 4096 connections (or your kernel's limit, whichever is lower). */ 38 reject_excess_clients: char; /*@ Set to 1 to automatically disconnect excess clients as soon as they connect if you are already handling client_limit clients. Set to 0 (default) to just hold off on the "accept()" system call until the number of active clients drops. This causes the kernel to queue up to 4096 connections (or your kernel's limit, whichever is lower). */
39 } 39 }
40 } 40 }
41 /* FIXME: Should this return an iterator? */ 41 /* FIXME: Should this return an iterator? */
@@ -51,7 +51,7 @@ class Ecore.Con.Server (Ecore.Con.Base) {
51 get { 51 get {
52 } 52 }
53 values { 53 values {
54 const(list<const(Ecore.Con.Client) *>) *clients; /*@ The list of clients on this server. */ 54 clients: const(list<const(Ecore.Con.Client) *>) *; /*@ The list of clients on this server. */
55 } 55 }
56 } 56 }
57 @property connection_type { 57 @property connection_type {
@@ -62,7 +62,7 @@ class Ecore.Con.Server (Ecore.Con.Base) {
62 legacy: null; 62 legacy: null;
63 } 63 }
64 values { 64 values {
65 Ecore_Con_Type conn_type; 65 conn_type: Ecore_Con_Type;
66 } 66 }
67 } 67 }
68 } 68 }
diff --git a/src/lib/ecore_con/efl_network_url.eo b/src/lib/ecore_con/efl_network_url.eo
index b542fdffad..e05c940adc 100644
--- a/src/lib/ecore_con/efl_network_url.eo
+++ b/src/lib/ecore_con/efl_network_url.eo
@@ -12,7 +12,7 @@ class Efl.Network.Url (Eo.Base) {
12 get { 12 get {
13 } 13 }
14 values { 14 values {
15 const(char) *url; /*@ The URL */ 15 url: const(char) *; /*@ The URL */
16 } 16 }
17 } 17 }
18 } 18 }