2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Loop_Fd extends Efl.Loop_Consumer
|
2016-05-06 15:33:36 -07:00
|
|
|
{
|
2017-12-20 01:41:41 -08:00
|
|
|
[[Fds are objects that watch the activity on a given
|
2016-05-06 15:33:36 -07:00
|
|
|
file descriptor. This file descriptor can be a
|
|
|
|
network, a file, provided by a library.
|
|
|
|
|
2017-12-20 01:41:41 -08:00
|
|
|
The object will trigger relevant events depending
|
|
|
|
on what's happening.]]
|
2016-05-06 15:33:36 -07:00
|
|
|
|
|
|
|
methods {
|
|
|
|
@property fd {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Defines which file descriptor to watch. If it is a file, use file_fd variant.]]
|
2018-02-12 09:56:31 -08:00
|
|
|
set {
|
|
|
|
[[Defines the fd to watch.]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
fd: int; [[The file descriptor.]]
|
|
|
|
}
|
2016-05-06 15:33:36 -07:00
|
|
|
}
|
|
|
|
@property fd_file {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
[[Defines which file descriptor to watch when watching a file.]]
|
2018-02-12 09:56:31 -08:00
|
|
|
set {
|
|
|
|
[[Defines the fd to watch on.]]
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
fd: int; [[The file descriptor.]]
|
|
|
|
}
|
2016-05-06 15:33:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
events {
|
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
2018-05-11 08:20:40 -07:00
|
|
|
read: void; [[Called when a read happened on the file descriptor]]
|
|
|
|
write: void; [[Called when a write happened on the file descriptor]]
|
|
|
|
error: void; [[Called when a error occurred on the file descriptor]]
|
2016-05-06 15:33:36 -07:00
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-04-09 16:55:15 -07:00
|
|
|
Efl.Object.invalidate;
|
2016-12-27 07:19:06 -08:00
|
|
|
Efl.Object.parent { set; }
|
2016-05-06 15:33:36 -07:00
|
|
|
}
|
|
|
|
}
|