libpurple/plugins/debug_example.c

branch
soc.2013.gobjectification.plugins
changeset 36792
764b45883fba
parent 36739
472bef54ba0a
child 36801
70047858a8fd
equal deleted inserted replaced
36791:075cb0ede3ae 36792:764b45883fba
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(). */
121 { 120 {
122 return TRUE; 121 return TRUE;
123 } 122 }
124 123
125 PURPLE_PLUGIN_INIT(debugexample, plugin_query, plugin_load, plugin_unload); 124 PURPLE_PLUGIN_INIT(debugexample, plugin_query, plugin_load, plugin_unload);
126

mercurial