proxy.xs
来自「Linux下的多协议即时通讯程序源代码」· XS 代码 · 共 90 行
XS
90 行
#include "module.h"MODULE = Purple::Proxy PACKAGE = Purple::Proxy PREFIX = purple_proxy_PROTOTYPES: ENABLEBOOT:{ HV *stash = gv_stashpv("Purple::ProxyType::", 1); static const constiv *civ, const_iv[] = {#define const_iv(name) {#name, (IV)PURPLE_PROXY_##name} const_iv(USE_GLOBAL), const_iv(NONE), const_iv(HTTP), const_iv(SOCKS4), const_iv(SOCKS5), const_iv(USE_ENVVAR), }; for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; ) newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));}Purple::Handlepurple_proxy_get_handle()voidpurple_proxy_init()MODULE = Purple::Proxy PACKAGE = Purple::ProxyInfo PREFIX = purple_proxy_info_PROTOTYPES: ENABLEvoidpurple_proxy_info_destroy(info) Purple::ProxyInfo infoconst char *purple_proxy_info_get_host(info) Purple::ProxyInfo infoconst char *purple_proxy_info_get_password(info) Purple::ProxyInfo infointpurple_proxy_info_get_port(info) Purple::ProxyInfo infoPurple::ProxyTypepurple_proxy_info_get_type(info) Purple::ProxyInfo infoconst char *purple_proxy_info_get_username(info) Purple::ProxyInfo infoPurple::ProxyInfopurple_proxy_info_new()voidpurple_proxy_info_set_host(info, host) Purple::ProxyInfo info const char *hostvoidpurple_proxy_info_set_password(info, password) Purple::ProxyInfo info const char *passwordvoidpurple_proxy_info_set_port(info, port) Purple::ProxyInfo info int portvoidpurple_proxy_info_set_type(info, type) Purple::ProxyInfo info Purple::ProxyType typevoidpurple_proxy_info_set_username(info, username) Purple::ProxyInfo info const char *usernameMODULE = Purple::Proxy PACKAGE = Purple::Proxy PREFIX = purple_PROTOTYPES: ENABLEPurple::ProxyInfopurple_global_proxy_get_info()
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?