Mercurial > pidgin
view libpurple/plugins/perl/scripts/function_list.pl @ 18916:0f46f13c0805
Proposed "attention" API, a generalization of zaps (MySpaceIM), buzzes
(Yahoo), and nudges (MSN).
Adds a PurpleAttentionType struct to prpl.h, which is used to describe the
the attention command (some protocols, notably MySpaceIM, support more than
one).
Uses two reserved fields in PurplePluginProtocolInfo, one function for sending
an attention command, another for getting the possible attention commands
(similar to status_types).
Adds serv_got_attention() to server.c, similar to serv_got_im(), used to notify
of incoming or outgoing attention notices.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Mon, 13 Aug 2007 05:59:24 +0000 |
parents | fab49a6e9b25 |
children |
line wrap: on
line source
$MODULE_NAME = "List all Purple:: (and Pidgin::) functions"; use Purple; # Uncomment this to print the Pidgin:: functions as well. #use Pidgin; # All the information Purple gets about our nifty plugin %PLUGIN_INFO = ( perl_api_version => 2, name => "Perl: $MODULE_NAME", version => "0.1", summary => "Print to standard output all the functions under the Purple:: (and Pidgin::) packages", description => "Print to standard output all the functions under the Purple:: (and Pidgin::) packages", author => "Etan Reisner <deryni\@gmail.com>", url => "http://sourceforge.net/users/deryni9/", id => "functionlist", load => "plugin_load", unload => "plugin_unload" ); sub plugin_init { return %PLUGIN_INFO; } sub print_array { my $array = shift; my @arr = sort @$array; foreach $mod (@arr) { my @sub; foreach $key (sort keys %{$mod}) { if ($key =~ /::$/) { push @sub, "$mod$key"; } else { print "$mod$key\n"; } } print_array(\@sub); } } sub plugin_load { my $plugin = shift; my @purplearray; my @pidginarray; foreach $key (sort keys %Purple::) { if ($key =~ /::$/) { push @purplearray, "Purple::$key"; } else { print "Purple::$key\n"; } } print_array(\@purplearray); foreach $key (sort keys %Pidgin::) { if ($key =~ /::$/) { push @pidginarray, "Pidgin::$key"; } else { print "Pidgin::$key\n"; } } print_array(\@pidginarray); } sub plugin_unload { my $plugin = shift; }