libpurple/plugins/helloworld.c

changeset 34449
bbcb198650b7
parent 20288
5ca925a094e2
child 34963
de6836a8b324
child 36782
64936dae41a3
equal deleted inserted replaced
34448:e15d91a77cb3 34449:bbcb198650b7
58 static void 58 static void
59 plugin_action_test_cb (PurplePluginAction * action) 59 plugin_action_test_cb (PurplePluginAction * action)
60 { 60 {
61 purple_notify_message (helloworld_plugin, PURPLE_NOTIFY_MSG_INFO, 61 purple_notify_message (helloworld_plugin, PURPLE_NOTIFY_MSG_INFO,
62 "Plugin Actions Test", "This is a plugin actions test :)", NULL, NULL, 62 "Plugin Actions Test", "This is a plugin actions test :)", NULL, NULL,
63 NULL); 63 NULL, NULL);
64 } 64 }
65 65
66 /* we tell libpurple in the PurplePluginInfo struct to call this function to 66 /* we tell libpurple in the PurplePluginInfo struct to call this function to
67 * get a list of plugin actions to use for the plugin. This function gives 67 * get a list of plugin actions to use for the plugin. This function gives
68 * libpurple that list of actions. */ 68 * libpurple that list of actions. */
91 static gboolean 91 static gboolean
92 plugin_load (PurplePlugin * plugin) 92 plugin_load (PurplePlugin * plugin)
93 { 93 {
94 purple_notify_message (plugin, PURPLE_NOTIFY_MSG_INFO, "Hello World!", 94 purple_notify_message (plugin, PURPLE_NOTIFY_MSG_INFO, "Hello World!",
95 "This is the Hello World! plugin :)", NULL, NULL, 95 "This is the Hello World! plugin :)", NULL, NULL,
96 NULL); 96 NULL, NULL);
97 97
98 helloworld_plugin = plugin; /* assign this here so we have a valid handle later */ 98 helloworld_plugin = plugin; /* assign this here so we have a valid handle later */
99 99
100 return TRUE; 100 return TRUE;
101 } 101 }

mercurial