view plugins/perl/common/Stringref.xs @ 13489:8b28c8bfb3c0

[gaim-migrate @ 15865] Expose the serv_* functions to perl. This wasn't previously done because this was missing from here. I held off on this for a long time because the serv_ stuff is supposed to die, but then I realized that keeping perl people from using them isn't going to help them die. So here, all eight of the perl using people can be happy, or something. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Sun, 12 Mar 2006 01:15:54 +0000
parents 96f9b4798012
children
line wrap: on
line source

#include "module.h"

MODULE = Gaim::Stringref  PACKAGE = Gaim::Stringref  PREFIX = gaim_stringref_
PROTOTYPES: ENABLE

int
gaim_stringref_cmp(s1, s2)
	Gaim::Stringref s1
	Gaim::Stringref s2

size_t
gaim_stringref_len(stringref)
	Gaim::Stringref stringref

Gaim::Stringref
gaim_stringref_new(class, value)
	const char *value
    C_ARGS:
	value

Gaim::Stringref
gaim_stringref_new_noref(class, value)
	const char *value
    C_ARGS:
	value

Gaim::Stringref
gaim_stringref_ref(stringref)
	Gaim::Stringref stringref

void
gaim_stringref_unref(stringref)
	Gaim::Stringref stringref

const char *
gaim_stringref_value(stringref)
	Gaim::Stringref stringref