Example #1
0
        public override System.Collections.Generic.List <Efl_Op_Description> GetEoOps(System.Type type)
        {
            var descs   = new System.Collections.Generic.List <Efl_Op_Description>();
            var methods = Efl.Eo.Globals.GetUserMethods(type);

            if (efl_task_priority_get_static_delegate == null)
            {
                efl_task_priority_get_static_delegate = new efl_task_priority_get_delegate(priority_get);
            }
            if (methods.FirstOrDefault(m => m.Name == "GetPriority") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_get_static_delegate)
                });
            }
            if (efl_task_priority_set_static_delegate == null)
            {
                efl_task_priority_set_static_delegate = new efl_task_priority_set_delegate(priority_set);
            }
            if (methods.FirstOrDefault(m => m.Name == "SetPriority") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_set_static_delegate)
                });
            }
            if (efl_task_exit_code_get_static_delegate == null)
            {
                efl_task_exit_code_get_static_delegate = new efl_task_exit_code_get_delegate(exit_code_get);
            }
            if (methods.FirstOrDefault(m => m.Name == "GetExitCode") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_exit_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_exit_code_get_static_delegate)
                });
            }
            if (efl_task_flags_get_static_delegate == null)
            {
                efl_task_flags_get_static_delegate = new efl_task_flags_get_delegate(flags_get);
            }
            if (methods.FirstOrDefault(m => m.Name == "GetFlags") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_get_static_delegate)
                });
            }
            if (efl_task_flags_set_static_delegate == null)
            {
                efl_task_flags_set_static_delegate = new efl_task_flags_set_delegate(flags_set);
            }
            if (methods.FirstOrDefault(m => m.Name == "SetFlags") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_set_static_delegate)
                });
            }
            if (efl_task_run_static_delegate == null)
            {
                efl_task_run_static_delegate = new efl_task_run_delegate(run);
            }
            if (methods.FirstOrDefault(m => m.Name == "Run") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_run"), func = Marshal.GetFunctionPointerForDelegate(efl_task_run_static_delegate)
                });
            }
            if (efl_task_end_static_delegate == null)
            {
                efl_task_end_static_delegate = new efl_task_end_delegate(end);
            }
            if (methods.FirstOrDefault(m => m.Name == "End") != null)
            {
                descs.Add(new Efl_Op_Description()
                {
                    api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_end"), func = Marshal.GetFunctionPointerForDelegate(efl_task_end_static_delegate)
                });
            }
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }
Example #2
0
        public override System.Collections.Generic.List <Efl_Op_Description> GetEoOps(System.Type type)
        {
            var descs = new System.Collections.Generic.List <Efl_Op_Description>();

            if (efl_task_priority_get_static_delegate == null)
            {
                efl_task_priority_get_static_delegate = new efl_task_priority_get_delegate(priority_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_get_static_delegate)
            });
            if (efl_task_priority_set_static_delegate == null)
            {
                efl_task_priority_set_static_delegate = new efl_task_priority_set_delegate(priority_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_priority_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_priority_set_static_delegate)
            });
            if (efl_task_exit_code_get_static_delegate == null)
            {
                efl_task_exit_code_get_static_delegate = new efl_task_exit_code_get_delegate(exit_code_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_exit_code_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_exit_code_get_static_delegate)
            });
            if (efl_task_flags_get_static_delegate == null)
            {
                efl_task_flags_get_static_delegate = new efl_task_flags_get_delegate(flags_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_get"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_get_static_delegate)
            });
            if (efl_task_flags_set_static_delegate == null)
            {
                efl_task_flags_set_static_delegate = new efl_task_flags_set_delegate(flags_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_flags_set"), func = Marshal.GetFunctionPointerForDelegate(efl_task_flags_set_static_delegate)
            });
            if (efl_task_run_static_delegate == null)
            {
                efl_task_run_static_delegate = new efl_task_run_delegate(run);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_run"), func = Marshal.GetFunctionPointerForDelegate(efl_task_run_static_delegate)
            });
            if (efl_task_end_static_delegate == null)
            {
                efl_task_end_static_delegate = new efl_task_end_delegate(end);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_task_end"), func = Marshal.GetFunctionPointerForDelegate(efl_task_end_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }