1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
#include "module.h"
MODULE = Purple::Debug PACKAGE = Purple::Debug PREFIX = purple_debug_
PROTOTYPES: ENABLE
BOOT:
{
HV *stash = gv_stashpv("Purple::Debug", 1);
static const constiv *civ, const_iv[] = {
#define const_iv(name) {#name, (IV)PURPLE_DEBUG_##name}
const_iv(ALL),
const_iv(MISC),
const_iv(INFO),
const_iv(WARNING),
const_iv(ERROR),
const_iv(FATAL),
};
for (civ = const_iv + sizeof(const_iv) / sizeof(const_iv[0]); civ-- > const_iv; )
newCONSTSUB(stash, (char *)civ->name, newSViv(civ->iv));
}
void
purple_debug(level, category, string)
Purple::DebugLevel level
const char *category
const char *string
CODE:
purple_debug(level, category, "%s", string);
void
purple_debug_misc(category, string)
const char *category
const char *string
CODE:
purple_debug_misc(category, "%s", string);
void
purple_debug_info(category, string)
const char *category
const char *string
CODE:
purple_debug_info(category, "%s", string);
void
purple_debug_warning(category, string)
const char *category
const char *string
CODE:
purple_debug_warning(category, "%s", string);
void
purple_debug_error(category, string)
const char *category
const char *string
CODE:
purple_debug_error(category, "%s", string);
void
purple_debug_fatal(category, string)
const char *category
const char *string
CODE:
purple_debug_fatal(category, "%s", string);
void
purple_debug_set_enabled(enabled)
gboolean enabled
gboolean
purple_debug_is_enabled()
|