Mercurial > pidgin
annotate plugins/perl/common/module.h @ 9740:2bb5e2cd64bd
[gaim-migrate @ 10605]
" A few days back, someone on #gaim was wondering how to
block IM's from IRC, which isn't supported by gaim, as
this isn't supported at a protocol level. I decided to
implement gaim's privacy options (permit lists, deny
lists, block all users, and permit people on buddy
list) at a local level for IRC and
Zephyr. Jabber, SILC, and Trepia don't seem to support
deny or permit lists in Gaim, but I don't use the
latter two protocols and wasn't sure about how to
implemnt in in Jabber.
When implementing it, I noticed that changes in privacy
settings didn't automatically cause blist.xml to get
scheduled
for writing (even on exit). To fix this, I needed to
make schedule_blist_save in blist.c non-static and call
it from serv_set_permit_deny() in server.c, and
gaim_privacy_{permit,deny}_{add,remove} in privacy.c ." --Arun A Tharuvai
committer: Tailor Script <tailor@pidgin.im>
| author | Luke Schierer <lschiere@pidgin.im> |
|---|---|
| date | Wed, 11 Aug 2004 23:52:48 +0000 |
| parents | bf630f7dfdcd |
| children | 134d0001983d |
| rev | line source |
|---|---|
| 6508 | 1 typedef struct group *Gaim__Group; |
| 2 | |
| 3 #define group perl_group | |
| 4 | |
|
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
5 #include <glib.h> |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
6 #ifdef _WIN32 |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
7 #undef pipe |
|
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
8 #endif |
| 6508 | 9 #include <EXTERN.h> |
| 10 #include <perl.h> | |
| 11 #include <XSUB.h> | |
| 12 | |
| 13 #undef group | |
| 14 | |
| 15 #include "../perl-common.h" | |
| 16 | |
| 17 #include "account.h" | |
| 18 #include "connection.h" | |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
19 #include "conversation.h" |
| 6508 | 20 #include "debug.h" |
|
6523
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
21 #include "server.h" |
| 6508 | 22 |
|
6531
7c42b8ca3222
[gaim-migrate @ 7048]
Christian Hammond <chipx86@chipx86.com>
parents:
6523
diff
changeset
|
23 typedef GaimAccount * Gaim__Account; |
|
6699
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
24 typedef GaimBuddy * Gaim__BuddyList__Buddy; |
|
7118
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
25 typedef GaimChat * Gaim__BuddyList__Chat; |
|
6699
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
26 typedef GaimGroup * Gaim__BuddyList__Group; |
|
12169973c663
[gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents:
6591
diff
changeset
|
27 typedef GaimContact * Gaim__BuddyList__Contact; |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
28 typedef GaimConnection * Gaim__Connection; |
|
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
29 typedef GaimConversation *Gaim__Conversation; |
|
7118
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
30 typedef GaimConvChat * Gaim__Conversation__Chat; |
|
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
31 typedef GaimConvIm * Gaim__Conversation__IM; |
|
bf630f7dfdcd
[gaim-migrate @ 7685]
Christian Hammond <chipx86@chipx86.com>
parents:
6816
diff
changeset
|
32 typedef GaimConvWindow * Gaim__ConvWindow; |
|
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
33 typedef GaimPlugin * Gaim__Plugin; |
|
6588
7f5f57dd5cac
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
34 |
|
7f5f57dd5cac
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
35 typedef GaimDebugLevel Gaim__DebugLevel; |
