1 #ifndef _CONFIG_PARAM_H
2 #define _CONFIG_PARAM_H
7 * File created on 2003-05-24 by Jeko.
8 * (c)2003, JC Hoelt for iOS-software.
46 typedef struct _PARAM {
59 /* used by the core to inform the GUI of a change */
60 void (*change_listener)(struct _PARAM *_this);
62 /* used by the GUI to inform the core of a change */
63 void (*changed)(struct _PARAM *_this);
65 void *user_data; /* can be used by the GUI */
68 #define IVAL(p) ((p).param.ival.value)
69 #define SVAL(p) ((p).param.sval.value)
70 #define FVAL(p) ((p).param.fval.value)
71 #define BVAL(p) ((p).param.bval.value)
72 #define LVAL(p) ((p).param.slist.value)
74 #define FMIN(p) ((p).param.fval.min)
75 #define FMAX(p) ((p).param.fval.max)
76 #define FSTEP(p) ((p).param.fval.step)
78 #define IMIN(p) ((p).param.ival.min)
79 #define IMAX(p) ((p).param.ival.max)
80 #define ISTEP(p) ((p).param.ival.step)
82 PluginParam goom_secure_param(void);
84 PluginParam goom_secure_f_param(char *name);
85 PluginParam goom_secure_i_param(char *name);
86 PluginParam goom_secure_b_param(char *name, int value);
87 PluginParam goom_secure_s_param(char *name);
89 PluginParam goom_secure_f_feedback(char *name);
90 PluginParam goom_secure_i_feedback(char *name);
92 void goom_set_str_param_value(PluginParam *p, const char *str);
93 void goom_set_list_param_value(PluginParam *p, const char *str);
95 typedef struct _PARAMETERS {
102 PluginParameters goom_plugin_parameters(const char *name, int nb);
103 void goom_plugin_parameters_free(PluginParameters *p);
105 #define secure_param goom_secure_param
106 #define secure_f_param goom_secure_f_param
107 #define secure_i_param goom_secure_i_param
108 #define secure_b_param goom_secure_b_param
109 #define secure_s_param goom_secure_s_param
110 #define secure_f_feedback goom_secure_f_feedback
111 #define secure_i_feedback goom_secure_i_feedback
112 #define set_list_param_value goom_set_list_param_value
113 #define set_str_param_value goom_set_str_param_value
114 #define plugin_parameters goom_plugin_parameters