summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/ecore_con_base.eo
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/ecore_con_base.eo
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/ecore_con_base.eo')
-rw-r--r--src/lib/ecore_con/ecore_con_base.eo22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/ecore_con/ecore_con_base.eo b/src/lib/ecore_con/ecore_con_base.eo
index 9400335..48e92c2 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 }