| 73 |
73 |
| 74 mono_runtime_object_init(mplug->obj); |
74 mono_runtime_object_init(mplug->obj); |
| 75 |
75 |
| 76 while ((m = mono_class_get_methods(mplug->klass, &iter))) { |
76 while ((m = mono_class_get_methods(mplug->klass, &iter))) { |
| 77 purple_debug_info("mono", "plugin method: %s\n", mono_method_get_name(m)); |
77 purple_debug_info("mono", "plugin method: %s\n", mono_method_get_name(m)); |
| 78 if (strcmp(mono_method_get_name(m), "Load") == 0) { |
78 if (purple_strequal(mono_method_get_name(m), "Load")) { |
| 79 mplug->load = m; |
79 mplug->load = m; |
| 80 found_load = TRUE; |
80 found_load = TRUE; |
| 81 } else if (strcmp(mono_method_get_name(m), "Unload") == 0) { |
81 } else if (purple_strequal(mono_method_get_name(m), "Unload")) { |
| 82 mplug->unload = m; |
82 mplug->unload = m; |
| 83 found_unload = TRUE; |
83 found_unload = TRUE; |
| 84 } else if (strcmp(mono_method_get_name(m), "Destroy") == 0) { |
84 } else if (purple_strequal(mono_method_get_name(m), "Destroy")) { |
| 85 mplug->destroy = m; |
85 mplug->destroy = m; |
| 86 found_destroy = TRUE; |
86 found_destroy = TRUE; |
| 87 } |
87 } |
| 88 } |
88 } |
| 89 |
89 |