libpurple/plugins/perl/common/Plugin.xs

Thu, 30 Oct 2008 22:40:49 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Thu, 30 Oct 2008 22:40:49 +0000
changeset 24569
5dbd0617a27d
parent 23983
586866581434
permissions
-rw-r--r--

Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
to detect when we're still using deprecated functions internally (and by
extension, when we've deprecated something we shouldn't have). In the
course of developing this changeset, I fixed a few such cases.

Given that the plan is to switch from PURPLE_HIDE_STRUCTS to
PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will
also ensure we have no regressions on the struct hiding work.

Deprecated functions are still available to the respective .c file, to
avoid missing prototype errors. Also, Perl and DBus undef the
*_DISABLE_DEPRECATED defines as appropriate so that deprecated functions
will still be exported to Perl plugins and via DBus. (Otherwise, we'd
be breaking backwards compatibility.)

11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
1 #include "module.h"
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
2
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
3 MODULE = Purple::Plugin PACKAGE = Purple::Plugin PREFIX = purple_plugin_
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
4 PROTOTYPES: ENABLE
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
5
16773
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
6 BOOT:
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
7 {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
8 HV *stash = gv_stashpv("Purple::Plugin::Type", 1);
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
9
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
10 static const constiv *civ, const_iv[] = {
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
11 #define const_iv(name) {#name, (IV)PURPLE_PLUGIN_##name}
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
12 const_iv(UNKNOWN),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
13 const_iv(STANDARD),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
14 const_iv(LOADER),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
15 const_iv(PROTOCOL),
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
16 };
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
17
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
18 for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; )
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
19 newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
20 }
e1171eb45f07 Remove the const-c and const-xs stuff and replace it with real constants
Etan Reisner <deryni@pidgin.im>
parents: 15894
diff changeset
21
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
22 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
23 purple_plugin_new(native, path)
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
24 gboolean native
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
25 const char *path
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
26
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
27 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
28 purple_plugin_probe(filename)
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
29 const char *filename
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
30
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
31 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
32 purple_plugin_register(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
33 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
34
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
35 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
36 purple_plugin_load(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
37 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
38
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
39 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
40 purple_plugin_unload(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
41 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
42
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
43 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
44 purple_plugin_reload(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
45 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
46
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
47 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
48 purple_plugin_destroy(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
49 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
50
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
51 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
52 purple_plugin_is_loaded(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
53 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
54
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
55 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
56 purple_plugin_is_unloadable(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
57 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
58
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
59 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
60 purple_plugin_get_id(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
61 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
62
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
63 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
64 purple_plugin_get_name(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
65 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
66
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
67 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
68 purple_plugin_get_version(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
69 Purple::Plugin plugin
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
70
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
71 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
72 purple_plugin_get_summary(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
73 Purple::Plugin plugin
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
74
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
75 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
76 purple_plugin_get_description(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
77 Purple::Plugin plugin
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
78
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
79 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
80 purple_plugin_get_author(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
81 Purple::Plugin plugin
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
82
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
83 const gchar *
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
84 purple_plugin_get_homepage(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
85 Purple::Plugin plugin
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
86
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
87 MODULE = Purple::Plugin PACKAGE = Purple::Plugin::IPC PREFIX = purple_plugin_ipc_
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
88
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
89 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
90 purple_plugin_ipc_unregister(plugin, command)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
91 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
92 const char *command
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
93
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
94 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
95 purple_plugin_ipc_unregister_all(plugin)
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
96 Purple::Plugin plugin
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
97
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
98 MODULE = Purple::Plugin PACKAGE = Purple::Plugins PREFIX = purple_plugins_
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
99 PROTOTYPES: ENABLE
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
100
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
101 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
102 purple_plugins_add_search_path(path)
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
103 const char *path
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
104
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
105 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
106 purple_plugins_unload_all()
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
107
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
108 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
109 purple_plugins_destroy_all()
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
110
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
111 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
112 purple_plugins_load_saved(key)
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
113 const char *key
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
114
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
115 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
116 purple_plugins_probe(ext)
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
117 const char *ext
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
118
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
119 gboolean
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
120 purple_plugins_enabled()
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
121
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
122 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
123 purple_plugins_find_with_name(name)
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
124 const char *name
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
125
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
126 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
127 purple_plugins_find_with_filename(filename)
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
128 const char *filename
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
129
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
130 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
131 purple_plugins_find_with_basename(basename)
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
132 const char *basename
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
133
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
134 Purple::Plugin
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
135 purple_plugins_find_with_id(id)
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
136 const char *id
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
137
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
138 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
139 purple_plugins_get_loaded()
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
140 PREINIT:
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
141 GList *l;
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
142 PPCODE:
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
143 for (l = purple_plugins_get_loaded(); l != NULL; l = l->next) {
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
144 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Plugin")));
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
145 }
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
146
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
147 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
148 purple_plugins_get_protocols()
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
149 PREINIT:
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
150 GList *l;
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
151 PPCODE:
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
152 for (l = purple_plugins_get_protocols(); l != NULL; l = l->next) {
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
153 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Plugin")));
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
154 }
11118
36db35a9da56 [gaim-migrate @ 13174]
John H. Kelm <johnkelm@gmail.com>
parents:
diff changeset
155
12788
0d00c65ec73e [gaim-migrate @ 15135]
Etan Reisner <deryni@pidgin.im>
parents: 11290
diff changeset
156 void
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
157 purple_plugins_get_all()
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
158 PREINIT:
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
159 GList *l;
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
160 PPCODE:
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
161 for (l = purple_plugins_get_all(); l != NULL; l = l->next) {
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
162 XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Plugin")));
12890
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
163 }
7152afb4df01 [gaim-migrate @ 15243]
Etan Reisner <deryni@pidgin.im>
parents: 12788
diff changeset
164
15894
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
165 Purple::Handle
765ec644ac47 Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents: 15435
diff changeset
166 purple_plugins_get_handle()

mercurial