aboutsummaryrefslogtreecommitdiffstats
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
parentecore-drm: Only try to set the crtc mode if an output is connected (diff)
downloadefl-058a9c9d88b4532ff859f3d7a82e15ea64a94be3.tar.gz
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) {
legacy: null;
}
values {
- const(char)* ip; /*@ The IP address */
+ ip: const(char)*; /*@ The IP address */
}
}
@property uptime {
@@ -30,7 +30,7 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
}
values {
- double uptime; /*@ The total time, in seconds, that the object has been connected. */
+ uptime: double; /*@ The total time, in seconds, that the object has been connected. */
}
}
@property port {
@@ -45,7 +45,7 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
}
values {
- int port; /*@ The The port that obj is connected to, or -1 on error. */
+ port: int; /*@ The The port that obj is connected to, or -1 on error. */
}
}
@property fd {
@@ -62,7 +62,7 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
}
values {
- int fd; /*@ The fd, or -1 on failure. */
+ fd: int; /*@ The fd, or -1 on failure. */
}
}
@property connected {
@@ -73,7 +73,7 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
}
values {
- bool connected; /*@ Returns True if connected, False otherwise. */
+ connected: bool; /*@ Returns True if connected, False otherwise. */
}
}
@property timeout {
@@ -96,7 +96,7 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
}
values {
- double timeout; /*@ The timeout, in seconds, to disconnect after. */
+ timeout: double; /*@ The timeout, in seconds, to disconnect after. */
}
}
flush {
@@ -122,8 +122,8 @@ abstract Ecore.Con.Base (Eo.Base) {
legacy: null;
params {
- const(void)* data; /*@ The given data */
- int size; /*@ Length of the data, in bytes. */
+ data: const(void)*; /*@ The given data */
+ size: int; /*@ Length of the data, in bytes. */
}
return: int; /*@ The number of bytes sent. @c 0 will be returned if there is an error. */
}
@@ -147,9 +147,9 @@ abstract Ecore.Con.Base (Eo.Base) {
* @li @c data - the data pointer given as parameter to ecore_con_lookup()
*/
params {
- const(char)* name @nonull; /*@ Hostname to lookup. */
- Ecore_Con_Dns_Cb done_cb; /*@ The callback to be called wehn lookup is done. */
- const(void)* data; /*@ User data for the callback. */
+ name: const(char)* @nonull; /*@ Hostname to lookup. */
+ done_cb: Ecore_Con_Dns_Cb; /*@ The callback to be called wehn lookup is done. */
+ data: const(void)*; /*@ User data for the callback. */
}
return: bool;
}
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) {
get {
}
values {
- Ecore.Con.Server *svr; /*@ The server the client is connected to. */
+ svr: Ecore.Con.Server *; /*@ The server the client is connected to. */
}
}
}
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) {
get {
}
values {
- const(char) *name; /*@ The name of the server. */
+ name: const(char) *; /*@ The name of the server. */
}
}
@property client_limit {
@@ -34,8 +34,8 @@ class Ecore.Con.Server (Ecore.Con.Base) {
legacy: null;
}
values {
- int client_limit; /*@ The maximum number of clients to handle concurrently. -1 means unlimited (default). 0 effectively disables the server. */
- 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). */
+ client_limit: int; /*@ The maximum number of clients to handle concurrently. -1 means unlimited (default). 0 effectively disables the server. */
+ 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). */
}
}
/* FIXME: Should this return an iterator? */
@@ -51,7 +51,7 @@ class Ecore.Con.Server (Ecore.Con.Base) {
get {
}
values {
- const(list<const(Ecore.Con.Client) *>) *clients; /*@ The list of clients on this server. */
+ clients: const(list<const(Ecore.Con.Client) *>) *; /*@ The list of clients on this server. */
}
}
@property connection_type {
@@ -62,7 +62,7 @@ class Ecore.Con.Server (Ecore.Con.Base) {
legacy: null;
}
values {
- Ecore_Con_Type conn_type;
+ conn_type: Ecore_Con_Type;
}
}
}
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) {
get {
}
values {
- const(char) *url; /*@ The URL */
+ url: const(char) *; /*@ The URL */
}
}
}