source: qutecom-2.2/libs/3rdparty/libpurple/pidgin-2.5.1/libpurple/plugins/perl/common/Sound.xs @ 168:db0dfb5e1126

Last change on this file since 168:db0dfb5e1126 was 168:db0dfb5e1126, checked in by laurent@…, 5 years ago

add libpurple from pidgin-2.5.1 sources

File size: 879 bytes
RevLine 
[168]1#include "module.h"
2
3MODULE = Purple::Sound  PACKAGE = Purple::Sound  PREFIX = purple_sound_
4PROTOTYPES: ENABLE
5
6BOOT:
7{
8        HV *stash = gv_stashpv("Purple::SoundEventID", 1);
9
10        static const constiv *civ, const_iv[] = {
11#define const_iv(name) {#name, (IV)PURPLE_SOUND_##name}
12                const_iv(BUDDY_ARRIVE),
13                const_iv(BUDDY_LEAVE),
14                const_iv(RECEIVE),
15                const_iv(FIRST_RECEIVE),
16                const_iv(SEND),
17                const_iv(CHAT_JOIN),
18                const_iv(CHAT_LEAVE),
19                const_iv(CHAT_YOU_SAY),
20                const_iv(CHAT_SAY),
21                const_iv(POUNCE_DEFAULT),
22                const_iv(CHAT_NICK),
23        };
24
25        for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; )
26                newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));
27}
28
29void
30purple_sound_play_event(event, account)
31        Purple::SoundEventID event
32        Purple::Account account
33
34void
35purple_sound_play_file(filename, account)
36        const char *filename
37        Purple::Account account
Note: See TracBrowser for help on using the repository browser.