Efl.Loop_* (from Efl.Loop.*)

Ref https://phab.enlightenment.org/T6847

Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
Xavi Artigas 2018-04-12 13:56:02 +02:00 committed by Cedric Bail
parent a907523545
commit 23c303f87b
36 changed files with 59 additions and 59 deletions

View File

@ -1,7 +1,7 @@
import efl_types;
import eina_types;
class Ecore.Event.Message (Efl.Loop.Message)
class Ecore.Event.Message (Efl.Loop_Message)
{
[[ For Legacy API usage Only. Legacy Ecore Events ]]
methods {

View File

@ -1,7 +1,7 @@
import efl_types;
import eina_types;
class Ecore.Event.Message.Handler (Efl.Loop.Message.Handler)
class Ecore.Event.Message.Handler (Efl.Loop_Message_Handler)
{
[[ For Legacy API usage Only
This class is rather hacky/messy as it's really internal glue
@ -90,6 +90,6 @@ class Ecore.Event.Message.Handler (Efl.Loop.Message.Handler)
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Loop.Message.Handler.message_call; [[ Sample - override this ]]
Efl.Loop_Message_Handler.message_call; [[ Sample - override this ]]
}
}

View File

@ -1,4 +1,4 @@
class Efl.Io.Buffered_Stream (Efl.Loop.Consumer, Efl.Io.Reader, Efl.Io.Writer, Efl.Io.Closer) {
class Efl.Io.Buffered_Stream (Efl.Loop_Consumer, Efl.Io.Reader, Efl.Io.Writer, Efl.Io.Closer) {
[[A wrapper object offering easy to use buffered streams over existing I/O class.
The buffered stream encapsulates an actual @Efl.Io.Reader or

View File

@ -1,6 +1,6 @@
import eina_types;
class Efl.Io.Copier (Efl.Loop.Consumer, Efl.Io.Closer) {
class Efl.Io.Copier (Efl.Loop_Consumer, Efl.Io.Closer) {
[[Copy from an @Efl.Io.Reader source to @Efl.Io.Writer destination.
During usage it will keep reference to @.source and

View File

@ -1,4 +1,4 @@
class Efl.Io.File (Efl.Loop.Fd, Efl.File, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io.Closer_Fd, Efl.Io.Sizer_Fd, Efl.Io.Positioner_Fd) {
class Efl.Io.File (Efl.Loop_Fd, Efl.File, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io.Closer_Fd, Efl.Io.Sizer_Fd, Efl.Io.Positioner_Fd) {
[[File access (open, close, read, write, lseek, ftruncate)
@Efl.Io.Closer.close_on_exec and
@ -50,7 +50,7 @@ class Efl.Io.File (Efl.Loop.Fd, Efl.File, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Ef
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Object.finalize;
Efl.Loop.Fd.fd_file { set; }
Efl.Loop_Fd.fd_file { set; }
Efl.File.file { get; set; }
Efl.Io.Reader.read;
Efl.Io.Writer.write;

View File

@ -1,4 +1,4 @@
class Efl.Io.Stderr (Efl.Loop.Fd, Efl.Io.Writer_Fd) {
class Efl.Io.Stderr (Efl.Loop_Fd, Efl.Io.Writer_Fd) {
[[Application's standard error (stderr).
@since 1.19
@ -8,7 +8,7 @@ class Efl.Io.Stderr (Efl.Loop.Fd, Efl.Io.Writer_Fd) {
implements {
Efl.Object.finalize;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Io.Writer.write;
Efl.Io.Writer.can_write { set; }
}

View File

@ -1,4 +1,4 @@
class Efl.Io.Stdin (Efl.Loop.Fd, Efl.Io.Reader_Fd) {
class Efl.Io.Stdin (Efl.Loop_Fd, Efl.Io.Reader_Fd) {
[[Application's standard input (stdin).
@since 1.19
@ -8,7 +8,7 @@ class Efl.Io.Stdin (Efl.Loop.Fd, Efl.Io.Reader_Fd) {
implements {
Efl.Object.finalize;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Io.Reader.read;
Efl.Io.Reader.can_read { set; }
}

View File

@ -1,4 +1,4 @@
class Efl.Io.Stdout (Efl.Loop.Fd, Efl.Io.Writer_Fd) {
class Efl.Io.Stdout (Efl.Loop_Fd, Efl.Io.Writer_Fd) {
[[Application's standard output (stdout).
@since 1.19
@ -8,7 +8,7 @@ class Efl.Io.Stdout (Efl.Loop.Fd, Efl.Io.Writer_Fd) {
implements {
Efl.Object.finalize;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Io.Writer.write;
Efl.Io.Writer.can_write { set; }
}

View File

@ -1,7 +1,7 @@
import efl_types;
import eina_types;
struct Efl.Loop.Arguments {
struct Efl.Loop_Arguments {
[[EFL loop arguments data structure]]
argv: const(array<const(stringshare)>); [[Array with loop arguments]]
initialization: bool; [[Set to $true when the program should initialize its internal state. This happen once per process instance.]]
@ -110,14 +110,14 @@ class Efl.Loop (Efl.Task)
@in loop: Efl.Loop; [[The loop to get the object from.]]
@in klass: const(Efl.Class); [[The class of the message object.]]
}
return: Efl.Loop.Message.Handler; [[The message handler to use.]]
return: Efl.Loop_Message_Handler; [[The message handler to use.]]
}
}
events {
idle,enter @restart; [[Event occurs once the main loop enters the idle state.]]
idle,exit @restart; [[Event occurs once the main loop exits the idle state.]]
idle @restart; [[Event occurs once the main loop is idle. If you keep listening on this event it may increase the burden on your CPU.]]
arguments: Efl.Loop.Arguments; [[Event happens when args are provided to the loop by args_add().]]
arguments: Efl.Loop_Arguments; [[Event happens when args are provided to the loop by args_add().]]
poll,high; [[Event occurs multiple times per second. The exact tick is undefined and can be adjusted system wide.]]
poll,medium; [[Event occurs multiple times per minute. The exact tick is undefined and can be adjusted system wide.]]
poll,low; [[Event occurs multiple times every 15 minutes. The exact tick is undefined and can be adjusted system wide.]]

View File

@ -1,6 +1,6 @@
class Efl.Loop.Consumer (Efl.Object)
class Efl.Loop_Consumer (Efl.Object)
{
[[An Efl.Loop.Consumer is a class which requires one of the parents to provide
[[An Efl.Loop_Consumer is a class which requires one of the parents to provide
an Efl.Loop interface when performing provider_find. It will enforce this by
only allowing parents which provide such an interface or NULL.]]
eo_prefix: efl_loop;

View File

@ -1,6 +1,6 @@
import eina_types;
class Efl.Loop.Fd (Efl.Loop.Consumer)
class Efl.Loop_Fd (Efl.Loop_Consumer)
{
[[Fds are objects that watch the activity on a given
file descriptor. This file descriptor can be a

View File

@ -9,7 +9,7 @@ enum Efl.Loop.Handler.Flags {
error = 4, [[ Error channel input is desired ]]
}
class Efl.Loop.Handler (Efl.Object)
class Efl.Loop_Handler (Efl.Object)
{
[[ An object that describes an low-level source of I/O to listen to
for available data to be read or written, depending on the OS and data

View File

@ -1,14 +1,14 @@
import efl_types;
import eina_types;
class Efl.Loop.Message (Efl.Object)
class Efl.Loop_Message (Efl.Object)
{
[[Base message payload object class. Inherit this and extend for
specific message types.]]
methods {
}
events {
message: Efl.Loop.Message; [[The message payload data]]
message: Efl.Loop_Message; [[The message payload data]]
}
implements {
Efl.Object.constructor;

View File

@ -1,7 +1,7 @@
import efl_types;
import eina_types;
class Efl.Loop.Message.Future (Efl.Loop.Message)
class Efl.Loop_Message_Future (Efl.Loop_Message)
{
[[ Used internally for futures on the loop ]]
methods {

View File

@ -1,21 +1,21 @@
import efl_types;
import eina_types;
class Efl.Loop.Message.Future.Handler (Efl.Loop.Message.Handler)
class Efl.Loop_Message_Future_Handler (Efl.Loop_Message_Handler)
{
[[ Internal use for future on an efl loop - replacing legacy ecore events ]]
methods {
message_type_add {
[[ ]]
return: Efl.Loop.Message.Future; [[ ]]
return: Efl.Loop_Message_Future; [[ ]]
}
}
events {
message,future: Efl.Loop.Message.Future; [[ ]]
message,future: Efl.Loop_Message_Future; [[ ]]
}
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Loop.Message.Handler.message_call; [[ ]]
Efl.Loop_Message_Handler.message_call; [[ ]]
}
}

View File

@ -1,7 +1,7 @@
import efl_types;
import eina_types;
class Efl.Loop.Message.Handler (Efl.Object)
class Efl.Loop_Message_Handler (Efl.Object)
{
[[Message handlers represent a single message type on the Efl.Loop
parent object. These message handlers can be used to listen for
@ -12,20 +12,20 @@ class Efl.Loop.Message.Handler (Efl.Object)
message_add {
[[Creates a new message object of the correct type for this
message type.]]
return: Efl.Loop.Message; [[The new message payload object.]]
return: Efl.Loop_Message; [[The new message payload object.]]
}
message_send {
[[Place the message on the queue to be called later when
message_process() is called on the loop object.]]
params {
@in message: Efl.Loop.Message; [[The message to place on the queue.]]
@in message: Efl.Loop_Message; [[The message to place on the queue.]]
}
}
message_call {
[[Overide me (implement) then call super after calling the
right callback type if you specialize the message type.]]
params {
@in message: Efl.Loop.Message; [[ Generic message event type ]]
@in message: Efl.Loop_Message; [[ Generic message event type ]]
}
}
message_clear {
@ -36,7 +36,7 @@ class Efl.Loop.Message.Handler (Efl.Object)
}
}
events {
message: Efl.Loop.Message; [[The message payload data]]
message: Efl.Loop_Message; [[The message payload data]]
}
implements {
Efl.Object.constructor;

View File

@ -1,4 +1,4 @@
class Efl.Loop.Timer (Efl.Loop.Consumer)
class Efl.Loop_Timer (Efl.Loop_Consumer)
{
[[Timers are objects that will call a given callback at some point
in the future and repeat that tick at a given interval.

View File

@ -1,6 +1,6 @@
import eina_types;
class Efl.Promise (Efl.Loop.Consumer)
class Efl.Promise (Efl.Loop_Consumer)
{
[[Efl promise class]]
methods {

View File

@ -74,7 +74,7 @@ enum Efl.Net.Control.Access_Point_Proxy_Method {
unset, [[Only to be used with @Efl.Net.Control.Access_Point.configuration_proxy.]]
}
class Efl.Net.Control.Access_Point (Efl.Loop.Consumer) {
class Efl.Net.Control.Access_Point (Efl.Loop_Consumer) {
[[An access point for network connectivity.
The @Efl.Net.Control.Manager is composed of multiple technologies, each

View File

@ -65,7 +65,7 @@ struct Efl.Net.Control.Agent_Browser_Url {
url: string; [[The URL to point the browser at.]]
}
class Efl.Net.Control.Manager (Efl.Loop.Consumer) {
class Efl.Net.Control.Manager (Efl.Loop_Consumer) {
[[Controls network connectivity.
This class and its child objects are only useful to implement

View File

@ -17,7 +17,7 @@ enum Efl.Net.Control.Technology_Type {
p2p, [[Type: Peer-2-Peer]]
}
class Efl.Net.Control.Technology (Efl.Loop.Consumer) {
class Efl.Net.Control.Technology (Efl.Loop_Consumer) {
[[A technology that allows control of network access points.
The @Efl.Net.Control.Manager is composed of multiple technologies, each

View File

@ -7,7 +7,7 @@ enum Efl.Net.Dialer.Http_Primary_Mode {
upload, [[HTTP upload mode]]
}
class Efl.Net.Dialer.Http (Efl.Loop.Consumer, Efl.Net.Dialer, Efl.Io.Sizer) {
class Efl.Net.Dialer.Http (Efl.Loop_Consumer, Efl.Net.Dialer, Efl.Io.Sizer) {
[[HTTP Dialer (Client).
The effective URL in use, if @.allow_redirects is $true will be

View File

@ -47,7 +47,7 @@ struct Efl.Net.Dialer.Websocket_Closed_Reason {
message: string; [[Textual closing reason message]]
}
class Efl.Net.Dialer.Websocket (Efl.Loop.Consumer, Efl.Net.Dialer) {
class Efl.Net.Dialer.Websocket (Efl.Loop_Consumer, Efl.Net.Dialer) {
[[WebSocket Dialer (Client).
The WebSocket Protocol (https://tools.ietf.org/html/rfc6455) is

View File

@ -1,4 +1,4 @@
class Efl.Net.Server.Fd (Efl.Loop.Fd, Efl.Net.Server) {
class Efl.Net.Server.Fd (Efl.Loop_Fd, Efl.Net.Server) {
[[A generic server based on file descriptors.
@since 1.19
@ -58,7 +58,7 @@ class Efl.Net.Server.Fd (Efl.Loop.Fd, Efl.Net.Server) {
It will be one of AF_INET (IPv4), AF_INET6 (IPv6),
AF_UNIX...
It must be set before the @Efl.Loop.Fd.fd.set is called
It must be set before the @Efl.Loop_Fd.fd.set is called
with a valid file descriptor.
]]
get { }
@ -115,7 +115,7 @@ class Efl.Net.Server.Fd (Efl.Loop.Fd, Efl.Net.Server) {
else, such as in SOCK_DGRAM (UDP) there is no accept(),
only recvfrom().
It is called straight from @Efl.Loop.Fd "read" event
It is called straight from @Efl.Loop_Fd "read" event
handler and is provided as a method to allow easy
extending of the class for various purposes.
]]
@ -155,7 +155,7 @@ class Efl.Net.Server.Fd (Efl.Loop.Fd, Efl.Net.Server) {
Efl.Object.finalize;
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Net.Server.address { get; set; }
Efl.Net.Server.clients_count { get; set; }
Efl.Net.Server.clients_limit { get; set; }

View File

@ -1,4 +1,4 @@
class Efl.Net.Server.Simple (Efl.Loop.Consumer, Efl.Net.Server) {
class Efl.Net.Server.Simple (Efl.Loop_Consumer, Efl.Net.Server) {
[[A network server wrapper that creates clients based on @Efl.Net.Socket.Simple.
This is just a wrapper server. It takes an actual server

View File

@ -1,4 +1,4 @@
class Efl.Net.Server.Windows (Efl.Loop.Consumer, Efl.Net.Server) {
class Efl.Net.Server.Windows (Efl.Loop_Consumer, Efl.Net.Server) {
[[A Windows NamedPipe server.
The @Efl.Net.Server.serve method calls CreateNamedPipe()

View File

@ -27,7 +27,7 @@ enum Efl.Net.Session.Technology {
all = (Efl.Net.Session.Technology.ethernet | Efl.Net.Session.Technology.wifi | Efl.Net.Session.Technology.bluetooth | Efl.Net.Session.Technology.cellular | Efl.Net.Session.Technology.vpn | Efl.Net.Session.Technology.gadget), [[All technology types]]
}
class Efl.Net.Session (Efl.Loop.Consumer) {
class Efl.Net.Session (Efl.Loop_Consumer) {
[[Used by application to request network connectivity.
This API is targeted at applications that need access to the

View File

@ -1,4 +1,4 @@
class Efl.Net.Socket.Fd (Efl.Loop.Fd, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io.Closer_Fd, Efl.Net.Socket) {
class Efl.Net.Socket.Fd (Efl.Loop_Fd, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io.Closer_Fd, Efl.Net.Socket) {
[[A base implementation for sockets over filedescriptors (fd)
This is the common class and takes an existing FD, usually
@ -18,7 +18,7 @@ class Efl.Net.Socket.Fd (Efl.Loop.Fd, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io
It will be one of AF_INET (IPv4), AF_INET6 (IPv6),
AF_UNIX...
It must be set before the @Efl.Loop.Fd.fd.set is called
It must be set before the @Efl.Loop_Fd.fd.set is called
with a valid file descriptor.
]]
get { }
@ -33,7 +33,7 @@ class Efl.Net.Socket.Fd (Efl.Loop.Fd, Efl.Io.Reader_Fd, Efl.Io.Writer_Fd, Efl.Io
Efl.Object.finalize;
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Io.Closer.close;
Efl.Io.Closer.closed { get; }
Efl.Io.Reader.read;

View File

@ -1,7 +1,7 @@
var Efl.Net.Socket.Ssl_Error.HANDSHAKE: Eina.Error; [[Failed SSL handshake]]
var Efl.Net.Socket.Ssl_Error.CERTIFICATE_VERIFY_FAILED: Eina.Error; [[Failed to verify peer's certificate]]
class Efl.Net.Socket.Ssl (Efl.Loop.Consumer, Efl.Net.Socket) {
class Efl.Net.Socket.Ssl (Efl.Loop_Consumer, Efl.Net.Socket) {
[[A wrapper socket doing SSL (Secure Sockets Layer).
Use this wrapper around an existing socket for secure

View File

@ -43,6 +43,6 @@ class Efl.Net.Socket.Tcp (Efl.Net.Socket.Fd) {
}
implements {
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
}
}

View File

@ -176,7 +176,7 @@ class Efl.Net.Socket.Udp (Efl.Net.Socket.Fd) {
implements {
Efl.Object.constructor;
Efl.Object.destructor;
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
Efl.Io.Reader.read;
Efl.Io.Writer.write;
}

View File

@ -8,6 +8,6 @@ class Efl.Net.Socket.Unix (Efl.Net.Socket.Fd) {
]]
implements {
Efl.Loop.Fd.fd { set; }
Efl.Loop_Fd.fd { set; }
}
}

View File

@ -1,4 +1,4 @@
class Efl.Net.Socket.Windows (Efl.Loop.Consumer, Efl.Net.Socket) {
class Efl.Net.Socket.Windows (Efl.Loop_Consumer, Efl.Net.Socket) {
[[A base Windows NamedPipe socket.
This is the common class and takes an existing file HANDLE,

View File

@ -21,7 +21,7 @@ function EflIoDirectInfo {
}
};
class Efl.Io.Manager (Efl.Loop.Consumer)
class Efl.Io.Manager (Efl.Loop_Consumer)
{
[[Class representing an asynchronous file operation.]]

View File

@ -3,7 +3,7 @@ import efl_canvas_animation_types;
abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.Stack, Efl.Animator,
Efl.Input.Interface, Efl.Gfx.Size_Hint,
Efl.Gfx.Map, Efl.Loop.Consumer, Efl.Ui.Base, Efl.Canvas.Pointer)
Efl.Gfx.Map, Efl.Loop_Consumer, Efl.Ui.Base, Efl.Canvas.Pointer)
{
[[Efl canvas object abstract class]]
legacy_prefix: evas_object;
@ -619,7 +619,7 @@ abstract Efl.Canvas.Object (Efl.Object, Efl.Gfx.Entity, Efl.Gfx.Color, Efl.Gfx.S
Efl.Gfx.Size_Hint.hint_weight { get; set; }
Efl.Gfx.Entity.scale { set; get; }
Efl.Input.Interface.seat_event_filter { get; set; }
Efl.Loop.Consumer.loop { get; }
Efl.Loop_Consumer.loop { get; }
Efl.Canvas.Pointer.pointer_inside { get; }
}
events {

View File

@ -1,7 +1,7 @@
import efl_input_types;
class Evas.Canvas (Efl.Object, Efl.Canvas.Scene, Efl.Animator, Efl.Input.Interface,
Efl.Loop.Consumer, Efl.Canvas.Pointer)
Efl.Loop_Consumer, Efl.Canvas.Pointer)
{
[[Evas canvas class]]
legacy_prefix: evas;
@ -987,7 +987,7 @@ class Evas.Canvas (Efl.Object, Efl.Canvas.Scene, Efl.Animator, Efl.Input.Interfa
Efl.Object.event_thaw;
Efl.Object.event_freeze;
Efl.Object.provider_find;
Efl.Loop.Consumer.loop { get; }
Efl.Loop_Consumer.loop { get; }
//Efl.Canvas.seats;
Efl.Canvas.Pointer.pointer_inside { get; }
Efl.Canvas.Scene.device { get; }