plugins/perl/common/module.h

Sat, 27 Sep 2003 19:17:21 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Sat, 27 Sep 2003 19:17:21 +0000
changeset 6982
12f08de92674
parent 6816
b14a3043ed09
child 7118
280b3b85a28a
permissions
-rw-r--r--

[gaim-migrate @ 7538]
This is Mr. Holland's Opus. And by Mr. Holland I mean Robot101. He
rewrote the coreish IM image support so that the binary data gets
ripped out in the prpl and put in an imgstore instead of just being
passed in the same huge as char string as the actual message. This
is good because it's prpl agnostic, or something. It also means
we don't have a silly length of "-1" with pretty much every send or
receive IM function.

It should be crash free, bug free, and memleak free, but additional
testing is always a good thing.

If you like good stuff then you'll love this patch. But don't take
my word for it--ba dun dunt!

6508
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
1 typedef struct group *Gaim__Group;
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
2
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
3 #define group perl_group
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
4
6816
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6699
diff changeset
5 #include <glib.h>
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6699
diff changeset
6 #ifdef _WIN32
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6699
diff changeset
7 #undef pipe
b14a3043ed09 [gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents: 6699
diff changeset
8 #endif
6508
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
9 #include <EXTERN.h>
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
10 #include <perl.h>
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
11 #include <XSUB.h>
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
12
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
13 #undef group
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
14
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
15 #include "../perl-common.h"
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
16
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
17 #include "account.h"
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
18 #include "connection.h"
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
19 #include "conversation.h"
6508
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
20 #include "debug.h"
6523
20c459e452ac [gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents: 6520
diff changeset
21 #include "server.h"
6508
57d1df1ca3a0 [gaim-migrate @ 7025]
Christian Hammond <chipx86@chipx86.com>
parents:
diff changeset
22
6531
3fca41d7b411 [gaim-migrate @ 7048]
Christian Hammond <chipx86@chipx86.com>
parents: 6523
diff changeset
23 typedef GaimAccount * Gaim__Account;
6699
1af918908513 [gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents: 6591
diff changeset
24 typedef GaimBuddy * Gaim__BuddyList__Buddy;
1af918908513 [gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents: 6591
diff changeset
25 typedef GaimBlistChat * Gaim__BuddyList__Chat;
1af918908513 [gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents: 6591
diff changeset
26 typedef GaimGroup * Gaim__BuddyList__Group;
1af918908513 [gaim-migrate @ 7225]
Christian Hammond <chipx86@chipx86.com>
parents: 6591
diff changeset
27 typedef GaimContact * Gaim__BuddyList__Contact;
6591
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
28 typedef GaimConnection * Gaim__Connection;
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
29 typedef GaimConversation *Gaim__Conversation;
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
30 typedef GaimChat * Gaim__Conversation__Chat;
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
31 typedef GaimIm * Gaim__Conversation__IM;
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
32 typedef GaimWindow * Gaim__ConvWindow;
cc1ab32edcdc [gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents: 6588
diff changeset
33 typedef GaimPlugin * Gaim__Plugin;
6588
187c6026c574 [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6531
diff changeset
34
187c6026c574 [gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents: 6531
diff changeset
35 typedef GaimDebugLevel Gaim__DebugLevel;

mercurial