Mercurial > pidgin
comparison src/plugin.c @ 12066:ee8312c764b1
[gaim-migrate @ 14361]
You learn something new every day!
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 13 Nov 2005 01:32:31 +0000 |
parents | d8787960e398 |
children | 3cf98e532126 |
comparison
equal
deleted
inserted
replaced
12065:ff985a2d88b9 | 12066:ee8312c764b1 |
---|---|
95 | 95 |
96 last_period = strrchr(filename, '.'); | 96 last_period = strrchr(filename, '.'); |
97 if (last_period == NULL) | 97 if (last_period == NULL) |
98 return FALSE; | 98 return FALSE; |
99 | 99 |
100 return !(strcmp(last_period, GAIM_PLUGIN_EXT_WIN32) & | 100 return !(strcmp(last_period + 1, G_MODULE_SUFFIX)); |
101 strcmp(last_period, GAIM_PLUGIN_EXT_HPUX) & | |
102 strcmp(last_period, GAIM_PLUGIN_EXT_UNIX)); | |
103 } | 101 } |
104 | 102 |
105 static char * | 103 static char * |
106 gaim_plugin_get_basename(const char *filename) | 104 gaim_plugin_get_basename(const char *filename) |
107 { | 105 { |
211 /* If this plugin has already been probed then exit */ | 209 /* If this plugin has already been probed then exit */ |
212 plugin = gaim_plugins_find_with_filename(filename); | 210 plugin = gaim_plugins_find_with_filename(filename); |
213 if (plugin != NULL) | 211 if (plugin != NULL) |
214 return plugin; | 212 return plugin; |
215 | 213 |
216 plugin = gaim_plugin_new(has_file_extension(filename, GAIM_PLUGIN_EXT), filename); | 214 plugin = gaim_plugin_new(has_file_extension(filename, G_MODULE_SUFFIX), filename); |
217 | 215 |
218 if (plugin->native_plugin) { | 216 if (plugin->native_plugin) { |
219 const char *error; | 217 const char *error; |
220 /* | 218 /* |
221 * We pass G_MODULE_BIND_LOCAL here to prevent symbols from | 219 * We pass G_MODULE_BIND_LOCAL here to prevent symbols from |