1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
10 [Efl.Thread.NativeMethods]
11 [Efl.Eo.BindingEntity]
12 public class Thread : Efl.Task, Efl.IThreadIO, Efl.Core.ICommandLine, Efl.Io.ICloser, Efl.Io.IReader, Efl.Io.IWriter
14 ///<summary>Pointer to the native class description.</summary>
15 public override System.IntPtr NativeClass
19 if (((object)this).GetType() == typeof(Thread))
21 return GetEflClassStatic();
25 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
30 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
31 efl_thread_class_get();
32 /// <summary>Initializes a new instance of the <see cref="Thread"/> class.</summary>
33 /// <param name="parent">Parent instance.</param>
34 public Thread(Efl.Object parent= null
35 ) : base(efl_thread_class_get(), parent)
37 FinishInstantiation();
40 /// <summary>Constructor to be used when objects are expected to be constructed from native code.</summary>
41 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
42 protected Thread(ConstructingHandle ch) : base(ch)
46 /// <summary>Initializes a new instance of the <see cref="Thread"/> class.
47 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
48 /// <param name="wh">The native pointer to be wrapped.</param>
49 protected Thread(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
53 /// <summary>Initializes a new instance of the <see cref="Thread"/> class.
54 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
55 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
56 /// <param name="parent">The Efl.Object parent of this instance.</param>
57 protected Thread(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
61 /// <summary>Notifies closed, when property is marked as true
62 /// (Since EFL 1.22)</summary>
63 public event EventHandler ClosedEvt
67 lock (eflBindingEventLock)
69 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
71 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
74 EventArgs args = EventArgs.Empty;
77 value?.Invoke(obj, args);
81 Eina.Log.Error(e.ToString());
82 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
87 string key = "_EFL_IO_CLOSER_EVENT_CLOSED";
88 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
94 lock (eflBindingEventLock)
96 string key = "_EFL_IO_CLOSER_EVENT_CLOSED";
97 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
101 ///<summary>Method to raise event ClosedEvt.</summary>
102 public void OnClosedEvt(EventArgs e)
104 var key = "_EFL_IO_CLOSER_EVENT_CLOSED";
105 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
106 if (desc == IntPtr.Zero)
108 Eina.Log.Error($"Failed to get native event {key}");
112 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
114 /// <summary>Notifies can_read property changed.
115 /// If <see cref="Efl.Io.IReader.CanRead"/> is <c>true</c> there is data to <see cref="Efl.Io.IReader.Read"/> without blocking/error. If <see cref="Efl.Io.IReader.CanRead"/> is <c>false</c>, <see cref="Efl.Io.IReader.Read"/> would either block or fail.
117 /// Note that usually this event is dispatched from inside <see cref="Efl.Io.IReader.Read"/>, thus before it returns.
118 /// (Since EFL 1.22)</summary>
119 public event EventHandler<Efl.Io.IReaderCanReadChangedEvt_Args> CanReadChangedEvt
123 lock (eflBindingEventLock)
125 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
127 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
130 Efl.Io.IReaderCanReadChangedEvt_Args args = new Efl.Io.IReaderCanReadChangedEvt_Args();
131 args.arg = Marshal.ReadByte(evt.Info) != 0;
134 value?.Invoke(obj, args);
138 Eina.Log.Error(e.ToString());
139 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
144 string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED";
145 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
151 lock (eflBindingEventLock)
153 string key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED";
154 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
158 ///<summary>Method to raise event CanReadChangedEvt.</summary>
159 public void OnCanReadChangedEvt(Efl.Io.IReaderCanReadChangedEvt_Args e)
161 var key = "_EFL_IO_READER_EVENT_CAN_READ_CHANGED";
162 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
163 if (desc == IntPtr.Zero)
165 Eina.Log.Error($"Failed to get native event {key}");
169 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
172 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
176 Marshal.FreeHGlobal(info);
179 /// <summary>Notifies end of stream, when property is marked as true.
180 /// If this is used alongside with an <see cref="Efl.Io.ICloser"/>, then it should be emitted before that call.
182 /// It should be emitted only once for an object unless it implements <see cref="Efl.Io.IPositioner.Seek"/>.
184 /// The property <see cref="Efl.Io.IReader.CanRead"/> should change to <c>false</c> before this event is dispatched.
185 /// (Since EFL 1.22)</summary>
186 public event EventHandler EosEvt
190 lock (eflBindingEventLock)
192 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
194 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
197 EventArgs args = EventArgs.Empty;
200 value?.Invoke(obj, args);
204 Eina.Log.Error(e.ToString());
205 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
210 string key = "_EFL_IO_READER_EVENT_EOS";
211 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
217 lock (eflBindingEventLock)
219 string key = "_EFL_IO_READER_EVENT_EOS";
220 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
224 ///<summary>Method to raise event EosEvt.</summary>
225 public void OnEosEvt(EventArgs e)
227 var key = "_EFL_IO_READER_EVENT_EOS";
228 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
229 if (desc == IntPtr.Zero)
231 Eina.Log.Error($"Failed to get native event {key}");
235 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, IntPtr.Zero);
237 /// <summary>Notifies can_write property changed.
238 /// If <see cref="Efl.Io.IWriter.CanWrite"/> is <c>true</c> there is data to <see cref="Efl.Io.IWriter.Write"/> without blocking/error. If <see cref="Efl.Io.IWriter.CanWrite"/> is <c>false</c>, <see cref="Efl.Io.IWriter.Write"/> would either block or fail.
240 /// Note that usually this event is dispatched from inside <see cref="Efl.Io.IWriter.Write"/>, thus before it returns.
241 /// (Since EFL 1.22)</summary>
242 public event EventHandler<Efl.Io.IWriterCanWriteChangedEvt_Args> CanWriteChangedEvt
246 lock (eflBindingEventLock)
248 Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
250 var obj = Efl.Eo.Globals.WrapperSupervisorPtrToManaged(data).Target;
253 Efl.Io.IWriterCanWriteChangedEvt_Args args = new Efl.Io.IWriterCanWriteChangedEvt_Args();
254 args.arg = Marshal.ReadByte(evt.Info) != 0;
257 value?.Invoke(obj, args);
261 Eina.Log.Error(e.ToString());
262 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
267 string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED";
268 AddNativeEventHandler(efl.Libs.Ecore, key, callerCb, value);
274 lock (eflBindingEventLock)
276 string key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED";
277 RemoveNativeEventHandler(efl.Libs.Ecore, key, value);
281 ///<summary>Method to raise event CanWriteChangedEvt.</summary>
282 public void OnCanWriteChangedEvt(Efl.Io.IWriterCanWriteChangedEvt_Args e)
284 var key = "_EFL_IO_WRITER_EVENT_CAN_WRITE_CHANGED";
285 IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Ecore, key);
286 if (desc == IntPtr.Zero)
288 Eina.Log.Error($"Failed to get native event {key}");
292 IntPtr info = Eina.PrimitiveConversion.ManagedToPointerAlloc(e.arg ? (byte) 1 : (byte) 0);
295 Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
299 Marshal.FreeHGlobal(info);
302 /// <returns>No description supplied.</returns>
303 virtual public System.IntPtr GetIndata() {
304 var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
305 Eina.Error.RaiseIfUnhandledException();
308 /// <param name="data">No description supplied.</param>
309 virtual public void SetIndata(System.IntPtr data) {
310 Efl.IThreadIOConcrete.NativeMethods.efl_threadio_indata_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),data);
311 Eina.Error.RaiseIfUnhandledException();
313 /// <returns>No description supplied.</returns>
314 virtual public System.IntPtr GetOutdata() {
315 var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
316 Eina.Error.RaiseIfUnhandledException();
319 /// <param name="data">No description supplied.</param>
320 virtual public void SetOutdata(System.IntPtr data) {
321 Efl.IThreadIOConcrete.NativeMethods.efl_threadio_outdata_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),data);
322 Eina.Error.RaiseIfUnhandledException();
324 /// <param name="func">No description supplied.</param>
325 virtual public void Call(EFlThreadIOCall func) {
326 GCHandle func_handle = GCHandle.Alloc(func);
327 Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallWrapper.Cb, Efl.Eo.Globals.free_gchandle);
328 Eina.Error.RaiseIfUnhandledException();
330 /// <param name="func">No description supplied.</param>
331 /// <returns>No description supplied.</returns>
332 virtual public System.IntPtr CallSync(EFlThreadIOCallSync func) {
333 GCHandle func_handle = GCHandle.Alloc(func);
334 var _ret_var = Efl.IThreadIOConcrete.NativeMethods.efl_threadio_call_sync_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),GCHandle.ToIntPtr(func_handle), EFlThreadIOCallSyncWrapper.Cb, Efl.Eo.Globals.free_gchandle);
335 Eina.Error.RaiseIfUnhandledException();
338 /// <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.
339 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
341 /// 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:
343 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
345 /// 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>
346 virtual public System.String GetCommand() {
347 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
348 Eina.Error.RaiseIfUnhandledException();
351 /// <summary>Use an array to fill this object
352 /// Every element of a string is a argument.</summary>
353 /// <param name="array">An array where every array field is an argument</param>
354 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
355 virtual public bool SetCommandArray(Eina.Array<Eina.Stringshare> array) {
356 var _in_array = array.Handle;
358 array.OwnContent = false;
359 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_array_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),_in_array);
360 Eina.Error.RaiseIfUnhandledException();
363 /// <summary>Use a string to fill this object
364 /// The string will be split at every unescaped ' ', every resulting substring will be a new argument to the command line.</summary>
365 /// <param name="str">A command in form of a string</param>
366 /// <returns>On success <c>true</c>, <c>false</c> otherwise</returns>
367 virtual public bool SetCommandString(System.String str) {
368 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_string_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),str);
369 Eina.Error.RaiseIfUnhandledException();
372 /// <summary>Get the accessor which enables access to each argument that got passed to this object.</summary>
373 virtual public Eina.Accessor<Eina.Stringshare> CommandAccess() {
374 var _ret_var = Efl.Core.ICommandLineConcrete.NativeMethods.efl_core_command_line_command_access_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
375 Eina.Error.RaiseIfUnhandledException();
376 return new Eina.Accessor<Eina.Stringshare>(_ret_var, false);
378 /// <summary>If true will notify object was closed.
379 /// (Since EFL 1.22)</summary>
380 /// <returns><c>true</c> if closed, <c>false</c> otherwise</returns>
381 virtual public bool GetClosed() {
382 var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_closed_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
383 Eina.Error.RaiseIfUnhandledException();
386 /// <summary>If true will automatically close resources on exec() calls.
387 /// When using file descriptors this should set FD_CLOEXEC so they are not inherited by the processes (children or self) doing exec().
388 /// (Since EFL 1.22)</summary>
389 /// <returns><c>true</c> if close on exec(), <c>false</c> otherwise</returns>
390 virtual public bool GetCloseOnExec() {
391 var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
392 Eina.Error.RaiseIfUnhandledException();
395 /// <summary>If <c>true</c>, will close on exec() call.
396 /// (Since EFL 1.22)</summary>
397 /// <param name="close_on_exec"><c>true</c> if close on exec(), <c>false</c> otherwise</param>
398 /// <returns><c>true</c> if could set, <c>false</c> if not supported or failed.</returns>
399 virtual public bool SetCloseOnExec(bool close_on_exec) {
400 var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_exec_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),close_on_exec);
401 Eina.Error.RaiseIfUnhandledException();
404 /// <summary>If true will automatically close() on object invalidate.
405 /// 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.
406 /// (Since EFL 1.22)</summary>
407 /// <returns><c>true</c> if close on invalidate, <c>false</c> otherwise</returns>
408 virtual public bool GetCloseOnInvalidate() {
409 var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
410 Eina.Error.RaiseIfUnhandledException();
413 /// <summary>If true will automatically close() on object invalidate.
414 /// 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.
415 /// (Since EFL 1.22)</summary>
416 /// <param name="close_on_invalidate"><c>true</c> if close on invalidate, <c>false</c> otherwise</param>
417 virtual public void SetCloseOnInvalidate(bool close_on_invalidate) {
418 Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_on_invalidate_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),close_on_invalidate);
419 Eina.Error.RaiseIfUnhandledException();
421 /// <summary>Closes the Input/Output object.
422 /// 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.
424 /// You can understand this method as close(2) libc function.
425 /// (Since EFL 1.22)</summary>
426 /// <returns>0 on succeed, a mapping of errno otherwise</returns>
427 virtual public Eina.Error Close() {
428 var _ret_var = Efl.Io.ICloserConcrete.NativeMethods.efl_io_closer_close_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
429 Eina.Error.RaiseIfUnhandledException();
432 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IReader.Read"/> can be called without blocking or failing.
433 /// (Since EFL 1.22)</summary>
434 /// <returns><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise</returns>
435 virtual public bool GetCanRead() {
436 var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
437 Eina.Error.RaiseIfUnhandledException();
440 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IReader.Read"/> can be called without blocking or failing.
441 /// (Since EFL 1.22)</summary>
442 /// <param name="can_read"><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise</param>
443 virtual public void SetCanRead(bool can_read) {
444 Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_can_read_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),can_read);
445 Eina.Error.RaiseIfUnhandledException();
447 /// <summary>If <c>true</c> will notify end of stream.
448 /// (Since EFL 1.22)</summary>
449 /// <returns><c>true</c> if end of stream, <c>false</c> otherwise</returns>
450 virtual public bool GetEos() {
451 var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
452 Eina.Error.RaiseIfUnhandledException();
455 /// <summary>If <c>true</c> will notify end of stream.
456 /// (Since EFL 1.22)</summary>
457 /// <param name="is_eos"><c>true</c> if end of stream, <c>false</c> otherwise</param>
458 virtual public void SetEos(bool is_eos) {
459 Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_eos_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),is_eos);
460 Eina.Error.RaiseIfUnhandledException();
462 /// <summary>Reads data into a pre-allocated buffer.
463 /// 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.
465 /// You can understand this method as read(2) libc function.
466 /// (Since EFL 1.22)</summary>
467 /// <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.</param>
468 /// <returns>0 on succeed, a mapping of errno otherwise</returns>
469 virtual public Eina.Error Read(ref Eina.RwSlice rw_slice) {
470 var _ret_var = Efl.Io.IReaderConcrete.NativeMethods.efl_io_reader_read_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ref rw_slice);
471 Eina.Error.RaiseIfUnhandledException();
474 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IWriter.Write"/> can be called without blocking or failing.
475 /// (Since EFL 1.22)</summary>
476 /// <returns><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise</returns>
477 virtual public bool GetCanWrite() {
478 var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
479 Eina.Error.RaiseIfUnhandledException();
482 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IWriter.Write"/> can be called without blocking or failing.
483 /// (Since EFL 1.22)</summary>
484 /// <param name="can_write"><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise</param>
485 virtual public void SetCanWrite(bool can_write) {
486 Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_can_write_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),can_write);
487 Eina.Error.RaiseIfUnhandledException();
489 /// <summary>Writes data from a pre-populated buffer.
490 /// 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.
492 /// You can understand this method as write(2) libc function.
493 /// (Since EFL 1.22)</summary>
494 /// <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.</param>
495 /// <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.</param>
496 /// <returns>0 on succeed, a mapping of errno otherwise</returns>
497 virtual public Eina.Error Write(ref Eina.Slice slice, ref Eina.Slice remaining) {
498 var _ret_var = Efl.Io.IWriterConcrete.NativeMethods.efl_io_writer_write_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),ref slice, ref remaining);
499 Eina.Error.RaiseIfUnhandledException();
502 /// <value>No description supplied.</value>
503 public System.IntPtr Indata {
504 get { return GetIndata(); }
505 set { SetIndata(value); }
507 /// <value>No description supplied.</value>
508 public System.IntPtr Outdata {
509 get { return GetOutdata(); }
510 set { SetOutdata(value); }
512 /// <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.
513 /// "cat -option /path/file" "cat 'quoted argument'" "cat ~/path/escaped argument" "/bin/cat escaped argument <c>VARIABLE</c>" etc.
515 /// 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:
517 /// "VAR=x /bin/command && /bin/othercommand >& /dev/null" "VAR=x /bin/command `/bin/othercommand` | /bin/cmd2 && cmd3 &" etc.
519 /// 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<Eina.Stringshare> 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.
536 /// (Since EFL 1.22)</summary>
537 /// <value><c>true</c> if closed, <c>false</c> otherwise</value>
539 get { return GetClosed(); }
541 /// <summary>If true will automatically close resources on exec() calls.
542 /// When using file descriptors this should set FD_CLOEXEC so they are not inherited by the processes (children or self) doing exec().
543 /// (Since EFL 1.22)</summary>
544 /// <value><c>true</c> if close on exec(), <c>false</c> otherwise</value>
545 public bool CloseOnExec {
546 get { return GetCloseOnExec(); }
547 set { SetCloseOnExec(value); }
549 /// <summary>If true will automatically close() on object invalidate.
550 /// 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.
551 /// (Since EFL 1.22)</summary>
552 /// <value><c>true</c> if close on invalidate, <c>false</c> otherwise</value>
553 public bool CloseOnInvalidate {
554 get { return GetCloseOnInvalidate(); }
555 set { SetCloseOnInvalidate(value); }
557 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IReader.Read"/> can be called without blocking or failing.
558 /// (Since EFL 1.22)</summary>
559 /// <value><c>true</c> if it can be read without blocking or failing, <c>false</c> otherwise</value>
560 public bool CanRead {
561 get { return GetCanRead(); }
562 set { SetCanRead(value); }
564 /// <summary>If <c>true</c> will notify end of stream.
565 /// (Since EFL 1.22)</summary>
566 /// <value><c>true</c> if end of stream, <c>false</c> otherwise</value>
568 get { return GetEos(); }
569 set { SetEos(value); }
571 /// <summary>If <c>true</c> will notify <see cref="Efl.Io.IWriter.Write"/> can be called without blocking or failing.
572 /// (Since EFL 1.22)</summary>
573 /// <value><c>true</c> if it can be written without blocking or failure, <c>false</c> otherwise</value>
574 public bool CanWrite {
575 get { return GetCanWrite(); }
576 set { SetCanWrite(value); }
578 private static IntPtr GetEflClassStatic()
580 return Efl.Thread.efl_thread_class_get();
582 /// <summary>Wrapper for native methods and virtual method delegates.
583 /// For internal use by generated code only.</summary>
584 public new class NativeMethods : Efl.Task.NativeMethods
586 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore);
587 /// <summary>Gets the list of Eo operations to override.</summary>
588 /// <returns>The list of Eo operations to be overload.</returns>
589 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
591 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
592 var methods = Efl.Eo.Globals.GetUserMethods(type);
594 if (efl_threadio_indata_get_static_delegate == null)
596 efl_threadio_indata_get_static_delegate = new efl_threadio_indata_get_delegate(indata_get);
599 if (methods.FirstOrDefault(m => m.Name == "GetIndata") != null)
601 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) });
604 if (efl_threadio_indata_set_static_delegate == null)
606 efl_threadio_indata_set_static_delegate = new efl_threadio_indata_set_delegate(indata_set);
609 if (methods.FirstOrDefault(m => m.Name == "SetIndata") != null)
611 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) });
614 if (efl_threadio_outdata_get_static_delegate == null)
616 efl_threadio_outdata_get_static_delegate = new efl_threadio_outdata_get_delegate(outdata_get);
619 if (methods.FirstOrDefault(m => m.Name == "GetOutdata") != null)
621 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) });
624 if (efl_threadio_outdata_set_static_delegate == null)
626 efl_threadio_outdata_set_static_delegate = new efl_threadio_outdata_set_delegate(outdata_set);
629 if (methods.FirstOrDefault(m => m.Name == "SetOutdata") != null)
631 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) });
634 if (efl_threadio_call_static_delegate == null)
636 efl_threadio_call_static_delegate = new efl_threadio_call_delegate(call);
639 if (methods.FirstOrDefault(m => m.Name == "Call") != null)
641 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) });
644 if (efl_threadio_call_sync_static_delegate == null)
646 efl_threadio_call_sync_static_delegate = new efl_threadio_call_sync_delegate(call_sync);
649 if (methods.FirstOrDefault(m => m.Name == "CallSync") != null)
651 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) });
654 if (efl_core_command_line_command_get_static_delegate == null)
656 efl_core_command_line_command_get_static_delegate = new efl_core_command_line_command_get_delegate(command_get);
659 if (methods.FirstOrDefault(m => m.Name == "GetCommand") != null)
661 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) });
664 if (efl_core_command_line_command_array_set_static_delegate == null)
666 efl_core_command_line_command_array_set_static_delegate = new efl_core_command_line_command_array_set_delegate(command_array_set);
669 if (methods.FirstOrDefault(m => m.Name == "SetCommandArray") != null)
671 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) });
674 if (efl_core_command_line_command_string_set_static_delegate == null)
676 efl_core_command_line_command_string_set_static_delegate = new efl_core_command_line_command_string_set_delegate(command_string_set);
679 if (methods.FirstOrDefault(m => m.Name == "SetCommandString") != null)
681 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) });
684 if (efl_core_command_line_command_access_static_delegate == null)
686 efl_core_command_line_command_access_static_delegate = new efl_core_command_line_command_access_delegate(command_access);
689 if (methods.FirstOrDefault(m => m.Name == "CommandAccess") != null)
691 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) });
694 if (efl_io_closer_closed_get_static_delegate == null)
696 efl_io_closer_closed_get_static_delegate = new efl_io_closer_closed_get_delegate(closed_get);
699 if (methods.FirstOrDefault(m => m.Name == "GetClosed") != null)
701 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) });
704 if (efl_io_closer_close_on_exec_get_static_delegate == null)
706 efl_io_closer_close_on_exec_get_static_delegate = new efl_io_closer_close_on_exec_get_delegate(close_on_exec_get);
709 if (methods.FirstOrDefault(m => m.Name == "GetCloseOnExec") != null)
711 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) });
714 if (efl_io_closer_close_on_exec_set_static_delegate == null)
716 efl_io_closer_close_on_exec_set_static_delegate = new efl_io_closer_close_on_exec_set_delegate(close_on_exec_set);
719 if (methods.FirstOrDefault(m => m.Name == "SetCloseOnExec") != null)
721 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) });
724 if (efl_io_closer_close_on_invalidate_get_static_delegate == null)
726 efl_io_closer_close_on_invalidate_get_static_delegate = new efl_io_closer_close_on_invalidate_get_delegate(close_on_invalidate_get);
729 if (methods.FirstOrDefault(m => m.Name == "GetCloseOnInvalidate") != null)
731 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) });
734 if (efl_io_closer_close_on_invalidate_set_static_delegate == null)
736 efl_io_closer_close_on_invalidate_set_static_delegate = new efl_io_closer_close_on_invalidate_set_delegate(close_on_invalidate_set);
739 if (methods.FirstOrDefault(m => m.Name == "SetCloseOnInvalidate") != null)
741 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) });
744 if (efl_io_closer_close_static_delegate == null)
746 efl_io_closer_close_static_delegate = new efl_io_closer_close_delegate(close);
749 if (methods.FirstOrDefault(m => m.Name == "Close") != null)
751 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) });
754 if (efl_io_reader_can_read_get_static_delegate == null)
756 efl_io_reader_can_read_get_static_delegate = new efl_io_reader_can_read_get_delegate(can_read_get);
759 if (methods.FirstOrDefault(m => m.Name == "GetCanRead") != null)
761 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) });
764 if (efl_io_reader_can_read_set_static_delegate == null)
766 efl_io_reader_can_read_set_static_delegate = new efl_io_reader_can_read_set_delegate(can_read_set);
769 if (methods.FirstOrDefault(m => m.Name == "SetCanRead") != null)
771 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) });
774 if (efl_io_reader_eos_get_static_delegate == null)
776 efl_io_reader_eos_get_static_delegate = new efl_io_reader_eos_get_delegate(eos_get);
779 if (methods.FirstOrDefault(m => m.Name == "GetEos") != null)
781 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) });
784 if (efl_io_reader_eos_set_static_delegate == null)
786 efl_io_reader_eos_set_static_delegate = new efl_io_reader_eos_set_delegate(eos_set);
789 if (methods.FirstOrDefault(m => m.Name == "SetEos") != null)
791 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) });
794 if (efl_io_reader_read_static_delegate == null)
796 efl_io_reader_read_static_delegate = new efl_io_reader_read_delegate(read);
799 if (methods.FirstOrDefault(m => m.Name == "Read") != null)
801 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) });
804 if (efl_io_writer_can_write_get_static_delegate == null)
806 efl_io_writer_can_write_get_static_delegate = new efl_io_writer_can_write_get_delegate(can_write_get);
809 if (methods.FirstOrDefault(m => m.Name == "GetCanWrite") != null)
811 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) });
814 if (efl_io_writer_can_write_set_static_delegate == null)
816 efl_io_writer_can_write_set_static_delegate = new efl_io_writer_can_write_set_delegate(can_write_set);
819 if (methods.FirstOrDefault(m => m.Name == "SetCanWrite") != null)
821 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) });
824 if (efl_io_writer_write_static_delegate == null)
826 efl_io_writer_write_static_delegate = new efl_io_writer_write_delegate(write);
829 if (methods.FirstOrDefault(m => m.Name == "Write") != null)
831 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) });
834 descs.AddRange(base.GetEoOps(type));
837 /// <summary>Returns the Eo class for the native methods of this class.</summary>
838 /// <returns>The native class pointer.</returns>
839 public override IntPtr GetEflClass()
841 return Efl.Thread.efl_thread_class_get();
844 #pragma warning disable CA1707, CS1591, SA1300, SA1600
847 private delegate System.IntPtr efl_threadio_indata_get_delegate(System.IntPtr obj, System.IntPtr pd);
850 public delegate System.IntPtr efl_threadio_indata_get_api_delegate(System.IntPtr obj);
852 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");
854 private static System.IntPtr indata_get(System.IntPtr obj, System.IntPtr pd)
856 Eina.Log.Debug("function efl_threadio_indata_get was called");
857 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
860 System.IntPtr _ret_var = default(System.IntPtr);
863 _ret_var = ((Thread)ws.Target).GetIndata();
867 Eina.Log.Warning($"Callback error: {e.ToString()}");
868 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
876 return efl_threadio_indata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
880 private static efl_threadio_indata_get_delegate efl_threadio_indata_get_static_delegate;
883 private delegate void efl_threadio_indata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data);
886 public delegate void efl_threadio_indata_set_api_delegate(System.IntPtr obj, System.IntPtr data);
888 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");
890 private static void indata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data)
892 Eina.Log.Debug("function efl_threadio_indata_set was called");
893 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
899 ((Thread)ws.Target).SetIndata(data);
903 Eina.Log.Warning($"Callback error: {e.ToString()}");
904 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
911 efl_threadio_indata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data);
915 private static efl_threadio_indata_set_delegate efl_threadio_indata_set_static_delegate;
918 private delegate System.IntPtr efl_threadio_outdata_get_delegate(System.IntPtr obj, System.IntPtr pd);
921 public delegate System.IntPtr efl_threadio_outdata_get_api_delegate(System.IntPtr obj);
923 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");
925 private static System.IntPtr outdata_get(System.IntPtr obj, System.IntPtr pd)
927 Eina.Log.Debug("function efl_threadio_outdata_get was called");
928 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
931 System.IntPtr _ret_var = default(System.IntPtr);
934 _ret_var = ((Thread)ws.Target).GetOutdata();
938 Eina.Log.Warning($"Callback error: {e.ToString()}");
939 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
947 return efl_threadio_outdata_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
951 private static efl_threadio_outdata_get_delegate efl_threadio_outdata_get_static_delegate;
954 private delegate void efl_threadio_outdata_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr data);
957 public delegate void efl_threadio_outdata_set_api_delegate(System.IntPtr obj, System.IntPtr data);
959 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");
961 private static void outdata_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr data)
963 Eina.Log.Debug("function efl_threadio_outdata_set was called");
964 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
970 ((Thread)ws.Target).SetOutdata(data);
974 Eina.Log.Warning($"Callback error: {e.ToString()}");
975 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
982 efl_threadio_outdata_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), data);
986 private static efl_threadio_outdata_set_delegate efl_threadio_outdata_set_static_delegate;
989 private delegate void efl_threadio_call_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb);
992 public delegate void efl_threadio_call_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb);
994 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");
996 private static void call(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallInternal func, EinaFreeCb func_free_cb)
998 Eina.Log.Debug("function efl_threadio_call was called");
999 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1002 EFlThreadIOCallWrapper func_wrapper = new EFlThreadIOCallWrapper(func, func_data, func_free_cb);
1006 ((Thread)ws.Target).Call(func_wrapper.ManagedCb);
1010 Eina.Log.Warning($"Callback error: {e.ToString()}");
1011 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1018 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);
1022 private static efl_threadio_call_delegate efl_threadio_call_static_delegate;
1025 private delegate System.IntPtr efl_threadio_call_sync_delegate(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb);
1028 public delegate System.IntPtr efl_threadio_call_sync_api_delegate(System.IntPtr obj, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb);
1030 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");
1032 private static System.IntPtr call_sync(System.IntPtr obj, System.IntPtr pd, IntPtr func_data, EFlThreadIOCallSyncInternal func, EinaFreeCb func_free_cb)
1034 Eina.Log.Debug("function efl_threadio_call_sync was called");
1035 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1038 EFlThreadIOCallSyncWrapper func_wrapper = new EFlThreadIOCallSyncWrapper(func, func_data, func_free_cb);
1039 System.IntPtr _ret_var = default(System.IntPtr);
1042 _ret_var = ((Thread)ws.Target).CallSync(func_wrapper.ManagedCb);
1046 Eina.Log.Warning($"Callback error: {e.ToString()}");
1047 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1055 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);
1059 private static efl_threadio_call_sync_delegate efl_threadio_call_sync_static_delegate;
1061 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1062 private delegate System.String efl_core_command_line_command_get_delegate(System.IntPtr obj, System.IntPtr pd);
1064 [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.StringKeepOwnershipMarshaler))]
1065 public delegate System.String efl_core_command_line_command_get_api_delegate(System.IntPtr obj);
1067 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");
1069 private static System.String command_get(System.IntPtr obj, System.IntPtr pd)
1071 Eina.Log.Debug("function efl_core_command_line_command_get was called");
1072 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1075 System.String _ret_var = default(System.String);
1078 _ret_var = ((Thread)ws.Target).GetCommand();
1082 Eina.Log.Warning($"Callback error: {e.ToString()}");
1083 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1091 return efl_core_command_line_command_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1095 private static efl_core_command_line_command_get_delegate efl_core_command_line_command_get_static_delegate;
1097 [return: MarshalAs(UnmanagedType.U1)]
1098 private delegate bool efl_core_command_line_command_array_set_delegate(System.IntPtr obj, System.IntPtr pd, System.IntPtr array);
1100 [return: MarshalAs(UnmanagedType.U1)]
1101 public delegate bool efl_core_command_line_command_array_set_api_delegate(System.IntPtr obj, System.IntPtr array);
1103 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");
1105 private static bool command_array_set(System.IntPtr obj, System.IntPtr pd, System.IntPtr array)
1107 Eina.Log.Debug("function efl_core_command_line_command_array_set was called");
1108 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1111 var _in_array = new Eina.Array<Eina.Stringshare>(array, true, true);
1112 bool _ret_var = default(bool);
1115 _ret_var = ((Thread)ws.Target).SetCommandArray(_in_array);
1119 Eina.Log.Warning($"Callback error: {e.ToString()}");
1120 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1128 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);
1132 private static efl_core_command_line_command_array_set_delegate efl_core_command_line_command_array_set_static_delegate;
1134 [return: MarshalAs(UnmanagedType.U1)]
1135 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);
1137 [return: MarshalAs(UnmanagedType.U1)]
1138 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);
1140 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");
1142 private static bool command_string_set(System.IntPtr obj, System.IntPtr pd, System.String str)
1144 Eina.Log.Debug("function efl_core_command_line_command_string_set was called");
1145 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1148 bool _ret_var = default(bool);
1151 _ret_var = ((Thread)ws.Target).SetCommandString(str);
1155 Eina.Log.Warning($"Callback error: {e.ToString()}");
1156 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1164 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);
1168 private static efl_core_command_line_command_string_set_delegate efl_core_command_line_command_string_set_static_delegate;
1171 private delegate System.IntPtr efl_core_command_line_command_access_delegate(System.IntPtr obj, System.IntPtr pd);
1174 public delegate System.IntPtr efl_core_command_line_command_access_api_delegate(System.IntPtr obj);
1176 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");
1178 private static System.IntPtr command_access(System.IntPtr obj, System.IntPtr pd)
1180 Eina.Log.Debug("function efl_core_command_line_command_access was called");
1181 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1184 Eina.Accessor<Eina.Stringshare> _ret_var = default(Eina.Accessor<Eina.Stringshare>);
1187 _ret_var = ((Thread)ws.Target).CommandAccess();
1191 Eina.Log.Warning($"Callback error: {e.ToString()}");
1192 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1195 return _ret_var.Handle;
1200 return efl_core_command_line_command_access_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1204 private static efl_core_command_line_command_access_delegate efl_core_command_line_command_access_static_delegate;
1206 [return: MarshalAs(UnmanagedType.U1)]
1207 private delegate bool efl_io_closer_closed_get_delegate(System.IntPtr obj, System.IntPtr pd);
1209 [return: MarshalAs(UnmanagedType.U1)]
1210 public delegate bool efl_io_closer_closed_get_api_delegate(System.IntPtr obj);
1212 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");
1214 private static bool closed_get(System.IntPtr obj, System.IntPtr pd)
1216 Eina.Log.Debug("function efl_io_closer_closed_get was called");
1217 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1220 bool _ret_var = default(bool);
1223 _ret_var = ((Thread)ws.Target).GetClosed();
1227 Eina.Log.Warning($"Callback error: {e.ToString()}");
1228 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1236 return efl_io_closer_closed_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1240 private static efl_io_closer_closed_get_delegate efl_io_closer_closed_get_static_delegate;
1242 [return: MarshalAs(UnmanagedType.U1)]
1243 private delegate bool efl_io_closer_close_on_exec_get_delegate(System.IntPtr obj, System.IntPtr pd);
1245 [return: MarshalAs(UnmanagedType.U1)]
1246 public delegate bool efl_io_closer_close_on_exec_get_api_delegate(System.IntPtr obj);
1248 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");
1250 private static bool close_on_exec_get(System.IntPtr obj, System.IntPtr pd)
1252 Eina.Log.Debug("function efl_io_closer_close_on_exec_get was called");
1253 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1256 bool _ret_var = default(bool);
1259 _ret_var = ((Thread)ws.Target).GetCloseOnExec();
1263 Eina.Log.Warning($"Callback error: {e.ToString()}");
1264 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1272 return efl_io_closer_close_on_exec_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1276 private static efl_io_closer_close_on_exec_get_delegate efl_io_closer_close_on_exec_get_static_delegate;
1278 [return: MarshalAs(UnmanagedType.U1)]
1279 private delegate bool efl_io_closer_close_on_exec_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_exec);
1281 [return: MarshalAs(UnmanagedType.U1)]
1282 public delegate bool efl_io_closer_close_on_exec_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_exec);
1284 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");
1286 private static bool close_on_exec_set(System.IntPtr obj, System.IntPtr pd, bool close_on_exec)
1288 Eina.Log.Debug("function efl_io_closer_close_on_exec_set was called");
1289 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1292 bool _ret_var = default(bool);
1295 _ret_var = ((Thread)ws.Target).SetCloseOnExec(close_on_exec);
1299 Eina.Log.Warning($"Callback error: {e.ToString()}");
1300 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1308 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);
1312 private static efl_io_closer_close_on_exec_set_delegate efl_io_closer_close_on_exec_set_static_delegate;
1314 [return: MarshalAs(UnmanagedType.U1)]
1315 private delegate bool efl_io_closer_close_on_invalidate_get_delegate(System.IntPtr obj, System.IntPtr pd);
1317 [return: MarshalAs(UnmanagedType.U1)]
1318 public delegate bool efl_io_closer_close_on_invalidate_get_api_delegate(System.IntPtr obj);
1320 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");
1322 private static bool close_on_invalidate_get(System.IntPtr obj, System.IntPtr pd)
1324 Eina.Log.Debug("function efl_io_closer_close_on_invalidate_get was called");
1325 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1328 bool _ret_var = default(bool);
1331 _ret_var = ((Thread)ws.Target).GetCloseOnInvalidate();
1335 Eina.Log.Warning($"Callback error: {e.ToString()}");
1336 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1344 return efl_io_closer_close_on_invalidate_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1348 private static efl_io_closer_close_on_invalidate_get_delegate efl_io_closer_close_on_invalidate_get_static_delegate;
1351 private delegate void efl_io_closer_close_on_invalidate_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate);
1354 public delegate void efl_io_closer_close_on_invalidate_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool close_on_invalidate);
1356 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");
1358 private static void close_on_invalidate_set(System.IntPtr obj, System.IntPtr pd, bool close_on_invalidate)
1360 Eina.Log.Debug("function efl_io_closer_close_on_invalidate_set was called");
1361 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1367 ((Thread)ws.Target).SetCloseOnInvalidate(close_on_invalidate);
1371 Eina.Log.Warning($"Callback error: {e.ToString()}");
1372 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1379 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);
1383 private static efl_io_closer_close_on_invalidate_set_delegate efl_io_closer_close_on_invalidate_set_static_delegate;
1386 private delegate Eina.Error efl_io_closer_close_delegate(System.IntPtr obj, System.IntPtr pd);
1389 public delegate Eina.Error efl_io_closer_close_api_delegate(System.IntPtr obj);
1391 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");
1393 private static Eina.Error close(System.IntPtr obj, System.IntPtr pd)
1395 Eina.Log.Debug("function efl_io_closer_close was called");
1396 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1399 Eina.Error _ret_var = default(Eina.Error);
1402 _ret_var = ((Thread)ws.Target).Close();
1406 Eina.Log.Warning($"Callback error: {e.ToString()}");
1407 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1415 return efl_io_closer_close_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1419 private static efl_io_closer_close_delegate efl_io_closer_close_static_delegate;
1421 [return: MarshalAs(UnmanagedType.U1)]
1422 private delegate bool efl_io_reader_can_read_get_delegate(System.IntPtr obj, System.IntPtr pd);
1424 [return: MarshalAs(UnmanagedType.U1)]
1425 public delegate bool efl_io_reader_can_read_get_api_delegate(System.IntPtr obj);
1427 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");
1429 private static bool can_read_get(System.IntPtr obj, System.IntPtr pd)
1431 Eina.Log.Debug("function efl_io_reader_can_read_get was called");
1432 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1435 bool _ret_var = default(bool);
1438 _ret_var = ((Thread)ws.Target).GetCanRead();
1442 Eina.Log.Warning($"Callback error: {e.ToString()}");
1443 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1451 return efl_io_reader_can_read_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1455 private static efl_io_reader_can_read_get_delegate efl_io_reader_can_read_get_static_delegate;
1458 private delegate void efl_io_reader_can_read_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_read);
1461 public delegate void efl_io_reader_can_read_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_read);
1463 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");
1465 private static void can_read_set(System.IntPtr obj, System.IntPtr pd, bool can_read)
1467 Eina.Log.Debug("function efl_io_reader_can_read_set was called");
1468 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1474 ((Thread)ws.Target).SetCanRead(can_read);
1478 Eina.Log.Warning($"Callback error: {e.ToString()}");
1479 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1486 efl_io_reader_can_read_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_read);
1490 private static efl_io_reader_can_read_set_delegate efl_io_reader_can_read_set_static_delegate;
1492 [return: MarshalAs(UnmanagedType.U1)]
1493 private delegate bool efl_io_reader_eos_get_delegate(System.IntPtr obj, System.IntPtr pd);
1495 [return: MarshalAs(UnmanagedType.U1)]
1496 public delegate bool efl_io_reader_eos_get_api_delegate(System.IntPtr obj);
1498 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");
1500 private static bool eos_get(System.IntPtr obj, System.IntPtr pd)
1502 Eina.Log.Debug("function efl_io_reader_eos_get was called");
1503 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1506 bool _ret_var = default(bool);
1509 _ret_var = ((Thread)ws.Target).GetEos();
1513 Eina.Log.Warning($"Callback error: {e.ToString()}");
1514 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1522 return efl_io_reader_eos_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1526 private static efl_io_reader_eos_get_delegate efl_io_reader_eos_get_static_delegate;
1529 private delegate void efl_io_reader_eos_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool is_eos);
1532 public delegate void efl_io_reader_eos_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool is_eos);
1534 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");
1536 private static void eos_set(System.IntPtr obj, System.IntPtr pd, bool is_eos)
1538 Eina.Log.Debug("function efl_io_reader_eos_set was called");
1539 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1545 ((Thread)ws.Target).SetEos(is_eos);
1549 Eina.Log.Warning($"Callback error: {e.ToString()}");
1550 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1557 efl_io_reader_eos_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), is_eos);
1561 private static efl_io_reader_eos_set_delegate efl_io_reader_eos_set_static_delegate;
1564 private delegate Eina.Error efl_io_reader_read_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice);
1567 public delegate Eina.Error efl_io_reader_read_api_delegate(System.IntPtr obj, ref Eina.RwSlice rw_slice);
1569 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");
1571 private static Eina.Error read(System.IntPtr obj, System.IntPtr pd, ref Eina.RwSlice rw_slice)
1573 Eina.Log.Debug("function efl_io_reader_read was called");
1574 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1577 Eina.Error _ret_var = default(Eina.Error);
1580 _ret_var = ((Thread)ws.Target).Read(ref rw_slice);
1584 Eina.Log.Warning($"Callback error: {e.ToString()}");
1585 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1593 return efl_io_reader_read_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), ref rw_slice);
1597 private static efl_io_reader_read_delegate efl_io_reader_read_static_delegate;
1599 [return: MarshalAs(UnmanagedType.U1)]
1600 private delegate bool efl_io_writer_can_write_get_delegate(System.IntPtr obj, System.IntPtr pd);
1602 [return: MarshalAs(UnmanagedType.U1)]
1603 public delegate bool efl_io_writer_can_write_get_api_delegate(System.IntPtr obj);
1605 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");
1607 private static bool can_write_get(System.IntPtr obj, System.IntPtr pd)
1609 Eina.Log.Debug("function efl_io_writer_can_write_get was called");
1610 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1613 bool _ret_var = default(bool);
1616 _ret_var = ((Thread)ws.Target).GetCanWrite();
1620 Eina.Log.Warning($"Callback error: {e.ToString()}");
1621 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1629 return efl_io_writer_can_write_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
1633 private static efl_io_writer_can_write_get_delegate efl_io_writer_can_write_get_static_delegate;
1636 private delegate void efl_io_writer_can_write_set_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.U1)] bool can_write);
1639 public delegate void efl_io_writer_can_write_set_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.U1)] bool can_write);
1641 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");
1643 private static void can_write_set(System.IntPtr obj, System.IntPtr pd, bool can_write)
1645 Eina.Log.Debug("function efl_io_writer_can_write_set was called");
1646 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1652 ((Thread)ws.Target).SetCanWrite(can_write);
1656 Eina.Log.Warning($"Callback error: {e.ToString()}");
1657 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1664 efl_io_writer_can_write_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), can_write);
1668 private static efl_io_writer_can_write_set_delegate efl_io_writer_can_write_set_static_delegate;
1671 private delegate Eina.Error efl_io_writer_write_delegate(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining);
1674 public delegate Eina.Error efl_io_writer_write_api_delegate(System.IntPtr obj, ref Eina.Slice slice, ref Eina.Slice remaining);
1676 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");
1678 private static Eina.Error write(System.IntPtr obj, System.IntPtr pd, ref Eina.Slice slice, ref Eina.Slice remaining)
1680 Eina.Log.Debug("function efl_io_writer_write was called");
1681 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
1684 remaining = default( Eina.Slice); Eina.Error _ret_var = default(Eina.Error);
1687 _ret_var = ((Thread)ws.Target).Write(ref slice, ref remaining);
1691 Eina.Log.Warning($"Callback error: {e.ToString()}");
1692 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
1700 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);
1704 private static efl_io_writer_write_delegate efl_io_writer_write_static_delegate;
1706 #pragma warning restore CA1707, CS1591, SA1300, SA1600