/// <summary>Gets the list of Eo operations to override.</summary>
            /// <returns>The list of Eo operations to be overload.</returns>
            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_config_profile_get_static_delegate == null)
                {
                    efl_config_profile_get_static_delegate = new efl_config_profile_get_delegate(profile_get);
                }

                if (methods.FirstOrDefault(m => m.Name == "GetProfile") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_get_static_delegate)
                    });
                }

                if (efl_config_profile_set_static_delegate == null)
                {
                    efl_config_profile_set_static_delegate = new efl_config_profile_set_delegate(profile_set);
                }

                if (methods.FirstOrDefault(m => m.Name == "SetProfile") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_set_static_delegate)
                    });
                }

                if (efl_config_save_static_delegate == null)
                {
                    efl_config_save_static_delegate = new efl_config_save_delegate(save);
                }

                if (methods.FirstOrDefault(m => m.Name == "Save") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_save"), func = Marshal.GetFunctionPointerForDelegate(efl_config_save_static_delegate)
                    });
                }

                if (efl_config_profile_iterate_static_delegate == null)
                {
                    efl_config_profile_iterate_static_delegate = new efl_config_profile_iterate_delegate(profile_iterate);
                }

                if (methods.FirstOrDefault(m => m.Name == "ProfileIterate") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_iterate_static_delegate)
                    });
                }

                if (efl_config_profile_exists_static_delegate == null)
                {
                    efl_config_profile_exists_static_delegate = new efl_config_profile_exists_delegate(profile_exists);
                }

                if (methods.FirstOrDefault(m => m.Name == "ProfileExists") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_exists"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_exists_static_delegate)
                    });
                }

                if (efl_config_profile_dir_get_static_delegate == null)
                {
                    efl_config_profile_dir_get_static_delegate = new efl_config_profile_dir_get_delegate(profile_dir_get);
                }

                if (methods.FirstOrDefault(m => m.Name == "GetProfileDir") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_dir_get_static_delegate)
                    });
                }

                if (efl_config_profile_derived_add_static_delegate == null)
                {
                    efl_config_profile_derived_add_static_delegate = new efl_config_profile_derived_add_delegate(profile_derived_add);
                }

                if (methods.FirstOrDefault(m => m.Name == "AddProfileDerived") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_add"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_add_static_delegate)
                    });
                }

                if (efl_config_profile_derived_del_static_delegate == null)
                {
                    efl_config_profile_derived_del_static_delegate = new efl_config_profile_derived_del_delegate(profile_derived_del);
                }

                if (methods.FirstOrDefault(m => m.Name == "DelProfileDerived") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_profile_derived_del"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_del_static_delegate)
                    });
                }

                if (efl_config_get_static_delegate == null)
                {
                    efl_config_get_static_delegate = new efl_config_get_delegate(config_get);
                }

                if (methods.FirstOrDefault(m => m.Name == "GetConfig") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate)
                    });
                }

                if (efl_config_set_static_delegate == null)
                {
                    efl_config_set_static_delegate = new efl_config_set_delegate(config_set);
                }

                if (methods.FirstOrDefault(m => m.Name == "SetConfig") != null)
                {
                    descs.Add(new Efl_Op_Description()
                    {
                        api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate)
                    });
                }

                descs.AddRange(base.GetEoOps(type));
                return(descs);
            }
示例#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_config_profile_get_static_delegate == null)
            {
                efl_config_profile_get_static_delegate = new efl_config_profile_get_delegate(profile_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_get_static_delegate)
            });
            if (efl_config_profile_set_static_delegate == null)
            {
                efl_config_profile_set_static_delegate = new efl_config_profile_set_delegate(profile_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_set_static_delegate)
            });
            if (efl_config_save_static_delegate == null)
            {
                efl_config_save_static_delegate = new efl_config_save_delegate(save);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_save"), func = Marshal.GetFunctionPointerForDelegate(efl_config_save_static_delegate)
            });
            if (efl_config_profile_iterate_static_delegate == null)
            {
                efl_config_profile_iterate_static_delegate = new efl_config_profile_iterate_delegate(profile_iterate);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_iterate"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_iterate_static_delegate)
            });
            if (efl_config_profile_exists_static_delegate == null)
            {
                efl_config_profile_exists_static_delegate = new efl_config_profile_exists_delegate(profile_exists);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_exists"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_exists_static_delegate)
            });
            if (efl_config_profile_dir_get_static_delegate == null)
            {
                efl_config_profile_dir_get_static_delegate = new efl_config_profile_dir_get_delegate(profile_dir_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_dir_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_dir_get_static_delegate)
            });
            if (efl_config_profile_derived_add_static_delegate == null)
            {
                efl_config_profile_derived_add_static_delegate = new efl_config_profile_derived_add_delegate(profile_derived_add);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_derived_add"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_add_static_delegate)
            });
            if (efl_config_profile_derived_del_static_delegate == null)
            {
                efl_config_profile_derived_del_static_delegate = new efl_config_profile_derived_del_delegate(profile_derived_del);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_profile_derived_del"), func = Marshal.GetFunctionPointerForDelegate(efl_config_profile_derived_del_static_delegate)
            });
            if (efl_config_get_static_delegate == null)
            {
                efl_config_get_static_delegate = new efl_config_get_delegate(config_get);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_get"), func = Marshal.GetFunctionPointerForDelegate(efl_config_get_static_delegate)
            });
            if (efl_config_set_static_delegate == null)
            {
                efl_config_set_static_delegate = new efl_config_set_delegate(config_set);
            }
            descs.Add(new Efl_Op_Description()
            {
                api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_config_set"), func = Marshal.GetFunctionPointerForDelegate(efl_config_set_static_delegate)
            });
            descs.AddRange(base.GetEoOps(type));
            return(descs);
        }