Mon, 03 Feb 2014 22:40:31 +0530
Swap @title and @short_description roles
| 6584 | 1 | #include "module.h" |
| 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::Connection PACKAGE = Purple::Connection PREFIX = purple_connection_ |
| 11118 | 4 | PROTOTYPES: ENABLE |
| 6584 | 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::Connection::State", 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[] = { |
|
34749
08b47c055830
Made libpurple plugins compile with initial GObject connection API
Ankit Vani <a@nevitus.org>
parents:
32438
diff
changeset
|
11 | #define const_iv(name) {#name, (IV)PURPLE_CONNECTION_##name} |
|
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
|
12 | const_iv(DISCONNECTED), |
|
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(CONNECTED), |
|
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(CONNECTING), |
|
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 | }; |
|
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 | 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
|
18 | 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
|
19 | } |
|
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 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
21 | Purple::Account |
|
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_connection_get_account(gc) |
|
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::Connection gc |
| 6584 | 24 | |
| 25 | const char * | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
26 | purple_connection_get_password(gc) |
|
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::Connection gc |
| 11118 | 28 | |
|
34750
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
29 | void |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
30 | purple_connection_get_active_chats(gc) |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
31 | Purple::Connection gc |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
32 | PREINIT: |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
33 | GSList *l; |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
34 | PPCODE: |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
35 | for (l = purple_connection_get_active_chats(gc); l != NULL; l = l->next) { |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
36 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::ChatConversation"))); |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
37 | } |
|
826c1611ef90
Refactored protocols to use the initial GObject connection API.
Ankit Vani <a@nevitus.org>
parents:
34749
diff
changeset
|
38 | |
| 11118 | 39 | const char * |
|
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_connection_get_display_name(gc) |
|
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::Connection gc |
| 6584 | 42 | |
| 12787 | 43 | 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
|
44 | purple_connection_notice(gc, text) |
|
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::Connection gc |
| 11118 | 46 | const char *text |
| 6584 | 47 | |
| 12787 | 48 | 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
|
49 | purple_connection_set_state(gc, state) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
50 | Purple::Connection gc |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
51 | Purple::ConnectionState state |
| 12787 | 52 | |
| 53 | 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
|
54 | purple_connection_set_display_name(gc, name) |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
55 | Purple::Connection gc |
| 12787 | 56 | const char *name |
| 57 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
58 | Purple::ConnectionState |
|
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
59 | purple_connection_get_state(gc) |
|
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::Connection gc |
| 12787 | 61 | |
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
62 | MODULE = Purple::Connection PACKAGE = Purple::Connections PREFIX = purple_connections_ |
| 12787 | 63 | PROTOTYPES: ENABLE |
| 64 | ||
| 65 | 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
|
66 | purple_connections_disconnect_all() |
| 6584 | 67 | |
| 11118 | 68 | 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
|
69 | purple_connections_get_all() |
| 11118 | 70 | PREINIT: |
| 71 | GList *l; | |
| 72 | 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
|
73 | for (l = purple_connections_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
|
74 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Connection"))); |
| 11118 | 75 | } |
| 6584 | 76 | |
| 77 | 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
|
78 | purple_connections_get_connecting() |
| 6584 | 79 | PREINIT: |
| 80 | GList *l; | |
| 81 | 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
|
82 | for (l = purple_connections_get_connecting(); 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
|
83 | XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::Connection"))); |
| 11118 | 84 | } |
| 85 | ||
|
15894
765ec644ac47
Perl fixes for s/gaim/purple/. This hasn't really been tested yet.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
86 | 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
|
87 | purple_connections_get_handle() |