| 77 "abi-version", PURPLE_ABI_VERSION, |
77 "abi-version", PURPLE_ABI_VERSION, |
| 78 NULL |
78 NULL |
| 79 ); |
79 ); |
| 80 } |
80 } |
| 81 |
81 |
| 82 /* As we've covered before, libpurple calls this function, if present, when it |
82 /* As we've covered before, this function is called when the plugin is loaded. |
| 83 * loads the plugin. Here we're using it to show off the capabilities of the |
83 * Here we're using it to show off the capabilities of the debug API and just |
| 84 * debug API and just blindly returning TRUE to tell libpurple it's safe to |
84 * blindly returning TRUE to tell libpurple it's safe to continue loading. */ |
| 85 * continue loading. */ |
|
| 86 static gboolean |
85 static gboolean |
| 87 plugin_load(PurplePlugin *plugin, GError **error) |
86 plugin_load(PurplePlugin *plugin, GError **error) |
| 88 { |
87 { |
| 89 /* Define these for convenience--we're just using them to show the |
88 /* Define these for convenience--we're just using them to show the |
| 90 * similarities of the debug functions to the standard printf(). */ |
89 * similarities of the debug functions to the standard printf(). */ |