Mercurial > audlegacy
comparison src/audacious/pluginenum.c @ 3165:8775dfc57ead trunk
Remove mainwin_set_info_text() craq. Still some work to do.
| author | William Pitcock <nenolod@atheme-project.org> |
|---|---|
| date | Wed, 25 Jul 2007 15:46:00 -0500 |
| parents | f1c756f39e6c |
| children | 2619f4c62abe 06baa146fc1d |
comparison
equal
deleted
inserted
replaced
| 3160:03ff51c6412f | 3165:8775dfc57ead |
|---|---|
| 160 | 160 |
| 161 /* Pretty const casts courtesy of XMMS's plugin.h legacy. Anyone | 161 /* Pretty const casts courtesy of XMMS's plugin.h legacy. Anyone |
| 162 else thinks we could use a CONST macro to solve the warnings? | 162 else thinks we could use a CONST macro to solve the warnings? |
| 163 - descender */ | 163 - descender */ |
| 164 p->set_info = (void (*)(gchar *, gint, gint, gint, gint)) playlist_set_info_old_abi; | 164 p->set_info = (void (*)(gchar *, gint, gint, gint, gint)) playlist_set_info_old_abi; |
| 165 p->set_info_text = (void (*)(gchar *)) input_set_info_text; | 165 p->set_info_text = input_set_info_text; |
| 166 p->set_status_buffering = (void (*)(gboolean)) input_set_status_buffering; | 166 p->set_status_buffering = input_set_status_buffering; |
| 167 | 167 |
| 168 ip_data.input_list = g_list_append(ip_data.input_list, p); | 168 ip_data.input_list = g_list_append(ip_data.input_list, p); |
| 169 | 169 |
| 170 g_hash_table_replace(plugin_matrix, g_path_get_basename(p->filename), | 170 g_hash_table_replace(plugin_matrix, g_path_get_basename(p->filename), |
| 171 GINT_TO_POINTER(1)); | 171 GINT_TO_POINTER(1)); |
| 226 VisPlugin **vp_iter; | 226 VisPlugin **vp_iter; |
| 227 | 227 |
| 228 if (header->magic != PLUGIN_MAGIC) | 228 if (header->magic != PLUGIN_MAGIC) |
| 229 return plugin2_dispose(module, "plugin <%s> discarded, invalid module magic", filename); | 229 return plugin2_dispose(module, "plugin <%s> discarded, invalid module magic", filename); |
| 230 | 230 |
| 231 #if 0 | |
| 231 if (header->api_version != __AUDACIOUS_PLUGIN_API__) | 232 if (header->api_version != __AUDACIOUS_PLUGIN_API__) |
| 232 return plugin2_dispose(module, "plugin <%s> discarded, wanting API version %d, we implement API version %d", | 233 return plugin2_dispose(module, "plugin <%s> discarded, wanting API version %d, we implement API version %d", |
| 233 filename, header->api_version, __AUDACIOUS_PLUGIN_API__); | 234 filename, header->api_version, __AUDACIOUS_PLUGIN_API__); |
| 235 #endif | |
| 234 | 236 |
| 235 if (header->init) | 237 if (header->init) |
| 236 header->init(); | 238 header->init(); |
| 237 | 239 |
| 238 header->priv_assoc = g_new0(Plugin, 1); | 240 header->priv_assoc = g_new0(Plugin, 1); |
