1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.ComponentModel;
8 /// <summary></summary>
10 public class Thread : Efl.Task, Efl.Eo.IWrapper,Efl.ThreadIO,Efl.Core.CommandLine,Efl.Io.Closer,Efl.Io.Reader,Efl.Io.Writer
12 public new static System.IntPtr klass = System.IntPtr.Zero;
13 public new static Efl.ThreadNativeInherit nativeInherit = new Efl.ThreadNativeInherit();
14 ///<summary>Pointer to the native class description.</summary>
15 public override System.IntPtr NativeClass {
17 if (((object)this).GetType() == typeof (Thread))
18 return Efl.ThreadNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
23 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
24 efl_thread_class_get();
25 ///<summary>Creates a new instance.</summary>
26 ///<param name="parent">Parent instance.</param>
27 public Thread(Efl.Object parent= null
29 base(efl_thread_class_get(), typeof(Thread), parent)
31 FinishInstantiation();
33 ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
34 public Thread(System.IntPtr raw) : base(raw)
36 register_event_proxies();
38 ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
39 protected Thread(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
40 ///<summary>Casts obj into an instance of this type.</summary>
41 public new static Thread static_cast(Efl.Object obj)
44 throw new System.ArgumentNullException("obj");
45 return new Thread(obj.NativeHandle);
47 ///<summary>Verifies if the given object is equal to this one.</summary>
48 public override bool Equals(object obj)
50 var other = obj as Efl.Object;
53 return this.NativeHandle == other.NativeHandle;
55 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
56 public override int GetHashCode()
58 return this.NativeHandle.ToInt32();
60 ///<summary>Turns the native pointer into a string representation.</summary>
61 public override String ToString()
63 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
65 private static object ClosedEvtKey = new object();
66 /// <summary>Notifies closed, when property is marked as true
68 public event EventHandler ClosedEvt
72 string key = "_EFL_IO_CLOSER_EVENT_CLOSED";
73 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_ClosedEvt_delegate)) {
74 eventHandlers.AddHandler(ClosedEvtKey , value);
76 Eina.Log.Error($"Error adding proxy for event {key}");
81 string key = "_EFL_IO_CLOSER_EVENT_CLOSED";
82 if (remove_cpp_event_handler(key, this.evt_ClosedEvt_delegate)) {
83 eventHandlers.RemoveHandler(ClosedEvtKey , value);
85 Eina.Log.Error($"Error removing proxy for event {key}");
89 ///<summary>Method to raise event ClosedEvt.</summary>
90 public void On_ClosedEvt(EventArgs e)
94 evt = (EventHandler)eventHandlers[ClosedEvtKey];
98 Efl.EventCb evt_ClosedEvt_delegate;
99 private void on_ClosedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
101 EventArgs args = EventArgs.Empty;
104 } catch (Exception e) {
105 Eina.Log.Error(e.ToString());
106 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
110 private static object Can_readChangedEvtKey = new object();
111 /// <summary>Notifies can_read property changed.
112 /// If <see cref="Efl.Io.Reader.CanRead"/> is <c>true</c> there is data to <see cref="Efl.Io.Reader.Read"/> without blocking/error. If <see cref="Efl.Io.Reader.CanRead"/> is <c>false</c>, <see cref="Efl.Io.Reader.Read"/> would either block or fail.
114 /// Note that usually this event is dispatched from inside <see cref="Efl.Io.Reader.Read"/>, thus before it returns.
116 public event EventHandler<Efl.Io.ReaderCan_readChangedEvt_Args> Can_readChangedEvt
120 string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED";
121 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_Can_readChangedEvt_delegate)) {
122 eventHandlers.AddHandler(Can_readChangedEvtKey , value);
124 Eina.Log.Error($"Error adding proxy for event {key}");
129 string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED";
130 if (remove_cpp_event_handler(key, this.evt_Can_readChangedEvt_delegate)) {
131 eventHandlers.RemoveHandler(Can_readChangedEvtKey , value);
133 Eina.Log.Error($"Error removing proxy for event {key}");
137 ///<summary>Method to raise event Can_readChangedEvt.</summary>
138 public void On_Can_readChangedEvt(Efl.Io.ReaderCan_readChangedEvt_Args e)
140 EventHandler<Efl.Io.ReaderCan_readChangedEvt_Args> evt;
142 evt = (EventHandler<Efl.Io.ReaderCan_readChangedEvt_Args>)eventHandlers[Can_readChangedEvtKey];
144 evt?.Invoke(this, e);
146 Efl.EventCb evt_Can_readChangedEvt_delegate;
147 private void on_Can_readChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
149 Efl.Io.ReaderCan_readChangedEvt_Args args = new Efl.Io.ReaderCan_readChangedEvt_Args();
150 args.arg = evt.Info != IntPtr.Zero;
152 On_Can_readChangedEvt(args);
153 } catch (Exception e) {
154 Eina.Log.Error(e.ToString());
155 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
159 private static object EosEvtKey = new object();
160 /// <summary>Notifies end of stream, when property is marked as true.
161 /// If this is used alongside with an <see cref="Efl.Io.Closer"/>, then it should be emitted before that call.
163 /// It should be emitted only once for an object unless it implements <see cref="Efl.Io.Positioner.Seek"/>.
165 /// The property <see cref="Efl.Io.Reader.CanRead"/> should change to <c>false</c> before this event is dispatched.
167 public event EventHandler EosEvt
171 string key = "_EFL_IO_READER_EVENT_EOS";
172 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_EosEvt_delegate)) {
173 eventHandlers.AddHandler(EosEvtKey , value);
175 Eina.Log.Error($"Error adding proxy for event {key}");
180 string key = "_EFL_IO_READER_EVENT_EOS";
181 if (remove_cpp_event_handler(key, this.evt_EosEvt_delegate)) {
182 eventHandlers.RemoveHandler(EosEvtKey , value);
184 Eina.Log.Error($"Error removing proxy for event {key}");
188 ///<summary>Method to raise event EosEvt.</summary>
189 public void On_EosEvt(EventArgs e)
193 evt = (EventHandler)eventHandlers[EosEvtKey];
195 evt?.Invoke(this, e);
197 Efl.EventCb evt_EosEvt_delegate;
198 private void on_EosEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
200 EventArgs args = EventArgs.Empty;
203 } catch (Exception e) {
204 Eina.Log.Error(e.ToString());
205 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
209 private static object Can_writeChangedEvtKey = new object();
210 /// <summary>Notifies can_write property changed.
211 /// If <see cref="Efl.Io.Writer.CanWrite"/> is <c>true</c> there is data to <see cref="Efl.Io.Writer.Write"/> without blocking/error. If <see cref="Efl.Io.Writer.CanWrite"/> is <c>false</c>, <see cref="Efl.Io.Writer.Write"/> would either block or fail.
213 /// Note that usually this event is dispatched from inside <see cref="Efl.Io.Writer.Write"/>, thus before it returns.
215 public event EventHandler<Efl.Io.WriterCan_writeChangedEvt_Args> Can_writeChangedEvt
219 string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED";
220 if (add_cpp_event_handler(efl.Libs.Efl, key, this.evt_Can_writeChangedEvt_delegate)) {
221 eventHandlers.AddHandler(Can_writeChangedEvtKey , value);
223 Eina.Log.Error($"Error adding proxy for event {key}");
228 string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED";
229 if (remove_cpp_event_handler(key, this.evt_Can_writeChangedEvt_delegate)) {
230 eventHandlers.RemoveHandler(Can_writeChangedEvtKey , value);
232 Eina.Log.Error($"Error removing proxy for event {key}");
236 ///<summary>Method to raise event Can_writeChangedEvt.</summary>
237 public void On_Can_writeChangedEvt(Efl.Io.WriterCan_writeChangedEvt_Args e)
239 EventHandler<Efl.Io.WriterCan_writeChangedEvt_Args> evt;
241 evt = (EventHandler<Efl.Io.WriterCan_writeChangedEvt_Args>)eventHandlers[Can_writeChangedEvtKey];
243 evt?.Invoke(this, e);
245 Efl.EventCb evt_Can_writeChangedEvt_delegate;
246 private void on_Can_writeChangedEvt_NativeCallback(System.IntPtr data, ref Efl.Event_StructInternal evt)
248 Efl.Io.WriterCan_writeChangedEvt_Args args = new Efl.Io.WriterCan_writeChangedEvt_Args();
249 args.arg = evt.Info != IntPtr.Zero;
251 On_Can_writeChangedEvt(args);
252 } catch (Exception e) {
253 Eina.Log.Error(e.ToString());
254 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
258 protected override void register_event_proxies()
260 base.register_event_proxies();
261 evt_ClosedEvt_delegate = new Efl.EventCb(on_ClosedEvt_NativeCallback);
262 evt_Can_readChangedEvt_delegate = new Efl.EventCb(on_Can_readChangedEvt_NativeCallback);
263 evt_EosEvt_delegate = new Efl.EventCb(on_EosEvt_NativeCallback);
264 evt_Can_writeChangedEvt_delegate = new Efl.EventCb(on_Can_writeChangedEvt_NativeCallback);
266 /// <summary></summary>
267 /// <returns>No description supplied.</returns>
268 virtual public System.IntPtr GetIndata() {
269 var _ret_var = Efl.ThreadIONativeInherit.efl_threadio_indata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
270 Eina.Error.RaiseIfUnhandledException();
273 /// <summary></summary>
274 /// <param name="data">No description supplied.</param>
275 /// <returns></returns>
276 virtual public void SetIndata( System.IntPtr data) {
277 Efl.ThreadIONativeInherit.efl_threadio_indata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data);
278 Eina.Error.RaiseIfUnhandledException();
280 /// <summary></summary>
281 /// <returns>No description supplied.</returns>
282 virtual public System.IntPtr GetOutdata() {
283 var _ret_var = Efl.ThreadIONativeInherit.efl_threadio_outdata_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
284 Eina.Error.RaiseIfUnhandledException();
287 /// <summary></summary>
288 /// <param name="data">No description supplied.</param>
289 /// <returns></returns>
290 virtual public void SetOutdata( System.IntPtr data) {
291 Efl.ThreadIONativeInherit.efl_threadio_outdata_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), data);
292 Eina.Error.RaiseIfUnhandledException();
294 /// <summary></summary>
295 /// <param name="func">No description supplied.</param>
296 /// <returns></returns>
297 virtual public void Call( EFlThreadIOCall func) {
298 GCHandle func_handle = GCHandle.Alloc(func);
299 Efl.ThreadIONativeInherit.efl_threadio_call_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle);
300 Eina.Error.RaiseIfUnhandledException();
302 /// <summary></summary>
303 /// <param name="func">No description supplied.</param>
304 /// <returns>No description supplied.</returns>
305 virtual public System.IntPtr CallSync( EFlThreadIOCallSync func) {
306 GCHandle func_handle = GCHandle.Alloc(func);
307 var _ret_var = Efl.ThreadIONativeInherit.efl_threadio_call_sync_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle);
308 Eina.Error.RaiseIfUnhandledException();
311 /// <summary>A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters.
312 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
314 /// It should not try and use "complex shell features" if you want the arg_count and arg_value set to be correct after setting the command string. For example none of:
316 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
318 /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings.</summary>
319 /// <returns></returns>
320 virtual public System.String GetCommand() {
321 var _ret_var = Efl.Core.CommandLineNativeInherit.efl_core_command_line_command_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
322 Eina.Error.RaiseIfUnhandledException();
325 /// <summary>Use an array to fill this object
326 /// Every element of a string is a argument.</summary>
327 /// <param name="array">An array where every array field is an argument</param>
328 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
329 virtual public bool SetCommandArray( Eina.Array< System.String> array) {
330 var _in_array = array.Handle;
332 array.OwnContent = false;
333 var _ret_var = Efl.Core.CommandLineNativeInherit.efl_core_command_line_command_array_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), _in_array);
334 Eina.Error.RaiseIfUnhandledException();
337 /// <summary>Use a string to fill this object
338 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
339 /// <param name="str">A command in form of a string</param>
340 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
341 virtual public bool SetCommandString( System.String str) {
342 var _ret_var = Efl.Core.CommandLineNativeInherit.efl_core_command_line_command_string_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), str);
343 Eina.Error.RaiseIfUnhandledException();
346 /// <summary>Get the accessor which enables access to each argument that got passed to this object.</summary>
347 /// <returns></returns>
348 virtual public Eina.Accessor< System.String> CommandAccess() {
349 var _ret_var = Efl.Core.CommandLineNativeInherit.efl_core_command_line_command_access_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
350 Eina.Error.RaiseIfUnhandledException();
351 return new Eina.Accessor< System.String>(_ret_var, false, false);
353 /// <summary>If true will notify object was closed.
355 /// <returns><c>true</c> if closed, <c>false</c> otherwise
357 virtual public bool GetClosed() {
358 var _ret_var = Efl.Io.CloserNativeInherit.efl_io_closer_closed_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
359 Eina.Error.RaiseIfUnhandledException();
362 /// <summary>If true will automatically close resources on exec() calls.
363 /// When using file descriptors this should set FD_CLOEXEC so they are not inherited by the processes (children or self) doing exec().
365 /// <returns><c>true</c> if close on exec(), <c>false</c> otherwise
367 virtual public bool GetCloseOnExec() {
368 var _ret_var = Efl.Io.CloserNativeInherit.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
369 Eina.Error.RaiseIfUnhandledException();
372 /// <summary>If <c>true</c>, will close on exec() call.
374 /// <param name="close_on_exec"><c>true</c> if close on exec(), <c>false</c> otherwise
376 /// <returns><c>true</c> if could set, <c>false</c> if not supported or failed.
378 virtual public bool SetCloseOnExec( bool close_on_exec) {
379 var _ret_var = Efl.Io.CloserNativeInherit.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_exec);
380 Eina.Error.RaiseIfUnhandledException();
383 /// <summary>If true will automatically close() on object invalidate.
384 /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not.
386 /// <returns><c>true</c> if close on invalidate, <c>false</c> otherwise
388 virtual public bool GetCloseOnInvalidate() {
389 var _ret_var = Efl.Io.CloserNativeInherit.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
390 Eina.Error.RaiseIfUnhandledException();
393 /// <summary>If true will automatically close() on object invalidate.
394 /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not.
396 /// <param name="close_on_invalidate"><c>true</c> if close on invalidate, <c>false</c> otherwise
398 /// <returns></returns>
399 virtual public void SetCloseOnInvalidate( bool close_on_invalidate) {
400 Efl.Io.CloserNativeInherit.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), close_on_invalidate);
401 Eina.Error.RaiseIfUnhandledException();
403 /// <summary>Closes the Input/Output object.
404 /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is to be defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts.
406 /// You can understand this method as close(2) libc function.
408 /// <returns>0 on succeed, a mapping of errno otherwise
410 virtual public Eina.Error Close() {
411 var _ret_var = Efl.Io.CloserNativeInherit.efl_io_closer_close_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
412 Eina.Error.RaiseIfUnhandledException();
415 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Reader.Read"/> can be called without blocking or failing.
417 /// <returns><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise
419 virtual public bool GetCanRead() {
420 var _ret_var = Efl.Io.ReaderNativeInherit.efl_io_reader_can_read_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
421 Eina.Error.RaiseIfUnhandledException();
424 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Reader.Read"/> can be called without blocking or failing.
426 /// <param name="can_read"><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise
428 /// <returns></returns>
429 virtual public void SetCanRead( bool can_read) {
430 Efl.Io.ReaderNativeInherit.efl_io_reader_can_read_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_read);
431 Eina.Error.RaiseIfUnhandledException();
433 /// <summary>If <c>true</c> will notify end of stream.
435 /// <returns><c>true</c> if end of stream, <c>false</c> otherwise
437 virtual public bool GetEos() {
438 var _ret_var = Efl.Io.ReaderNativeInherit.efl_io_reader_eos_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
439 Eina.Error.RaiseIfUnhandledException();
442 /// <summary>If <c>true</c> will notify end of stream.
444 /// <param name="is_eos"><c>true</c> if end of stream, <c>false</c> otherwise
446 /// <returns></returns>
447 virtual public void SetEos( bool is_eos) {
448 Efl.Io.ReaderNativeInherit.efl_io_reader_eos_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), is_eos);
449 Eina.Error.RaiseIfUnhandledException();
451 /// <summary>Reads data into a pre-allocated buffer.
452 /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is to be defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts.
454 /// You can understand this method as read(2) libc function.
456 /// <param name="rw_slice">Provides a pre-allocated memory to be filled up to rw_slice.len. It will be populated and the length will be set to the actually used amount of bytes, which can be smaller than the request.
458 /// <returns>0 on succeed, a mapping of errno otherwise
460 virtual public Eina.Error Read( ref Eina.RwSlice rw_slice) {
461 var _ret_var = Efl.Io.ReaderNativeInherit.efl_io_reader_read_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref rw_slice);
462 Eina.Error.RaiseIfUnhandledException();
465 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Writer.Write"/> can be called without blocking or failing.
467 /// <returns><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise
469 virtual public bool GetCanWrite() {
470 var _ret_var = Efl.Io.WriterNativeInherit.efl_io_writer_can_write_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
471 Eina.Error.RaiseIfUnhandledException();
474 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Writer.Write"/> can be called without blocking or failing.
476 /// <param name="can_write"><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise
478 /// <returns></returns>
479 virtual public void SetCanWrite( bool can_write) {
480 Efl.Io.WriterNativeInherit.efl_io_writer_can_write_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), can_write);
481 Eina.Error.RaiseIfUnhandledException();
483 /// <summary>Writes data from a pre-populated buffer.
484 /// This operation will be executed immediately and may or may not block the caller thread for some time. The details of blocking behavior is defined by the implementation and may be subject to other parameters such as non-blocking flags, maximum timeout or even retry attempts.
486 /// You can understand this method as write(2) libc function.
488 /// <param name="slice">Provides a pre-populated memory to be used up to slice.len. The returned slice will be adapted as length will be set to the actually used amount of bytes, which can be smaller than the request.
490 /// <param name="remaining">Convenience to output the remaining parts of slice that was not written. If the full slice was written, this will be a slice of zero-length.
492 /// <returns>0 on succeed, a mapping of errno otherwise
494 virtual public Eina.Error Write( ref Eina.Slice slice, ref Eina.Slice remaining) {
495 var _ret_var = Efl.Io.WriterNativeInherit.efl_io_writer_write_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), ref slice, ref remaining);
496 Eina.Error.RaiseIfUnhandledException();
499 /// <summary></summary>
500 /// <value>No description supplied.</value>
501 public System.IntPtr Indata {
502 get { return GetIndata(); }
503 set { SetIndata( value); }
505 /// <summary></summary>
506 /// <value>No description supplied.</value>
507 public System.IntPtr Outdata {
508 get { return GetOutdata(); }
509 set { SetOutdata( value); }
511 /// <summary>A commandline that encodes arguments in a command string. This command is unix shell-style, thus whitespace separates arguments unless escaped. Also a semi-colon ';', ampersand '&', pipe/bar '|', hash '#', bracket, square brace, brace character ('(', ')', '[', ']', '{', '}'), exclamation mark '!', backquote '`', greator or less than ('>' '<') character unless escaped or in quotes would cause args_count/value to not be generated properly, because it would force complex shell interpretation which will not be supported in evaluating the arg_count/value information, but the final shell may interpret this if this is executed via a command-line shell. To not be a complex shell command, it should be simple with paths, options and variable expansions, but nothing more complex involving the above unescaped characters.
512 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
514 /// It should not try and use "complex shell features" if you want the arg_count and arg_value set to be correct after setting the command string. For example none of:
516 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
518 /// If you set the command the arg_count/value property contents can change and be completely re-evaluated by parsing the command string into an argument array set along with interpreting escapes back into individual argument strings.</summary>
520 public System.String Command {
521 get { return GetCommand(); }
523 /// <summary>Use an array to fill this object
524 /// Every element of a string is a argument.</summary>
525 /// <value>An array where every array field is an argument</value>
526 public Eina.Array< System.String> CommandArray {
527 set { SetCommandArray( value); }
529 /// <summary>Use a string to fill this object
530 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
531 /// <value>A command in form of a string</value>
532 public System.String CommandString {
533 set { SetCommandString( value); }
535 /// <summary>If true will notify object was closed.
537 /// <value><c>true</c> if closed, <c>false</c> otherwise
540 get { return GetClosed(); }
542 /// <summary>If true will automatically close resources on exec() calls.
543 /// When using file descriptors this should set FD_CLOEXEC so they are not inherited by the processes (children or self) doing exec().
545 /// <value><c>true</c> if close on exec(), <c>false</c> otherwise
547 public bool CloseOnExec {
548 get { return GetCloseOnExec(); }
549 set { SetCloseOnExec( value); }
551 /// <summary>If true will automatically close() on object invalidate.
552 /// If the object was disconnected from its parent (including the main loop) without close, this property will state whenever it should be closed or not.
554 /// <value><c>true</c> if close on invalidate, <c>false</c> otherwise
556 public bool CloseOnInvalidate {
557 get { return GetCloseOnInvalidate(); }
558 set { SetCloseOnInvalidate( value); }
560 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Reader.Read"/> can be called without blocking or failing.
562 /// <value><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise
564 public bool CanRead {
565 get { return GetCanRead(); }
566 set { SetCanRead( value); }
568 /// <summary>If <c>true</c> will notify end of stream.
570 /// <value><c>true</c> if end of stream, <c>false</c> otherwise
573 get { return GetEos(); }
574 set { SetEos( value); }
576 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.Writer.Write"/> can be called without blocking or failing.
578 /// <value><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise
580 public bool CanWrite {
581 get { return GetCanWrite(); }
582 set { SetCanWrite( value); }
584 private static new IntPtr GetEflClassStatic()
586 return Efl.Thread.efl_thread_class_get();
589 public class ThreadNativeInherit : Efl.TaskNativeInherit{
590 public new static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore);
591 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
593 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
594 if (efl_threadio_indata_get_static_delegate == null)
595 efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get);
596 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_get_static_delegate)});
597 if (efl_threadio_indata_set_static_delegate == null)
598 efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set);
599 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_indata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_indata_set_static_delegate)});
600 if (efl_threadio_outdata_get_static_delegate == null)
601 efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get);
602 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_get"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_get_static_delegate)});
603 if (efl_threadio_outdata_set_static_delegate == null)
604 efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set);
605 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_outdata_set"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_outdata_set_static_delegate)});
606 if (efl_threadio_call_static_delegate == null)
607 efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call);
608 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_static_delegate)});
609 if (efl_threadio_call_sync_static_delegate == null)
610 efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync);
611 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_threadio_call_sync"), func = Marshal.GetFunctionPointerForDelegate(efl_threadio_call_sync_static_delegate)});
612 if (efl_core_command_line_command_get_static_delegate == null)
613 efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get);
614 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_get"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_get_static_delegate)});
615 if (efl_core_command_line_command_array_set_static_delegate == null)
616 efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set);
617 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_array_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_array_set_static_delegate)});
618 if (efl_core_command_line_command_string_set_static_delegate == null)
619 efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set);
620 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_string_set"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_string_set_static_delegate)});
621 if (efl_core_command_line_command_access_static_delegate == null)
622 efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access);
623 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_core_command_line_command_access"), func = Marshal.GetFunctionPointerForDelegate(efl_core_command_line_command_access_static_delegate)});
624 if (efl_io_closer_closed_get_static_delegate == null)
625 efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get);
626 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_closed_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_closed_get_static_delegate)});
627 if (efl_io_closer_close_on_exec_get_static_delegate == null)
628 efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get);
629 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_get_static_delegate)});
630 if (efl_io_closer_close_on_exec_set_static_delegate == null)
631 efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set);
632 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_exec_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_exec_set_static_delegate)});
633 if (efl_io_closer_close_on_invalidate_get_static_delegate == null)
634 efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get);
635 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_get_static_delegate)});
636 if (efl_io_closer_close_on_invalidate_set_static_delegate == null)
637 efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set);
638 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close_on_invalidate_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_on_invalidate_set_static_delegate)});
639 if (efl_io_closer_close_static_delegate == null)
640 efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close);
641 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_closer_close"), func = Marshal.GetFunctionPointerForDelegate(efl_io_closer_close_static_delegate)});
642 if (efl_io_reader_can_read_get_static_delegate == null)
643 efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get);
644 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_get_static_delegate)});
645 if (efl_io_reader_can_read_set_static_delegate == null)
646 efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set);
647 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_can_read_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_can_read_set_static_delegate)});
648 if (efl_io_reader_eos_get_static_delegate == null)
649 efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get);
650 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_get_static_delegate)});
651 if (efl_io_reader_eos_set_static_delegate == null)
652 efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set);
653 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_eos_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_eos_set_static_delegate)});
654 if (efl_io_reader_read_static_delegate == null)
655 efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read);
656 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_reader_read"), func = Marshal.GetFunctionPointerForDelegate(efl_io_reader_read_static_delegate)});
657 if (efl_io_writer_can_write_get_static_delegate == null)
658 efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get);
659 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_get"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_get_static_delegate)});
660 if (efl_io_writer_can_write_set_static_delegate == null)
661 efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set);
662 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_can_write_set"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_can_write_set_static_delegate)});
663 if (efl_io_writer_write_static_delegate == null)
664 efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write);
665 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_io_writer_write"), func = Marshal.GetFunctionPointerForDelegate(efl_io_writer_write_static_delegate)});
666 descs.AddRange(base.GetEoOps(type));
669 public override IntPtr GetEflClass()
671 return Efl.Thread.efl_thread_class_get();
673 public static new IntPtr GetEflClassStatic()
675 return Efl.Thread.efl_thread_class_get();
679 private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd);
682 public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj);
683 public static Efl.Eo.FunctionWrapper<efl_threadio_indata_get_api_delegate> efl_threadio_indata_get_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_indata_get_api_delegate>(_Module, "efl_threadio_indata_get");
684 private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd)
686 Eina.Log.Debug("function efl_threadio_indata_get was called");
687 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
688 if(wrapper != null) {
689 System.IntPtr _ret_var = default( System.IntPtr);
691 _ret_var = ((Thread)wrapper).GetIndata();
692 } catch (Exception e) {
693 Eina.Log.Warning($"Callback error: {e.ToString()}");
694 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
698 return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
701 private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate;
704 private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data);
707 public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data);
708 public static Efl.Eo.FunctionWrapper<efl_threadio_indata_set_api_delegate> efl_threadio_indata_set_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_indata_set_api_delegate>(_Module, "efl_threadio_indata_set");
709 private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data)
711 Eina.Log.Debug("function efl_threadio_indata_set was called");
712 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
713 if(wrapper != null) {
716 ((Thread)wrapper).SetIndata( data);
717 } catch (Exception e) {
718 Eina.Log.Warning($"Callback error: {e.ToString()}");
719 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
722 efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data);
725 private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate;
728 private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd);
731 public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj);
732 public static Efl.Eo.FunctionWrapper<efl_threadio_outdata_get_api_delegate> efl_threadio_outdata_get_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_outdata_get_api_delegate>(_Module, "efl_threadio_outdata_get");
733 private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd)
735 Eina.Log.Debug("function efl_threadio_outdata_get was called");
736 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
737 if(wrapper != null) {
738 System.IntPtr _ret_var = default( System.IntPtr);
740 _ret_var = ((Thread)wrapper).GetOutdata();
741 } catch (Exception e) {
742 Eina.Log.Warning($"Callback error: {e.ToString()}");
743 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
747 return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
750 private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate;
753 private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data);
756 public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data);
757 public static Efl.Eo.FunctionWrapper<efl_threadio_outdata_set_api_delegate> efl_threadio_outdata_set_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_outdata_set_api_delegate>(_Module, "efl_threadio_outdata_set");
758 private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data)
760 Eina.Log.Debug("function efl_threadio_outdata_set was called");
761 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
762 if(wrapper != null) {
765 ((Thread)wrapper).SetOutdata( data);
766 } catch (Exception e) {
767 Eina.Log.Warning($"Callback error: {e.ToString()}");
768 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
771 efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data);
774 private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate;
777 private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb);
780 public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb);
781 public static Efl.Eo.FunctionWrapper<efl_threadio_call_api_delegate> efl_threadio_call_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_call_api_delegate>(_Module, "efl_threadio_call");
782 private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb)
784 Eina.Log.Debug("function efl_threadio_call was called");
785 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
786 if(wrapper != null) {
787 EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb);
790 ((Thread)wrapper).Call( func_wrapper.ManagedCb);
791 } catch (Exception e) {
792 Eina.Log.Warning($"Callback error: {e.ToString()}");
793 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
796 efl_threadio_call_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb);
799 private static efl_threadio_call_delegate efl_threadio_call_static_delegate;
802 private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb);
805 public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb);
806 public static Efl.Eo.FunctionWrapper<efl_threadio_call_sync_api_delegate> efl_threadio_call_sync_ptr = new Efl.Eo.FunctionWrapper<efl_threadio_call_sync_api_delegate>(_Module, "efl_threadio_call_sync");
807 private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb)
809 Eina.Log.Debug("function efl_threadio_call_sync was called");
810 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
811 if(wrapper != null) {
812 EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb);
813 System.IntPtr _ret_var = default( System.IntPtr);
815 _ret_var = ((Thread)wrapper).CallSync( func_wrapper.ManagedCb);
816 } catch (Exception e) {
817 Eina.Log.Warning($"Callback error: {e.ToString()}");
818 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
822 return efl_threadio_call_sync_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), func_data, func, func_free_cb);
825 private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate;
828 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd);
831 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj);
832 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_get_api_delegate> efl_core_command_line_command_get_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_get_api_delegate>(_Module, "efl_core_command_line_command_get");
833 private static System.String command_get(System.IntPtr obj, System.IntPtr pd)
835 Eina.Log.Debug("function efl_core_command_line_command_get was called");
836 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
837 if(wrapper != null) {
838 System.String _ret_var = default( System.String);
840 _ret_var = ((Thread)wrapper).GetCommand();
841 } catch (Exception e) {
842 Eina.Log.Warning($"Callback error: {e.ToString()}");
843 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
847 return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
850 private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate;
853 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array);
856 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array);
857 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_array_set_api_delegate> efl_core_command_line_command_array_set_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_array_set_api_delegate>(_Module, "efl_core_command_line_command_array_set");
858 private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array)
860 Eina.Log.Debug("function efl_core_command_line_command_array_set was called");
861 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
862 if(wrapper != null) {
863 var _in_array = new Eina.Array< System.String>(array, true, true);
864 bool _ret_var = default(bool);
866 _ret_var = ((Thread)wrapper).SetCommandArray( _in_array);
867 } catch (Exception e) {
868 Eina.Log.Warning($"Callback error: {e.ToString()}");
869 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
873 return efl_core_command_line_command_array_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), array);
876 private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate;
879 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_core_command_line_command_string_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str);
882 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_core_command_line_command_string_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))] System.String str);
883 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_string_set_api_delegate> efl_core_command_line_command_string_set_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_string_set_api_delegate>(_Module, "efl_core_command_line_command_string_set");
884 private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str)
886 Eina.Log.Debug("function efl_core_command_line_command_string_set was called");
887 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
888 if(wrapper != null) {
889 bool _ret_var = default(bool);
891 _ret_var = ((Thread)wrapper).SetCommandString( str);
892 } catch (Exception e) {
893 Eina.Log.Warning($"Callback error: {e.ToString()}");
894 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
898 return efl_core_command_line_command_string_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), str);
901 private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate;
904 private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd);
907 public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj);
908 public static Efl.Eo.FunctionWrapper<efl_core_command_line_command_access_api_delegate> efl_core_command_line_command_access_ptr = new Efl.Eo.FunctionWrapper<efl_core_command_line_command_access_api_delegate>(_Module, "efl_core_command_line_command_access");
909 private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd)
911 Eina.Log.Debug("function efl_core_command_line_command_access was called");
912 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
913 if(wrapper != null) {
914 Eina.Accessor< System.String> _ret_var = default(Eina.Accessor< System.String>);
916 _ret_var = ((Thread)wrapper).CommandAccess();
917 } catch (Exception e) {
918 Eina.Log.Warning($"Callback error: {e.ToString()}");
919 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
921 return _ret_var.Handle;
923 return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
926 private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate;
929 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd);
932 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj);
933 public static Efl.Eo.FunctionWrapper<efl_io_closer_closed_get_api_delegate> efl_io_closer_closed_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_closed_get_api_delegate>(_Module, "efl_io_closer_closed_get");
934 private static bool closed_get(System.IntPtr obj, System.IntPtr pd)
936 Eina.Log.Debug("function efl_io_closer_closed_get was called");
937 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
938 if(wrapper != null) {
939 bool _ret_var = default(bool);
941 _ret_var = ((Thread)wrapper).GetClosed();
942 } catch (Exception e) {
943 Eina.Log.Warning($"Callback error: {e.ToString()}");
944 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
948 return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
951 private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate;
954 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd);
957 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj);
958 public static Efl.Eo.FunctionWrapper<efl_io_closer_close_on_exec_get_api_delegate> efl_io_closer_close_on_exec_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_close_on_exec_get_api_delegate>(_Module, "efl_io_closer_close_on_exec_get");
959 private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd)
961 Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called");
962 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
963 if(wrapper != null) {
964 bool _ret_var = default(bool);
966 _ret_var = ((Thread)wrapper).GetCloseOnExec();
967 } catch (Exception e) {
968 Eina.Log.Warning($"Callback error: {e.ToString()}");
969 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
973 return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
976 private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate;
979 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec);
982 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec);
983 public static Efl.Eo.FunctionWrapper<efl_io_closer_close_on_exec_set_api_delegate> efl_io_closer_close_on_exec_set_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_close_on_exec_set_api_delegate>(_Module, "efl_io_closer_close_on_exec_set");
984 private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec)
986 Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called");
987 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
988 if(wrapper != null) {
989 bool _ret_var = default(bool);
991 _ret_var = ((Thread)wrapper).SetCloseOnExec( close_on_exec);
992 } catch (Exception e) {
993 Eina.Log.Warning($"Callback error: {e.ToString()}");
994 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
998 return efl_io_closer_close_on_exec_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_exec);
1001 private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate;
1004 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd);
1007 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj);
1008 public static Efl.Eo.FunctionWrapper<efl_io_closer_close_on_invalidate_get_api_delegate> efl_io_closer_close_on_invalidate_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_close_on_invalidate_get_api_delegate>(_Module, "efl_io_closer_close_on_invalidate_get");
1009 private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd)
1011 Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called");
1012 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1013 if(wrapper != null) {
1014 bool _ret_var = default(bool);
1016 _ret_var = ((Thread)wrapper).GetCloseOnInvalidate();
1017 } catch (Exception e) {
1018 Eina.Log.Warning($"Callback error: {e.ToString()}");
1019 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1023 return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1026 private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate;
1029 private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate);
1032 public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate);
1033 public static Efl.Eo.FunctionWrapper<efl_io_closer_close_on_invalidate_set_api_delegate> efl_io_closer_close_on_invalidate_set_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_close_on_invalidate_set_api_delegate>(_Module, "efl_io_closer_close_on_invalidate_set");
1034 private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate)
1036 Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called");
1037 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1038 if(wrapper != null) {
1041 ((Thread)wrapper).SetCloseOnInvalidate( close_on_invalidate);
1042 } catch (Exception e) {
1043 Eina.Log.Warning($"Callback error: {e.ToString()}");
1044 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1047 efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), close_on_invalidate);
1050 private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate;
1053 private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd);
1056 public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj);
1057 public static Efl.Eo.FunctionWrapper<efl_io_closer_close_api_delegate> efl_io_closer_close_ptr = new Efl.Eo.FunctionWrapper<efl_io_closer_close_api_delegate>(_Module, "efl_io_closer_close");
1058 private static Eina.Error close(System.IntPtr obj, System.IntPtr pd)
1060 Eina.Log.Debug("function efl_io_closer_close was called");
1061 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1062 if(wrapper != null) {
1063 Eina.Error _ret_var = default( Eina.Error);
1065 _ret_var = ((Thread)wrapper).Close();
1066 } catch (Exception e) {
1067 Eina.Log.Warning($"Callback error: {e.ToString()}");
1068 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1072 return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1075 private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate;
1078 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd);
1081 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj);
1082 public static Efl.Eo.FunctionWrapper<efl_io_reader_can_read_get_api_delegate> efl_io_reader_can_read_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_reader_can_read_get_api_delegate>(_Module, "efl_io_reader_can_read_get");
1083 private static bool can_read_get(System.IntPtr obj, System.IntPtr pd)
1085 Eina.Log.Debug("function efl_io_reader_can_read_get was called");
1086 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1087 if(wrapper != null) {
1088 bool _ret_var = default(bool);
1090 _ret_var = ((Thread)wrapper).GetCanRead();
1091 } catch (Exception e) {
1092 Eina.Log.Warning($"Callback error: {e.ToString()}");
1093 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1097 return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1100 private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate;
1103 private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read);
1106 public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read);
1107 public static Efl.Eo.FunctionWrapper<efl_io_reader_can_read_set_api_delegate> efl_io_reader_can_read_set_ptr = new Efl.Eo.FunctionWrapper<efl_io_reader_can_read_set_api_delegate>(_Module, "efl_io_reader_can_read_set");
1108 private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read)
1110 Eina.Log.Debug("function efl_io_reader_can_read_set was called");
1111 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1112 if(wrapper != null) {
1115 ((Thread)wrapper).SetCanRead( can_read);
1116 } catch (Exception e) {
1117 Eina.Log.Warning($"Callback error: {e.ToString()}");
1118 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1121 efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read);
1124 private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate;
1127 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd);
1130 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj);
1131 public static Efl.Eo.FunctionWrapper<efl_io_reader_eos_get_api_delegate> efl_io_reader_eos_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_reader_eos_get_api_delegate>(_Module, "efl_io_reader_eos_get");
1132 private static bool eos_get(System.IntPtr obj, System.IntPtr pd)
1134 Eina.Log.Debug("function efl_io_reader_eos_get was called");
1135 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1136 if(wrapper != null) {
1137 bool _ret_var = default(bool);
1139 _ret_var = ((Thread)wrapper).GetEos();
1140 } catch (Exception e) {
1141 Eina.Log.Warning($"Callback error: {e.ToString()}");
1142 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1146 return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1149 private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate;
1152 private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos);
1155 public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos);
1156 public static Efl.Eo.FunctionWrapper<efl_io_reader_eos_set_api_delegate> efl_io_reader_eos_set_ptr = new Efl.Eo.FunctionWrapper<efl_io_reader_eos_set_api_delegate>(_Module, "efl_io_reader_eos_set");
1157 private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos)
1159 Eina.Log.Debug("function efl_io_reader_eos_set was called");
1160 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1161 if(wrapper != null) {
1164 ((Thread)wrapper).SetEos( is_eos);
1165 } catch (Exception e) {
1166 Eina.Log.Warning($"Callback error: {e.ToString()}");
1167 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1170 efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos);
1173 private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate;
1176 private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice);
1179 public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice);
1180 public static Efl.Eo.FunctionWrapper<efl_io_reader_read_api_delegate> efl_io_reader_read_ptr = new Efl.Eo.FunctionWrapper<efl_io_reader_read_api_delegate>(_Module, "efl_io_reader_read");
1181 private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice)
1183 Eina.Log.Debug("function efl_io_reader_read was called");
1184 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1185 if(wrapper != null) {
1186 Eina.Error _ret_var = default( Eina.Error);
1188 _ret_var = ((Thread)wrapper).Read( ref rw_slice);
1189 } catch (Exception e) {
1190 Eina.Log.Warning($"Callback error: {e.ToString()}");
1191 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1195 return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice);
1198 private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate;
1201 [return: MarshalAs(UnmanagedType.U1)] private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd);
1204 [return: MarshalAs(UnmanagedType.U1)] public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj);
1205 public static Efl.Eo.FunctionWrapper<efl_io_writer_can_write_get_api_delegate> efl_io_writer_can_write_get_ptr = new Efl.Eo.FunctionWrapper<efl_io_writer_can_write_get_api_delegate>(_Module, "efl_io_writer_can_write_get");
1206 private static bool can_write_get(System.IntPtr obj, System.IntPtr pd)
1208 Eina.Log.Debug("function efl_io_writer_can_write_get was called");
1209 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1210 if(wrapper != null) {
1211 bool _ret_var = default(bool);
1213 _ret_var = ((Thread)wrapper).GetCanWrite();
1214 } catch (Exception e) {
1215 Eina.Log.Warning($"Callback error: {e.ToString()}");
1216 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1220 return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1223 private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate;
1226 private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write);
1229 public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write);
1230 public static Efl.Eo.FunctionWrapper<efl_io_writer_can_write_set_api_delegate> efl_io_writer_can_write_set_ptr = new Efl.Eo.FunctionWrapper<efl_io_writer_can_write_set_api_delegate>(_Module, "efl_io_writer_can_write_set");
1231 private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write)
1233 Eina.Log.Debug("function efl_io_writer_can_write_set was called");
1234 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1235 if(wrapper != null) {
1238 ((Thread)wrapper).SetCanWrite( can_write);
1239 } catch (Exception e) {
1240 Eina.Log.Warning($"Callback error: {e.ToString()}");
1241 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1244 efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write);
1247 private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate;
1250 private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining);
1253 public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining);
1254 public static Efl.Eo.FunctionWrapper<efl_io_writer_write_api_delegate> efl_io_writer_write_ptr = new Efl.Eo.FunctionWrapper<efl_io_writer_write_api_delegate>(_Module, "efl_io_writer_write");
1255 private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining)
1257 Eina.Log.Debug("function efl_io_writer_write was called");
1258 Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
1259 if(wrapper != null) {
1260 remaining = default(Eina.Slice); Eina.Error _ret_var = default( Eina.Error);
1262 _ret_var = ((Thread)wrapper).Write( ref slice, ref remaining);
1263 } catch (Exception e) {
1264 Eina.Log.Warning($"Callback error: {e.ToString()}");
1265 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1269 return efl_io_writer_write_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref slice, ref remaining);
1272 private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate;