comparison src/pluginpref.h @ 13106:a0a4b44239e8

[gaim-migrate @ 15468] I was reading the gettext man page and it pointed out that it should be typed as const char *, but it's char * to avoid warnings in code predating ANSI C. So, for the heck of it, I changed added a cast in internal.h. As it turns out, there was a lot of code that relied on this. In the interest of type safety, I've fixed all the warnings. I feel this improved a number of function signatures (in terms of typing clarity). Flame me if you object. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 21:34:43 +0000
parents 8ae981f2c9cb
children
comparison
equal deleted inserted replaced
13105:e347b2217b1b 13106:a0a4b44239e8
89 * Create a new plugin preference with name 89 * Create a new plugin preference with name
90 * 90 *
91 * @param name The name of the pref 91 * @param name The name of the pref
92 * @return a new GaimPluginPref 92 * @return a new GaimPluginPref
93 */ 93 */
94 GaimPluginPref *gaim_plugin_pref_new_with_name(char *name); 94 GaimPluginPref *gaim_plugin_pref_new_with_name(const char *name);
95 95
96 /** 96 /**
97 * Create a new plugin preference with label 97 * Create a new plugin preference with label
98 * 98 *
99 * @param label The label to be displayed 99 * @param label The label to be displayed
100 * @return a new GaimPluginPref 100 * @return a new GaimPluginPref
101 */ 101 */
102 GaimPluginPref *gaim_plugin_pref_new_with_label(char *label); 102 GaimPluginPref *gaim_plugin_pref_new_with_label(const char *label);
103 103
104 /** 104 /**
105 * Create a new plugin preference with name and label 105 * Create a new plugin preference with name and label
106 * 106 *
107 * @param name The name of the pref 107 * @param name The name of the pref
108 * @param label The label to be displayed 108 * @param label The label to be displayed
109 * @return a new GaimPluginPref 109 * @return a new GaimPluginPref
110 */ 110 */
111 GaimPluginPref *gaim_plugin_pref_new_with_name_and_label(char *name, char *label); 111 GaimPluginPref *gaim_plugin_pref_new_with_name_and_label(const char *name, const char *label);
112 112
113 /** 113 /**
114 * Destroy a plugin preference 114 * Destroy a plugin preference
115 * 115 *
116 * @param pref The preference to destroy 116 * @param pref The preference to destroy
121 * Set a plugin pref name 121 * Set a plugin pref name
122 * 122 *
123 * @param pref The plugin pref 123 * @param pref The plugin pref
124 * @param name The name of the pref 124 * @param name The name of the pref
125 */ 125 */
126 void gaim_plugin_pref_set_name(GaimPluginPref *pref, char *name); 126 void gaim_plugin_pref_set_name(GaimPluginPref *pref, const char *name);
127 127
128 /** 128 /**
129 * Get a plugin pref name 129 * Get a plugin pref name
130 * 130 *
131 * @param pref The plugin pref 131 * @param pref The plugin pref
132 * @return The name of the pref 132 * @return The name of the pref
133 */ 133 */
134 char *gaim_plugin_pref_get_name(GaimPluginPref *pref); 134 const char *gaim_plugin_pref_get_name(GaimPluginPref *pref);
135 135
136 /** 136 /**
137 * Set a plugin pref label 137 * Set a plugin pref label
138 * 138 *
139 * @param pref The plugin pref 139 * @param pref The plugin pref
140 * @param label The label for the plugin pref 140 * @param label The label for the plugin pref
141 */ 141 */
142 void gaim_plugin_pref_set_label(GaimPluginPref *pref, char *label); 142 void gaim_plugin_pref_set_label(GaimPluginPref *pref, const char *label);
143 143
144 /** 144 /**
145 * Get a plugin pref label 145 * Get a plugin pref label
146 * 146 *
147 * @param pref The plugin pref 147 * @param pref The plugin pref
148 * @return The label for the plugin pref 148 * @return The label for the plugin pref
149 */ 149 */
150 char *gaim_plugin_pref_get_label(GaimPluginPref *pref); 150 const char *gaim_plugin_pref_get_label(GaimPluginPref *pref);
151 151
152 /** 152 /**
153 * Set the bounds for an integer pref 153 * Set the bounds for an integer pref
154 * 154 *
155 * @param pref The plugin pref 155 * @param pref The plugin pref
188 * 188 *
189 * @param pref The plugin pref 189 * @param pref The plugin pref
190 * @param label The label for the choice 190 * @param label The label for the choice
191 * @param choice A gpointer of the choice 191 * @param choice A gpointer of the choice
192 */ 192 */
193 void gaim_plugin_pref_add_choice(GaimPluginPref *pref, char *label, gpointer choice); 193 void gaim_plugin_pref_add_choice(GaimPluginPref *pref, const char *label, gpointer choice);
194 194
195 /** 195 /**
196 * Get the choices for a choices plugin pref 196 * Get the choices for a choices plugin pref
197 * 197 *
198 * @param pref The plugin pref 198 * @param pref The plugin pref