sound.xs

来自「Linux下的多协议即时通讯程序源代码」· XS 代码 · 共 51 行

XS
51
字号
#include "module.h"MODULE = Purple::Sound  PACKAGE = Purple::Sound  PREFIX = purple_sound_PROTOTYPES: ENABLEBOOT:{	HV *stash = gv_stashpv("Purple::SoundEventID", 1);	static const constiv *civ, const_iv[] = {#define const_iv(name) {#name, (IV)PURPLE_SOUND_##name}		const_iv(BUDDY_ARRIVE),		const_iv(BUDDY_LEAVE),		const_iv(RECEIVE),		const_iv(FIRST_RECEIVE),		const_iv(SEND),		const_iv(CHAT_JOIN),		const_iv(CHAT_LEAVE),		const_iv(CHAT_YOU_SAY),		const_iv(CHAT_SAY),		const_iv(POUNCE_DEFAULT),		const_iv(CHAT_NICK),	};	for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; )		newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));}Purple::Sound::UiOpspurple_sound_get_ui_ops()voidpurple_sound_init()voidpurple_sound_play_event(event, account)	Purple::SoundEventID event	Purple::Account accountvoidpurple_sound_play_file(filename, account)	const char *filename	Purple::Account accountvoidpurple_sound_set_ui_ops(ops)	Purple::Sound::UiOps opsvoidpurple_sound_uninit()

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?