Mercurial > pidgin.yaz
comparison libpurple/plugins/mono/loader/mono.c @ 26305:24463a66f31c
Remove a wee bit of stray whitespace
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 27 Mar 2009 08:54:30 +0000 |
parents | 3cc856ca2338 |
children | a28827fdea16 |
comparison
equal
deleted
inserted
replaced
26303:75654d6b2b4d | 26305:24463a66f31c |
---|---|
37 | 37 |
38 assm = mono_domain_assembly_open(ml_get_domain(), file); | 38 assm = mono_domain_assembly_open(ml_get_domain(), file); |
39 | 39 |
40 if (!assm) { | 40 if (!assm) { |
41 return FALSE; | 41 return FALSE; |
42 } | 42 } |
43 | 43 |
44 purple_debug(PURPLE_DEBUG_INFO, "mono", "Probing plugin\n"); | 44 purple_debug(PURPLE_DEBUG_INFO, "mono", "Probing plugin\n"); |
45 | 45 |
46 if (ml_is_api_dll(mono_assembly_get_image(assm))) { | 46 if (ml_is_api_dll(mono_assembly_get_image(assm))) { |
47 purple_debug(PURPLE_DEBUG_INFO, "mono", "Found our PurpleAPI.dll\n"); | 47 purple_debug(PURPLE_DEBUG_INFO, "mono", "Found our PurpleAPI.dll\n"); |
48 return FALSE; | 48 return FALSE; |
49 } | 49 } |
50 | 50 |
51 info = g_new0(PurplePluginInfo, 1); | 51 info = g_new0(PurplePluginInfo, 1); |
52 mplug = g_new0(PurpleMonoPlugin, 1); | 52 mplug = g_new0(PurpleMonoPlugin, 1); |
53 | 53 |
54 mplug->signal_data = NULL; | 54 mplug->signal_data = NULL; |
55 | 55 |
56 mplug->assm = assm; | 56 mplug->assm = assm; |
57 | 57 |
58 mplug->klass = ml_find_plugin_class(mono_assembly_get_image(mplug->assm)); | 58 mplug->klass = ml_find_plugin_class(mono_assembly_get_image(mplug->assm)); |
85 | 85 |
86 if (!(found_load && found_unload && found_destroy)) { | 86 if (!(found_load && found_unload && found_destroy)) { |
87 purple_debug(PURPLE_DEBUG_ERROR, "mono", "did not find the required methods\n"); | 87 purple_debug(PURPLE_DEBUG_ERROR, "mono", "did not find the required methods\n"); |
88 return FALSE; | 88 return FALSE; |
89 } | 89 } |
90 | 90 |
91 plugin_info = ml_get_info_prop(mplug->obj); | 91 plugin_info = ml_get_info_prop(mplug->obj); |
92 | 92 |
93 /* now that the methods are filled out we can populate | 93 /* now that the methods are filled out we can populate |
94 the info struct with all the needed info */ | 94 the info struct with all the needed info */ |
95 | 95 |
107 info->type = PURPLE_PLUGIN_STANDARD; | 107 info->type = PURPLE_PLUGIN_STANDARD; |
108 | 108 |
109 /* this plugin depends on us; duh */ | 109 /* this plugin depends on us; duh */ |
110 info->dependencies = g_list_append(info->dependencies, MONO_PLUGIN_ID); | 110 info->dependencies = g_list_append(info->dependencies, MONO_PLUGIN_ID); |
111 mplug->plugin = plugin; | 111 mplug->plugin = plugin; |
112 | 112 |
113 plugin->info = info; | 113 plugin->info = info; |
114 info->extra_info = mplug; | 114 info->extra_info = mplug; |
115 | 115 |
116 ml_add_plugin(mplug); | 116 ml_add_plugin(mplug); |
117 | 117 |
236 }; | 236 }; |
237 | 237 |
238 static void init_plugin(PurplePlugin *plugin) | 238 static void init_plugin(PurplePlugin *plugin) |
239 { | 239 { |
240 ml_init(); | 240 ml_init(); |
241 | 241 |
242 loader_info.exts = g_list_append(loader_info.exts, "dll"); | 242 loader_info.exts = g_list_append(loader_info.exts, "dll"); |
243 } | 243 } |
244 | 244 |
245 PURPLE_INIT_PLUGIN(mono, init_plugin, info) | 245 PURPLE_INIT_PLUGIN(mono, init_plugin, info) |