зеркало из https://github.com/github/memcached.git
17588 строки
621 KiB
C
17588 строки
621 KiB
C
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.40
|
|
*
|
|
* This file is not intended to be easily readable and contains a number of
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
* interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#define SWIGRUBY
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# elif defined(__HP_aCC)
|
|
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
|
|
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
|
# if defined(_MSC_VER)
|
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
|
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
|
# define _SCL_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# elif defined(__HP_aCC)
|
|
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
|
|
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
|
# if defined(_MSC_VER)
|
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
|
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
|
# define _SCL_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* swigrun.swg
|
|
*
|
|
* This file contains generic C API SWIG runtime support for pointer
|
|
* type checking.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
|
or for whatever reason, the runtime changes incompatibly */
|
|
#define SWIG_RUNTIME_VERSION "4"
|
|
|
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
|
#ifdef SWIG_TYPE_TABLE
|
|
# define SWIG_QUOTE_STRING(x) #x
|
|
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
|
|
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
|
|
#else
|
|
# define SWIG_TYPE_TABLE_NAME
|
|
#endif
|
|
|
|
/*
|
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
|
creating a static or dynamic library from the SWIG runtime code.
|
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
|
|
|
But only do this if strictly necessary, ie, if you have problems
|
|
with your compiler or suchlike.
|
|
*/
|
|
|
|
#ifndef SWIGRUNTIME
|
|
# define SWIGRUNTIME SWIGINTERN
|
|
#endif
|
|
|
|
#ifndef SWIGRUNTIMEINLINE
|
|
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
|
|
#endif
|
|
|
|
/* Generic buffer size */
|
|
#ifndef SWIG_BUFFER_SIZE
|
|
# define SWIG_BUFFER_SIZE 1024
|
|
#endif
|
|
|
|
/* Flags for pointer conversions */
|
|
#define SWIG_POINTER_DISOWN 0x1
|
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_OWN 0x1
|
|
|
|
|
|
/*
|
|
Flags/methods for returning states.
|
|
|
|
The SWIG conversion methods, as ConvertPtr, return and integer
|
|
that tells if the conversion was successful or not. And if not,
|
|
an error code can be returned (see swigerrors.swg for the codes).
|
|
|
|
Use the following macros/flags to set or process the returning
|
|
states.
|
|
|
|
In old versions of SWIG, code such as the following was usually written:
|
|
|
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
|
// success code
|
|
} else {
|
|
//fail code
|
|
}
|
|
|
|
Now you can be more explicit:
|
|
|
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
which is the same really, but now you can also do
|
|
|
|
Type *ptr;
|
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
if (SWIG_IsNewObj(res) {
|
|
...
|
|
delete *ptr;
|
|
} else {
|
|
...
|
|
}
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
|
identify the case and take care of the deallocation. Of course that
|
|
also requires SWIG_ConvertPtr to return new result values, such as
|
|
|
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
|
if (<obj is ok>) {
|
|
if (<need new object>) {
|
|
*ptr = <ptr to new allocated object>;
|
|
return SWIG_NEWOBJ;
|
|
} else {
|
|
*ptr = <ptr to old object>;
|
|
return SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
return SWIG_BADOBJ;
|
|
}
|
|
}
|
|
|
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
|
SWIG errors code.
|
|
|
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
|
allows to return the 'cast rank', for example, if you have this
|
|
|
|
int food(double)
|
|
int fooi(int);
|
|
|
|
and you call
|
|
|
|
food(1) // cast rank '1' (1 -> 1.0)
|
|
fooi(1) // cast rank '0'
|
|
|
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
|
*/
|
|
|
|
#define SWIG_OK (0)
|
|
#define SWIG_ERROR (-1)
|
|
#define SWIG_IsOK(r) (r >= 0)
|
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
|
|
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
|
/* The NewMask denotes the object was created (using new/malloc) */
|
|
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
|
|
/* The TmpMask is for in/out typemaps that use temporal objects */
|
|
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
|
|
/* Simple returning values */
|
|
#define SWIG_BADOBJ (SWIG_ERROR)
|
|
#define SWIG_OLDOBJ (SWIG_OK)
|
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
|
/* Check, add and del mask methods */
|
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
|
#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
|
|
|
/* Cast-Rank Mode */
|
|
#if defined(SWIG_CASTRANK_MODE)
|
|
# ifndef SWIG_TypeRank
|
|
# define SWIG_TypeRank unsigned long
|
|
# endif
|
|
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
|
|
# define SWIG_MAXCASTRANK (2)
|
|
# endif
|
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
|
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
|
}
|
|
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
|
}
|
|
#else /* no cast-rank mode */
|
|
# define SWIG_AddCast
|
|
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
|
|
#endif
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *(*swig_converter_func)(void *, int *);
|
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
|
|
|
/* Structure to store information on one type */
|
|
typedef struct swig_type_info {
|
|
const char *name; /* mangled name of this type */
|
|
const char *str; /* human readable name of this type */
|
|
swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
|
|
struct swig_cast_info *cast; /* linked list of types that can cast into this type */
|
|
void *clientdata; /* language specific type data */
|
|
int owndata; /* flag if the structure owns the clientdata */
|
|
} swig_type_info;
|
|
|
|
/* Structure to store a type and conversion function used for casting */
|
|
typedef struct swig_cast_info {
|
|
swig_type_info *type; /* pointer to type that is equivalent to this type */
|
|
swig_converter_func converter; /* function to cast the void pointers */
|
|
struct swig_cast_info *next; /* pointer to next cast in linked list */
|
|
struct swig_cast_info *prev; /* pointer to the previous cast */
|
|
} swig_cast_info;
|
|
|
|
/* Structure used to store module information
|
|
* Each module generates one structure like this, and the runtime collects
|
|
* all of these structures and stores them in a circularly linked list.*/
|
|
typedef struct swig_module_info {
|
|
swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
|
|
size_t size; /* Number of types in this module */
|
|
struct swig_module_info *next; /* Pointer to next element in circularly linked list */
|
|
swig_type_info **type_initial; /* Array of initially generated type structures */
|
|
swig_cast_info **cast_initial; /* Array of initially generated casting structures */
|
|
void *clientdata; /* Language specific module data */
|
|
} swig_module_info;
|
|
|
|
/*
|
|
Compare two type names skipping the space characters, therefore
|
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
|
|
|
Return 0 when the two name types are equivalent, as in
|
|
strncmp, but skipping ' '.
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
const char *f2, const char *l2) {
|
|
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
|
|
while ((*f1 == ' ') && (f1 != l1)) ++f1;
|
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
|
}
|
|
return (int)((l1 - f1) - (l2 - f2));
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if not equal, 1 if equal
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeEquiv(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
|
|
/*
|
|
Check the typename
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (strcmp(iter->type->name, c) == 0) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (iter->type == from) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Cast a pointer up an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIMEINLINE void *
|
|
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
|
}
|
|
|
|
/*
|
|
Dynamic pointer casting. Down an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
|
|
swig_type_info *lastty = ty;
|
|
if (!ty || !ty->dcast) return ty;
|
|
while (ty && (ty->dcast)) {
|
|
ty = (*ty->dcast)(ptr);
|
|
if (ty) lastty = ty;
|
|
}
|
|
return lastty;
|
|
}
|
|
|
|
/*
|
|
Return the name associated with this type
|
|
*/
|
|
SWIGRUNTIMEINLINE const char *
|
|
SWIG_TypeName(const swig_type_info *ty) {
|
|
return ty->name;
|
|
}
|
|
|
|
/*
|
|
Return the pretty name associated with this type,
|
|
that is an unmangled type name in a form presentable to the user.
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
|
/* The "str" field contains the equivalent pretty names of the
|
|
type, separated by vertical-bar characters. We choose
|
|
to print the last name, as it is often (?) the most
|
|
specific. */
|
|
if (!type) return NULL;
|
|
if (type->str != NULL) {
|
|
const char *last_name = type->str;
|
|
const char *s;
|
|
for (s = type->str; *s; s++)
|
|
if (*s == '|') last_name = s+1;
|
|
return last_name;
|
|
}
|
|
else
|
|
return type->name;
|
|
}
|
|
|
|
/*
|
|
Set the clientdata field for a type
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
swig_cast_info *cast = ti->cast;
|
|
/* if (ti->clientdata == clientdata) return; */
|
|
ti->clientdata = clientdata;
|
|
|
|
while (cast) {
|
|
if (!cast->converter) {
|
|
swig_type_info *tc = cast->type;
|
|
if (!tc->clientdata) {
|
|
SWIG_TypeClientData(tc, clientdata);
|
|
}
|
|
}
|
|
cast = cast->next;
|
|
}
|
|
}
|
|
SWIGRUNTIME void
|
|
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
SWIG_TypeClientData(ti, clientdata);
|
|
ti->owndata = 1;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure only by mangled name
|
|
Search is a O(log #types)
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
swig_module_info *iter = start;
|
|
do {
|
|
if (iter->size) {
|
|
register size_t l = 0;
|
|
register size_t r = iter->size - 1;
|
|
do {
|
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
|
register size_t i = (l + r) >> 1;
|
|
const char *iname = iter->types[i]->name;
|
|
if (iname) {
|
|
register int compare = strcmp(name, iname);
|
|
if (compare == 0) {
|
|
return iter->types[i];
|
|
} else if (compare < 0) {
|
|
if (i) {
|
|
r = i - 1;
|
|
} else {
|
|
break;
|
|
}
|
|
} else if (compare > 0) {
|
|
l = i + 1;
|
|
}
|
|
} else {
|
|
break; /* should never happen */
|
|
}
|
|
} while (l <= r);
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
|
It first searches the mangled names of the types, which is a O(log #types)
|
|
If a type is not found it then searches the human readable names, which is O(#types).
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
/* STEP 1: Search the name field using binary search */
|
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
|
if (ret) {
|
|
return ret;
|
|
} else {
|
|
/* STEP 2: If the type hasn't been found, do a complete search
|
|
of the str field (the human readable name) */
|
|
swig_module_info *iter = start;
|
|
do {
|
|
register size_t i = 0;
|
|
for (; i < iter->size; ++i) {
|
|
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
|
|
return iter->types[i];
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
}
|
|
|
|
/* neither found a match */
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Pack binary data into a string
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
static const char hex[17] = "0123456789abcdef";
|
|
register const unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register unsigned char uu = *u;
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
*(c++) = hex[uu & 0xf];
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Unpack binary data from a string
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
register unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register char d = *(c++);
|
|
register unsigned char uu;
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu = ((d - '0') << 4);
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu = ((d - ('a'-10)) << 4);
|
|
else
|
|
return (char *) 0;
|
|
d = *(c++);
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu |= (d - '0');
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu |= (d - ('a'-10));
|
|
else
|
|
return (char *) 0;
|
|
*u = uu;
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Pack 'void *' into a string buffer.
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
if ((2*sizeof(void *) + 2) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,&ptr,sizeof(void *));
|
|
if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
|
|
strcpy(r,name);
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
*ptr = (void *) 0;
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sizeof(void *));
|
|
}
|
|
|
|
SWIGRUNTIME char *
|
|
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
size_t lname = (name ? strlen(name) : 0);
|
|
if ((2*sz + 2 + lname) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,ptr,sz);
|
|
if (lname) {
|
|
strncpy(r,name,lname+1);
|
|
} else {
|
|
*r = 0;
|
|
}
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
memset(ptr,0,sz);
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sz);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* Errors in SWIG */
|
|
#define SWIG_UnknownError -1
|
|
#define SWIG_IOError -2
|
|
#define SWIG_RuntimeError -3
|
|
#define SWIG_IndexError -4
|
|
#define SWIG_TypeError -5
|
|
#define SWIG_DivisionByZero -6
|
|
#define SWIG_OverflowError -7
|
|
#define SWIG_SyntaxError -8
|
|
#define SWIG_ValueError -9
|
|
#define SWIG_SystemError -10
|
|
#define SWIG_AttributeError -11
|
|
#define SWIG_MemoryError -12
|
|
#define SWIG_NullReferenceError -13
|
|
|
|
|
|
|
|
#include <ruby.h>
|
|
|
|
/* Remove global macros defined in Ruby's win32.h */
|
|
#ifdef write
|
|
# undef write
|
|
#endif
|
|
#ifdef read
|
|
# undef read
|
|
#endif
|
|
#ifdef bind
|
|
# undef bind
|
|
#endif
|
|
#ifdef close
|
|
# undef close
|
|
#endif
|
|
#ifdef connect
|
|
# undef connect
|
|
#endif
|
|
|
|
|
|
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
|
|
#ifndef NUM2LL
|
|
#define NUM2LL(x) NUM2LONG((x))
|
|
#endif
|
|
#ifndef LL2NUM
|
|
#define LL2NUM(x) INT2NUM((long) (x))
|
|
#endif
|
|
#ifndef ULL2NUM
|
|
#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
|
|
#endif
|
|
|
|
/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
|
|
#ifndef NUM2ULL
|
|
#ifdef HAVE_LONG_LONG
|
|
#define NUM2ULL(x) rb_num2ull((x))
|
|
#else
|
|
#define NUM2ULL(x) NUM2ULONG(x)
|
|
#endif
|
|
#endif
|
|
|
|
/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
|
|
/* Define these for older versions so we can just write code the new way */
|
|
#ifndef RSTRING_LEN
|
|
# define RSTRING_LEN(x) RSTRING(x)->len
|
|
#endif
|
|
#ifndef RSTRING_PTR
|
|
# define RSTRING_PTR(x) RSTRING(x)->ptr
|
|
#endif
|
|
#ifndef RSTRING_END
|
|
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
|
|
#endif
|
|
#ifndef RARRAY_LEN
|
|
# define RARRAY_LEN(x) RARRAY(x)->len
|
|
#endif
|
|
#ifndef RARRAY_PTR
|
|
# define RARRAY_PTR(x) RARRAY(x)->ptr
|
|
#endif
|
|
#ifndef RFLOAT_VALUE
|
|
# define RFLOAT_VALUE(x) RFLOAT(x)->value
|
|
#endif
|
|
#ifndef DOUBLE2NUM
|
|
# define DOUBLE2NUM(x) rb_float_new(x)
|
|
#endif
|
|
#ifndef RHASH_TBL
|
|
# define RHASH_TBL(x) (RHASH(x)->tbl)
|
|
#endif
|
|
#ifndef RHASH_ITER_LEV
|
|
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
|
|
#endif
|
|
#ifndef RHASH_IFNONE
|
|
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
|
|
#endif
|
|
#ifndef RHASH_SIZE
|
|
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
|
|
#endif
|
|
#ifndef RHASH_EMPTY_P
|
|
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
|
|
#endif
|
|
#ifndef RSTRUCT_LEN
|
|
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
|
|
#endif
|
|
#ifndef RSTRUCT_PTR
|
|
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
* Need to be very careful about how these macros are defined, especially
|
|
* when compiling C++ code or C code with an ANSI C compiler.
|
|
*
|
|
* VALUEFUNC(f) is a macro used to typecast a C function that implements
|
|
* a Ruby method so that it can be passed as an argument to API functions
|
|
* like rb_define_method() and rb_define_singleton_method().
|
|
*
|
|
* VOIDFUNC(f) is a macro used to typecast a C function that implements
|
|
* either the "mark" or "free" stuff for a Ruby Data object, so that it
|
|
* can be passed as an argument to API functions like Data_Wrap_Struct()
|
|
* and Data_Make_Struct().
|
|
*/
|
|
|
|
#ifdef __cplusplus
|
|
# ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
|
|
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
|
# define VALUEFUNC(f) ((VALUE (*)()) f)
|
|
# define VOIDFUNC(f) ((void (*)()) f)
|
|
# else
|
|
# ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
|
|
# define PROTECTFUNC(f) ((VALUE (*)()) f)
|
|
# define VALUEFUNC(f) ((VALUE (*)()) f)
|
|
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
|
# else /* These definitions should work for Ruby 1.7+ */
|
|
# define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
|
|
# define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
|
|
# define VOIDFUNC(f) ((RUBY_DATA_FUNC) f)
|
|
# endif
|
|
# endif
|
|
#else
|
|
# define VALUEFUNC(f) (f)
|
|
# define VOIDFUNC(f) (f)
|
|
#endif
|
|
|
|
/* Don't use for expressions have side effect */
|
|
#ifndef RB_STRING_VALUE
|
|
#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
|
|
#endif
|
|
#ifndef StringValue
|
|
#define StringValue(s) RB_STRING_VALUE(s)
|
|
#endif
|
|
#ifndef StringValuePtr
|
|
#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
|
|
#endif
|
|
#ifndef StringValueLen
|
|
#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
|
|
#endif
|
|
#ifndef SafeStringValue
|
|
#define SafeStringValue(v) do {\
|
|
StringValue(v);\
|
|
rb_check_safe_str(v);\
|
|
} while (0)
|
|
#endif
|
|
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
|
|
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
|
|
#endif
|
|
|
|
static VALUE _mSWIG = Qnil;
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* error manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
/* Define some additional error types */
|
|
#define SWIG_ObjectPreviouslyDeletedError -100
|
|
|
|
|
|
/* Define custom exceptions for errors that do not map to existing Ruby
|
|
exceptions. Note this only works for C++ since a global cannot be
|
|
initialized by a funtion in C. For C, fallback to rb_eRuntimeError.*/
|
|
|
|
SWIGINTERN VALUE
|
|
getNullReferenceError(void) {
|
|
static int init = 0;
|
|
static VALUE rb_eNullReferenceError ;
|
|
if (!init) {
|
|
init = 1;
|
|
rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
|
}
|
|
return rb_eNullReferenceError;
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
getObjectPreviouslyDeletedError(void) {
|
|
static int init = 0;
|
|
static VALUE rb_eObjectPreviouslyDeleted ;
|
|
if (!init) {
|
|
init = 1;
|
|
rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
|
|
}
|
|
return rb_eObjectPreviouslyDeleted;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
SWIG_Ruby_ErrorType(int SWIG_code) {
|
|
VALUE type;
|
|
switch (SWIG_code) {
|
|
case SWIG_MemoryError:
|
|
type = rb_eNoMemError;
|
|
break;
|
|
case SWIG_IOError:
|
|
type = rb_eIOError;
|
|
break;
|
|
case SWIG_RuntimeError:
|
|
type = rb_eRuntimeError;
|
|
break;
|
|
case SWIG_IndexError:
|
|
type = rb_eIndexError;
|
|
break;
|
|
case SWIG_TypeError:
|
|
type = rb_eTypeError;
|
|
break;
|
|
case SWIG_DivisionByZero:
|
|
type = rb_eZeroDivError;
|
|
break;
|
|
case SWIG_OverflowError:
|
|
type = rb_eRangeError;
|
|
break;
|
|
case SWIG_SyntaxError:
|
|
type = rb_eSyntaxError;
|
|
break;
|
|
case SWIG_ValueError:
|
|
type = rb_eArgError;
|
|
break;
|
|
case SWIG_SystemError:
|
|
type = rb_eFatal;
|
|
break;
|
|
case SWIG_AttributeError:
|
|
type = rb_eRuntimeError;
|
|
break;
|
|
case SWIG_NullReferenceError:
|
|
type = getNullReferenceError();
|
|
break;
|
|
case SWIG_ObjectPreviouslyDeletedError:
|
|
type = getObjectPreviouslyDeletedError();
|
|
break;
|
|
case SWIG_UnknownError:
|
|
type = rb_eRuntimeError;
|
|
break;
|
|
default:
|
|
type = rb_eRuntimeError;
|
|
}
|
|
return type;
|
|
}
|
|
|
|
|
|
/* This function is called when a user inputs a wrong argument to
|
|
a method.
|
|
*/
|
|
SWIGINTERN
|
|
const char* Ruby_Format_TypeError( const char* msg,
|
|
const char* type,
|
|
const char* name,
|
|
const int argn,
|
|
VALUE input )
|
|
{
|
|
char buf[128];
|
|
VALUE str;
|
|
VALUE asStr;
|
|
if ( msg && *msg )
|
|
{
|
|
str = rb_str_new2(msg);
|
|
}
|
|
else
|
|
{
|
|
str = rb_str_new(NULL, 0);
|
|
}
|
|
|
|
str = rb_str_cat2( str, "Expected argument " );
|
|
sprintf( buf, "%d of type ", argn-1 );
|
|
str = rb_str_cat2( str, buf );
|
|
str = rb_str_cat2( str, type );
|
|
str = rb_str_cat2( str, ", but got " );
|
|
str = rb_str_cat2( str, rb_obj_classname(input) );
|
|
str = rb_str_cat2( str, " " );
|
|
asStr = rb_inspect(input);
|
|
if ( RSTRING_LEN(asStr) > 30 )
|
|
{
|
|
str = rb_str_cat( str, StringValuePtr(asStr), 30 );
|
|
str = rb_str_cat2( str, "..." );
|
|
}
|
|
else
|
|
{
|
|
str = rb_str_append( str, asStr );
|
|
}
|
|
|
|
if ( name )
|
|
{
|
|
str = rb_str_cat2( str, "\n\tin SWIG method '" );
|
|
str = rb_str_cat2( str, name );
|
|
str = rb_str_cat2( str, "'" );
|
|
}
|
|
|
|
return StringValuePtr( str );
|
|
}
|
|
|
|
/* This function is called when an overloaded method fails */
|
|
SWIGINTERN
|
|
void Ruby_Format_OverloadedError(
|
|
const int argc,
|
|
const int maxargs,
|
|
const char* method,
|
|
const char* prototypes
|
|
)
|
|
{
|
|
const char* msg = "Wrong # of arguments";
|
|
if ( argc <= maxargs ) msg = "Wrong arguments";
|
|
rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
|
|
"Possible C/C++ prototypes are:\n%s",
|
|
msg, method, prototypes);
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* See the LICENSE file for information on copyright, usage and redistribution
|
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
*
|
|
* rubytracking.swg
|
|
*
|
|
* This file contains support for tracking mappings from
|
|
* Ruby objects to C++ objects. This functionality is needed
|
|
* to implement mark functions for Ruby's mark and sweep
|
|
* garbage collector.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Ruby 1.8 actually assumes the first case. */
|
|
#if SIZEOF_VOIDP == SIZEOF_LONG
|
|
# define SWIG2NUM(v) LONG2NUM((unsigned long)v)
|
|
# define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
|
|
#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
|
|
# define SWIG2NUM(v) LL2NUM((unsigned long long)v)
|
|
# define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
|
|
#else
|
|
# error sizeof(void*) is not the same as long or long long
|
|
#endif
|
|
|
|
|
|
/* Global Ruby hash table to store Trackings from C/C++
|
|
structs to Ruby Objects.
|
|
*/
|
|
static VALUE swig_ruby_trackings = Qnil;
|
|
|
|
/* Global variable that stores a reference to the ruby
|
|
hash table delete function. */
|
|
static ID swig_ruby_hash_delete;
|
|
|
|
/* Setup a Ruby hash table to store Trackings */
|
|
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
|
|
/* Create a ruby hash table to store Trackings from C++
|
|
objects to Ruby objects. */
|
|
|
|
/* Try to see if some other .so has already created a
|
|
tracking hash table, which we keep hidden in an instance var
|
|
in the SWIG module.
|
|
This is done to allow multiple DSOs to share the same
|
|
tracking table.
|
|
*/
|
|
ID trackings_id = rb_intern( "@__trackings__" );
|
|
VALUE verbose = rb_gv_get("VERBOSE");
|
|
rb_gv_set("VERBOSE", Qfalse);
|
|
swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
|
|
rb_gv_set("VERBOSE", verbose);
|
|
|
|
/* No, it hasn't. Create one ourselves */
|
|
if ( swig_ruby_trackings == Qnil )
|
|
{
|
|
swig_ruby_trackings = rb_hash_new();
|
|
rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
|
|
}
|
|
|
|
/* Now store a reference to the hash table delete function
|
|
so that we only have to look it up once.*/
|
|
swig_ruby_hash_delete = rb_intern("delete");
|
|
}
|
|
|
|
/* Get a Ruby number to reference a pointer */
|
|
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
|
|
/* We cast the pointer to an unsigned long
|
|
and then store a reference to it using
|
|
a Ruby number object. */
|
|
|
|
/* Convert the pointer to a Ruby number */
|
|
return SWIG2NUM(ptr);
|
|
}
|
|
|
|
/* Get a Ruby number to reference an object */
|
|
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
|
|
/* We cast the object to an unsigned long
|
|
and then store a reference to it using
|
|
a Ruby number object. */
|
|
|
|
/* Convert the Object to a Ruby number */
|
|
return SWIG2NUM(object);
|
|
}
|
|
|
|
/* Get a Ruby object from a previously stored reference */
|
|
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
|
|
/* The provided Ruby number object is a reference
|
|
to the Ruby object we want.*/
|
|
|
|
/* Convert the Ruby number to a Ruby object */
|
|
return NUM2SWIG(reference);
|
|
}
|
|
|
|
/* Add a Tracking from a C/C++ struct to a Ruby object */
|
|
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
|
|
/* In a Ruby hash table we store the pointer and
|
|
the associated Ruby object. The trick here is
|
|
that we cannot store the Ruby object directly - if
|
|
we do then it cannot be garbage collected. So
|
|
instead we typecast it as a unsigned long and
|
|
convert it to a Ruby number object.*/
|
|
|
|
/* Get a reference to the pointer as a Ruby number */
|
|
VALUE key = SWIG_RubyPtrToReference(ptr);
|
|
|
|
/* Get a reference to the Ruby object as a Ruby number */
|
|
VALUE value = SWIG_RubyObjectToReference(object);
|
|
|
|
/* Store the mapping to the global hash table. */
|
|
rb_hash_aset(swig_ruby_trackings, key, value);
|
|
}
|
|
|
|
/* Get the Ruby object that owns the specified C/C++ struct */
|
|
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
|
|
/* Get a reference to the pointer as a Ruby number */
|
|
VALUE key = SWIG_RubyPtrToReference(ptr);
|
|
|
|
/* Now lookup the value stored in the global hash table */
|
|
VALUE value = rb_hash_aref(swig_ruby_trackings, key);
|
|
|
|
if (value == Qnil) {
|
|
/* No object exists - return nil. */
|
|
return Qnil;
|
|
}
|
|
else {
|
|
/* Convert this value to Ruby object */
|
|
return SWIG_RubyReferenceToObject(value);
|
|
}
|
|
}
|
|
|
|
/* Remove a Tracking from a C/C++ struct to a Ruby object. It
|
|
is very important to remove objects once they are destroyed
|
|
since the same memory address may be reused later to create
|
|
a new object. */
|
|
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
|
|
/* Get a reference to the pointer as a Ruby number */
|
|
VALUE key = SWIG_RubyPtrToReference(ptr);
|
|
|
|
/* Delete the object from the hash table by calling Ruby's
|
|
do this we need to call the Hash.delete method.*/
|
|
rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
|
|
}
|
|
|
|
/* This is a helper method that unlinks a Ruby object from its
|
|
underlying C++ object. This is needed if the lifetime of the
|
|
Ruby object is longer than the C++ object */
|
|
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
|
|
VALUE object = SWIG_RubyInstanceFor(ptr);
|
|
|
|
if (object != Qnil) {
|
|
DATA_PTR(object) = 0;
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Ruby API portion that goes into the runtime
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
SWIGINTERN VALUE
|
|
SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
if (NIL_P(target)) {
|
|
target = o;
|
|
} else {
|
|
if (TYPE(target) != T_ARRAY) {
|
|
VALUE o2 = target;
|
|
target = rb_ary_new();
|
|
rb_ary_push(target, o2);
|
|
}
|
|
rb_ary_push(target, o);
|
|
}
|
|
return target;
|
|
}
|
|
|
|
/* For ruby1.8.4 and earlier. */
|
|
#ifndef RUBY_INIT_STACK
|
|
RUBY_EXTERN void Init_stack(VALUE* addr);
|
|
# define RUBY_INIT_STACK \
|
|
VALUE variable_in_this_stack_frame; \
|
|
Init_stack(&variable_in_this_stack_frame);
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* See the LICENSE file for information on copyright, usage and redistribution
|
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
*
|
|
* rubyrun.swg
|
|
*
|
|
* This file contains the runtime support for Ruby modules
|
|
* and includes code for managing global variables and pointer
|
|
* type checking.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* For backward compatibility only */
|
|
#define SWIG_POINTER_EXCEPTION 0
|
|
|
|
/* for raw pointers */
|
|
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
|
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Ruby_NewPointerObj(ptr, type, flags)
|
|
#define SWIG_AcquirePtr(ptr, own) SWIG_Ruby_AcquirePtr(ptr, own)
|
|
#define swig_owntype ruby_owntype
|
|
|
|
/* for raw packed data */
|
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
|
|
#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
|
|
|
|
/* for class or struct pointers */
|
|
#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
|
|
#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
|
|
|
|
/* for C or C++ function pointers */
|
|
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_ConvertPtr(obj, pptr, type, 0)
|
|
#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_NewPointerObj(ptr, type, 0)
|
|
|
|
/* for C++ member pointers, ie, member methods */
|
|
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
|
|
#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Ruby_NewPackedObj(ptr, sz, type)
|
|
|
|
|
|
/* Runtime API */
|
|
|
|
#define SWIG_GetModule(clientdata) SWIG_Ruby_GetModule()
|
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Ruby_SetModule(pointer)
|
|
|
|
|
|
/* Error manipulation */
|
|
|
|
#define SWIG_ErrorType(code) SWIG_Ruby_ErrorType(code)
|
|
#define SWIG_Error(code, msg) rb_raise(SWIG_Ruby_ErrorType(code), msg)
|
|
#define SWIG_fail goto fail
|
|
|
|
|
|
/* Ruby-specific SWIG API */
|
|
|
|
#define SWIG_InitRuntime() SWIG_Ruby_InitRuntime()
|
|
#define SWIG_define_class(ty) SWIG_Ruby_define_class(ty)
|
|
#define SWIG_NewClassInstance(value, ty) SWIG_Ruby_NewClassInstance(value, ty)
|
|
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
|
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
|
|
|
#include "assert.h"
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* pointers/data manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
VALUE klass;
|
|
VALUE mImpl;
|
|
void (*mark)(void *);
|
|
void (*destroy)(void *);
|
|
int trackObjects;
|
|
} swig_class;
|
|
|
|
|
|
/* Global pointer used to keep some internal SWIG stuff */
|
|
static VALUE _cSWIG_Pointer = Qnil;
|
|
static VALUE swig_runtime_data_type_pointer = Qnil;
|
|
|
|
/* Global IDs used to keep some internal SWIG stuff */
|
|
static ID swig_arity_id = 0;
|
|
static ID swig_call_id = 0;
|
|
|
|
/*
|
|
If your swig extension is to be run within an embedded ruby and has
|
|
director callbacks, you should set -DRUBY_EMBEDDED during compilation.
|
|
This will reset ruby's stack frame on each entry point from the main
|
|
program the first time a virtual director function is invoked (in a
|
|
non-recursive way).
|
|
If this is not done, you run the risk of Ruby trashing the stack.
|
|
*/
|
|
|
|
#ifdef RUBY_EMBEDDED
|
|
|
|
# define SWIG_INIT_STACK \
|
|
if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
|
|
++swig_virtual_calls;
|
|
# define SWIG_RELEASE_STACK --swig_virtual_calls;
|
|
# define Ruby_DirectorTypeMismatchException(x) \
|
|
rb_raise( rb_eTypeError, x ); return c_result;
|
|
|
|
static unsigned int swig_virtual_calls = 0;
|
|
|
|
#else /* normal non-embedded extension */
|
|
|
|
# define SWIG_INIT_STACK
|
|
# define SWIG_RELEASE_STACK
|
|
# define Ruby_DirectorTypeMismatchException(x) \
|
|
throw Swig::DirectorTypeMismatchException( x );
|
|
|
|
#endif /* RUBY_EMBEDDED */
|
|
|
|
|
|
SWIGRUNTIME VALUE
|
|
getExceptionClass(void) {
|
|
static int init = 0;
|
|
static VALUE rubyExceptionClass ;
|
|
if (!init) {
|
|
init = 1;
|
|
rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
|
|
}
|
|
return rubyExceptionClass;
|
|
}
|
|
|
|
/* This code checks to see if the Ruby object being raised as part
|
|
of an exception inherits from the Ruby class Exception. If so,
|
|
the object is simply returned. If not, then a new Ruby exception
|
|
object is created and that will be returned to Ruby.*/
|
|
SWIGRUNTIME VALUE
|
|
SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
|
|
VALUE exceptionClass = getExceptionClass();
|
|
if (rb_obj_is_kind_of(obj, exceptionClass)) {
|
|
return obj;
|
|
} else {
|
|
return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
|
|
}
|
|
}
|
|
|
|
/* Initialize Ruby runtime support */
|
|
SWIGRUNTIME void
|
|
SWIG_Ruby_InitRuntime(void)
|
|
{
|
|
if (_mSWIG == Qnil) {
|
|
_mSWIG = rb_define_module("SWIG");
|
|
swig_call_id = rb_intern("call");
|
|
swig_arity_id = rb_intern("arity");
|
|
}
|
|
}
|
|
|
|
/* Define Ruby class for C type */
|
|
SWIGRUNTIME void
|
|
SWIG_Ruby_define_class(swig_type_info *type)
|
|
{
|
|
VALUE klass;
|
|
char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
|
sprintf(klass_name, "TYPE%s", type->name);
|
|
if (NIL_P(_cSWIG_Pointer)) {
|
|
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
|
|
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
|
|
}
|
|
klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
|
|
free((void *) klass_name);
|
|
}
|
|
|
|
/* Create a new pointer object */
|
|
SWIGRUNTIME VALUE
|
|
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
|
|
{
|
|
int own = flags & SWIG_POINTER_OWN;
|
|
int track;
|
|
char *klass_name;
|
|
swig_class *sklass;
|
|
VALUE klass;
|
|
VALUE obj;
|
|
|
|
if (!ptr)
|
|
return Qnil;
|
|
|
|
if (type->clientdata) {
|
|
sklass = (swig_class *) type->clientdata;
|
|
|
|
/* Are we tracking this class and have we already returned this Ruby object? */
|
|
track = sklass->trackObjects;
|
|
if (track) {
|
|
obj = SWIG_RubyInstanceFor(ptr);
|
|
|
|
/* Check the object's type and make sure it has the correct type.
|
|
It might not in cases where methods do things like
|
|
downcast methods. */
|
|
if (obj != Qnil) {
|
|
VALUE value = rb_iv_get(obj, "@__swigtype__");
|
|
char* type_name = RSTRING_PTR(value);
|
|
|
|
if (strcmp(type->name, type_name) == 0) {
|
|
return obj;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Create a new Ruby object */
|
|
obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
|
|
( own ? VOIDFUNC(sklass->destroy) :
|
|
(track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
|
|
), ptr);
|
|
|
|
/* If tracking is on for this class then track this object. */
|
|
if (track) {
|
|
SWIG_RubyAddTracking(ptr, obj);
|
|
}
|
|
} else {
|
|
klass_name = (char *) malloc(4 + strlen(type->name) + 1);
|
|
sprintf(klass_name, "TYPE%s", type->name);
|
|
klass = rb_const_get(_mSWIG, rb_intern(klass_name));
|
|
free((void *) klass_name);
|
|
obj = Data_Wrap_Struct(klass, 0, 0, ptr);
|
|
}
|
|
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
|
|
|
return obj;
|
|
}
|
|
|
|
/* Create a new class instance (always owned) */
|
|
SWIGRUNTIME VALUE
|
|
SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
|
|
{
|
|
VALUE obj;
|
|
swig_class *sklass = (swig_class *) type->clientdata;
|
|
obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
|
|
rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
|
|
return obj;
|
|
}
|
|
|
|
/* Get type mangle from class name */
|
|
SWIGRUNTIMEINLINE char *
|
|
SWIG_Ruby_MangleStr(VALUE obj)
|
|
{
|
|
VALUE stype = rb_iv_get(obj, "@__swigtype__");
|
|
return StringValuePtr(stype);
|
|
}
|
|
|
|
/* Acquire a pointer value */
|
|
typedef void (*ruby_owntype)(void*);
|
|
|
|
SWIGRUNTIME ruby_owntype
|
|
SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
|
|
if (obj) {
|
|
ruby_owntype oldown = RDATA(obj)->dfree;
|
|
RDATA(obj)->dfree = own;
|
|
return oldown;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/* Convert a pointer value */
|
|
SWIGRUNTIME int
|
|
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
|
|
{
|
|
char *c;
|
|
swig_cast_info *tc;
|
|
void *vptr = 0;
|
|
|
|
/* Grab the pointer */
|
|
if (NIL_P(obj)) {
|
|
*ptr = 0;
|
|
return SWIG_OK;
|
|
} else {
|
|
if (TYPE(obj) != T_DATA) {
|
|
return SWIG_ERROR;
|
|
}
|
|
Data_Get_Struct(obj, void, vptr);
|
|
}
|
|
|
|
if (own) *own = RDATA(obj)->dfree;
|
|
|
|
/* Check to see if the input object is giving up ownership
|
|
of the underlying C struct or C++ object. If so then we
|
|
need to reset the destructor since the Ruby object no
|
|
longer owns the underlying C++ object.*/
|
|
if (flags & SWIG_POINTER_DISOWN) {
|
|
/* Is tracking on for this class? */
|
|
int track = 0;
|
|
if (ty && ty->clientdata) {
|
|
swig_class *sklass = (swig_class *) ty->clientdata;
|
|
track = sklass->trackObjects;
|
|
}
|
|
|
|
if (track) {
|
|
/* We are tracking objects for this class. Thus we change the destructor
|
|
* to SWIG_RubyRemoveTracking. This allows us to
|
|
* remove the mapping from the C++ to Ruby object
|
|
* when the Ruby object is garbage collected. If we don't
|
|
* do this, then it is possible we will return a reference
|
|
* to a Ruby object that no longer exists thereby crashing Ruby. */
|
|
RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
|
|
} else {
|
|
RDATA(obj)->dfree = 0;
|
|
}
|
|
}
|
|
|
|
/* Do type-checking if type info was provided */
|
|
if (ty) {
|
|
if (ty->clientdata) {
|
|
if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
|
|
if (vptr == 0) {
|
|
/* The object has already been deleted */
|
|
return SWIG_ObjectPreviouslyDeletedError;
|
|
}
|
|
*ptr = vptr;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
if ((c = SWIG_MangleStr(obj)) == NULL) {
|
|
return SWIG_ERROR;
|
|
}
|
|
tc = SWIG_TypeCheck(c, ty);
|
|
if (!tc) {
|
|
return SWIG_ERROR;
|
|
} else {
|
|
int newmemory = 0;
|
|
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
|
assert(!newmemory); /* newmemory handling not yet implemented */
|
|
}
|
|
} else {
|
|
*ptr = vptr;
|
|
}
|
|
|
|
return SWIG_OK;
|
|
}
|
|
|
|
/* Check convert */
|
|
SWIGRUNTIMEINLINE int
|
|
SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
|
|
{
|
|
char *c = SWIG_MangleStr(obj);
|
|
if (!c) return 0;
|
|
return SWIG_TypeCheck(c,ty) != 0;
|
|
}
|
|
|
|
SWIGRUNTIME VALUE
|
|
SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
|
char result[1024];
|
|
char *r = result;
|
|
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r, ptr, sz);
|
|
strcpy(r, type->name);
|
|
return rb_str_new2(result);
|
|
}
|
|
|
|
/* Convert a packed value value */
|
|
SWIGRUNTIME int
|
|
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
|
|
swig_cast_info *tc;
|
|
const char *c;
|
|
|
|
if (TYPE(obj) != T_STRING) goto type_error;
|
|
c = StringValuePtr(obj);
|
|
/* Pointer values must start with leading underscore */
|
|
if (*c != '_') goto type_error;
|
|
c++;
|
|
c = SWIG_UnpackData(c, ptr, sz);
|
|
if (ty) {
|
|
tc = SWIG_TypeCheck(c, ty);
|
|
if (!tc) goto type_error;
|
|
}
|
|
return SWIG_OK;
|
|
|
|
type_error:
|
|
return SWIG_ERROR;
|
|
}
|
|
|
|
SWIGRUNTIME swig_module_info *
|
|
SWIG_Ruby_GetModule(void)
|
|
{
|
|
VALUE pointer;
|
|
swig_module_info *ret = 0;
|
|
VALUE verbose = rb_gv_get("VERBOSE");
|
|
|
|
/* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
|
|
rb_gv_set("VERBOSE", Qfalse);
|
|
|
|
/* first check if pointer already created */
|
|
pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
|
|
if (pointer != Qnil) {
|
|
Data_Get_Struct(pointer, swig_module_info, ret);
|
|
}
|
|
|
|
/* reinstate warnings */
|
|
rb_gv_set("VERBOSE", verbose);
|
|
return ret;
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Ruby_SetModule(swig_module_info *pointer)
|
|
{
|
|
/* register a new class */
|
|
VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
|
|
/* create and store the structure pointer to a global variable */
|
|
swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
|
|
rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
|
|
}
|
|
|
|
/* This function can be used to check whether a proc or method or similarly
|
|
callable function has been passed. Usually used in a %typecheck, like:
|
|
|
|
%typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
|
|
$result = SWIG_Ruby_isCallable( $input );
|
|
}
|
|
*/
|
|
SWIGINTERN
|
|
int SWIG_Ruby_isCallable( VALUE proc )
|
|
{
|
|
if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
|
|
return 1;
|
|
return 0;
|
|
}
|
|
|
|
/* This function can be used to check the arity (number of arguments)
|
|
a proc or method can take. Usually used in a %typecheck.
|
|
Valid arities will be that equal to minimal or those < 0
|
|
which indicate a variable number of parameters at the end.
|
|
*/
|
|
SWIGINTERN
|
|
int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
{
|
|
if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
|
|
{
|
|
VALUE num = rb_funcall( proc, swig_arity_id, 0 );
|
|
int arity = NUM2INT(num);
|
|
if ( arity < 0 && (arity+1) < -minimal ) return 1;
|
|
if ( arity == minimal ) return 1;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
|
|
|
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
#define SWIGTYPE_p__allocators_st swig_types[0]
|
|
#define SWIGTYPE_p_addrinfo swig_types[1]
|
|
#define SWIGTYPE_p_char swig_types[2]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st__memcached_return_t swig_types[3]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t swig_types[4]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t swig_types[5]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_p_void__void swig_types[6]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void swig_types[7]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void swig_types[8]
|
|
#define SWIGTYPE_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void swig_types[9]
|
|
#define SWIGTYPE_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t swig_types[10]
|
|
#define SWIGTYPE_p_hashkit_st swig_types[11]
|
|
#define SWIGTYPE_p_int32_t swig_types[12]
|
|
#define SWIGTYPE_p_memcached_analysis_st swig_types[13]
|
|
#define SWIGTYPE_p_memcached_behavior_t swig_types[14]
|
|
#define SWIGTYPE_p_memcached_callback_st swig_types[15]
|
|
#define SWIGTYPE_p_memcached_callback_t swig_types[16]
|
|
#define SWIGTYPE_p_memcached_connection_t swig_types[17]
|
|
#define SWIGTYPE_p_memcached_continuum_item_st swig_types[18]
|
|
#define SWIGTYPE_p_memcached_hash_t swig_types[19]
|
|
#define SWIGTYPE_p_memcached_result_st swig_types[20]
|
|
#define SWIGTYPE_p_memcached_result_st_options swig_types[21]
|
|
#define SWIGTYPE_p_memcached_return_t swig_types[22]
|
|
#define SWIGTYPE_p_memcached_server_distribution_t swig_types[23]
|
|
#define SWIGTYPE_p_memcached_server_st swig_types[24]
|
|
#define SWIGTYPE_p_memcached_server_st_options swig_types[25]
|
|
#define SWIGTYPE_p_memcached_server_st_state swig_types[26]
|
|
#define SWIGTYPE_p_memcached_st swig_types[27]
|
|
#define SWIGTYPE_p_memcached_st_allocators swig_types[28]
|
|
#define SWIGTYPE_p_memcached_st_flags swig_types[29]
|
|
#define SWIGTYPE_p_memcached_st_options swig_types[30]
|
|
#define SWIGTYPE_p_memcached_st_state swig_types[31]
|
|
#define SWIGTYPE_p_memcached_stat_st swig_types[32]
|
|
#define SWIGTYPE_p_memcached_string_st swig_types[33]
|
|
#define SWIGTYPE_p_memcached_string_st_options swig_types[34]
|
|
#define SWIGTYPE_p_p_char swig_types[35]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st__memcached_return_t swig_types[36]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t swig_types[37]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t swig_types[38]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t swig_types[39]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t swig_types[40]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t swig_types[41]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void swig_types[42]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void swig_types[43]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void swig_types[44]
|
|
#define SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void swig_types[45]
|
|
#define SWIGTYPE_p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t swig_types[46]
|
|
#define SWIGTYPE_p_sasl_callback_t swig_types[47]
|
|
#define SWIGTYPE_p_size_t swig_types[48]
|
|
#define SWIGTYPE_p_time_t swig_types[49]
|
|
#define SWIGTYPE_p_uint32_t swig_types[50]
|
|
#define SWIGTYPE_p_uint64_t swig_types[51]
|
|
static swig_type_info *swig_types[53];
|
|
static swig_module_info swig_module = {swig_types, 52, 0, 0, 0, 0};
|
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
#define SWIG_init Init_rlibmemcached
|
|
#define SWIG_name "Rlibmemcached"
|
|
|
|
static VALUE mRlibmemcached;
|
|
|
|
#define SWIG_RUBY_THREAD_BEGIN_BLOCK
|
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
|
|
|
|
|
#define SWIGVERSION 0x010340
|
|
#define SWIG_VERSION SWIGVERSION
|
|
|
|
|
|
#define SWIG_as_voidptr(a) (void *)((const void *)(a))
|
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),(void**)(a))
|
|
|
|
|
|
#include <sasl/sasl.h>
|
|
#include <libmemcached/memcached.h>
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Ruby 1.9 changed the file name of this header
|
|
#ifdef HAVE_RUBY_IO_H
|
|
#include "ruby/io.h"
|
|
#else
|
|
#include "rubyio.h"
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
#ifdef HAVE_SYS_TIME_H
|
|
# include <sys/time.h>
|
|
struct timeval rb_time_timeval(VALUE);
|
|
#endif
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
|
|
#include <limits.h>
|
|
#if !defined(SWIG_NO_LLONG_MAX)
|
|
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
|
# define LLONG_MAX __LONG_LONG_MAX__
|
|
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
|
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
|
# endif
|
|
#endif
|
|
|
|
|
|
#define SWIG_From_long LONG2NUM
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_int (int value)
|
|
{
|
|
return SWIG_From_long (value);
|
|
}
|
|
|
|
|
|
SWIGINTERN swig_type_info*
|
|
SWIG_pchar_descriptor(void)
|
|
{
|
|
static int init = 0;
|
|
static swig_type_info* info = 0;
|
|
if (!init) {
|
|
info = SWIG_TypeQuery("_p_char");
|
|
init = 1;
|
|
}
|
|
return info;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
{
|
|
if (carray) {
|
|
if (size > LONG_MAX) {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
return pchar_descriptor ?
|
|
SWIG_NewPointerObj((char *)(carray), pchar_descriptor, 0) : Qnil;
|
|
} else {
|
|
return rb_str_new(carray, (long)(size));
|
|
}
|
|
} else {
|
|
return Qnil;
|
|
}
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_FromCharPtr(const char *cptr)
|
|
{
|
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
SWIG_ruby_failed(void)
|
|
{
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
/*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
|
{
|
|
VALUE obj = args[0];
|
|
VALUE type = TYPE(obj);
|
|
long *res = (long *)(args[1]);
|
|
*res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
|
|
return obj;
|
|
}
|
|
/*@SWIG@*/
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_long (VALUE obj, long* val)
|
|
{
|
|
VALUE type = TYPE(obj);
|
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
long v;
|
|
VALUE a[2];
|
|
a[0] = obj;
|
|
a[1] = (VALUE)(&v);
|
|
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_int (VALUE obj, int *val)
|
|
{
|
|
long v;
|
|
int res = SWIG_AsVal_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v < INT_MIN || v > INT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = (int)(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
/*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
{
|
|
VALUE obj = args[0];
|
|
VALUE type = TYPE(obj);
|
|
unsigned long *res = (unsigned long *)(args[1]);
|
|
*res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj);
|
|
return obj;
|
|
}
|
|
/*@SWIG@*/
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
|
|
{
|
|
VALUE type = TYPE(obj);
|
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
unsigned long v;
|
|
VALUE a[2];
|
|
a[0] = obj;
|
|
a[1] = (VALUE)(&v);
|
|
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE int
|
|
SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
|
if (SWIG_IsOK(res) && val) *val = (size_t)(v);
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
|
{
|
|
return ULONG2NUM(value);
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_size_t (size_t value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
{
|
|
if (TYPE(obj) == T_STRING) {
|
|
#if defined(StringValuePtr)
|
|
char *cstr = StringValuePtr(obj);
|
|
#else
|
|
char *cstr = STR2CSTR(obj);
|
|
#endif
|
|
size_t size = RSTRING_LEN(obj) + 1;
|
|
if (cptr) {
|
|
if (alloc) {
|
|
if (*alloc == SWIG_NEWOBJ) {
|
|
*cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size));
|
|
} else {
|
|
*cptr = cstr;
|
|
*alloc = SWIG_OLDOBJ;
|
|
}
|
|
}
|
|
}
|
|
if (psize) *psize = size;
|
|
return SWIG_OK;
|
|
} else {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
if (pchar_descriptor) {
|
|
void* vptr = 0;
|
|
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
|
if (cptr) *cptr = (char *)vptr;
|
|
if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
|
|
if (alloc) *alloc = SWIG_OLDOBJ;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharArray(VALUE obj, char *val, size_t size)
|
|
{
|
|
char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
|
|
int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
|
|
if (csize <= size) {
|
|
if (val) {
|
|
if (csize) memcpy(val, cptr, csize*sizeof(char));
|
|
if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) {
|
|
free((char*)cptr);
|
|
res = SWIG_DelNewMask(res);
|
|
}
|
|
return res;
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) free((char*)cptr);
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
typedef struct {
|
|
bool is_allocated :1;
|
|
} memcached_st_options;
|
|
|
|
|
|
|
|
typedef struct {
|
|
memcached_calloc_fn calloc;
|
|
memcached_free_fn free;
|
|
memcached_malloc_fn malloc;
|
|
memcached_realloc_fn realloc;
|
|
void *context;
|
|
} memcached_st_allocators;
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
bool auto_eject_hosts :1;
|
|
bool binary_protocol :1;
|
|
bool buffer_requests :1;
|
|
bool cork :1;
|
|
bool hash_with_prefix_key :1;
|
|
bool ketama_weighted :1;
|
|
bool no_block :1;
|
|
bool no_reply :1;
|
|
bool randomize_replica_read :1;
|
|
bool reuse_memory :1;
|
|
bool support_cas :1;
|
|
bool tcp_nodelay :1;
|
|
bool use_cache_lookups :1;
|
|
bool use_sort_hosts :1;
|
|
bool use_udp :1;
|
|
bool verify_key :1;
|
|
} memcached_st_flags;
|
|
|
|
|
|
|
|
typedef struct {
|
|
bool is_purging :1;
|
|
bool is_processing_input :1;
|
|
} memcached_st_state;
|
|
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_bool (VALUE obj, bool *val)
|
|
{
|
|
if (obj == Qtrue) {
|
|
if (val) *val = true;
|
|
return SWIG_OK;
|
|
} else if (obj == Qfalse) {
|
|
if (val) *val = false;
|
|
return SWIG_OK;
|
|
} else {
|
|
int res = 0;
|
|
if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
|
|
if (val) *val = res ? true : false;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_bool (bool value)
|
|
{
|
|
return value ? Qtrue : Qfalse;
|
|
}
|
|
|
|
|
|
/*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
|
|
{
|
|
VALUE obj = args[0];
|
|
VALUE type = TYPE(obj);
|
|
double *res = (double *)(args[1]);
|
|
*res = NUM2DBL(obj);
|
|
return obj;
|
|
}
|
|
/*@SWIG@*/
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_double (VALUE obj, double *val)
|
|
{
|
|
VALUE type = TYPE(obj);
|
|
if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
double v;
|
|
VALUE a[2];
|
|
a[0] = obj;
|
|
a[1] = (VALUE)(&v);
|
|
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
#define SWIG_From_double rb_float_new
|
|
|
|
|
|
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_long_SS_long (long long value)
|
|
{
|
|
return LL2NUM(value);
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_unsigned_SS_long_SS_long (unsigned long long value)
|
|
{
|
|
return ULL2NUM(value);
|
|
}
|
|
|
|
|
|
/*@SWIG:/opt/local/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
|
{
|
|
VALUE obj = args[0];
|
|
VALUE type = TYPE(obj);
|
|
long long *res = (long long *)(args[1]);
|
|
*res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
|
|
return obj;
|
|
}
|
|
/*@SWIG@*/
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
|
{
|
|
VALUE type = TYPE(obj);
|
|
if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
|
|
unsigned long long v;
|
|
VALUE a[2];
|
|
a[0] = obj;
|
|
a[1] = (VALUE)(&v);
|
|
if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (value);
|
|
}
|
|
|
|
|
|
typedef struct {
|
|
bool is_allocated :1;
|
|
bool is_initialized :1;
|
|
} memcached_result_st_options;
|
|
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v > UINT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = (unsigned int)(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v > USHRT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = (unsigned short)(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE VALUE
|
|
SWIG_From_unsigned_SS_short (unsigned short value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (value);
|
|
}
|
|
|
|
|
|
typedef struct {
|
|
bool is_corked;
|
|
} memcached_server_st_state;
|
|
|
|
|
|
|
|
typedef struct {
|
|
bool is_allocated :1;
|
|
bool is_initialized :1;
|
|
bool sockaddr_inited :1;
|
|
bool is_shutting_down :1;
|
|
} memcached_server_st_options;
|
|
|
|
|
|
|
|
typedef struct {
|
|
bool is_allocated :1;
|
|
bool is_initialized :1;
|
|
} memcached_string_st_options;
|
|
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_char (VALUE obj, char *val)
|
|
{
|
|
int res = SWIG_AsCharArray(obj, val, 1);
|
|
if (!SWIG_IsOK(res)) {
|
|
long v;
|
|
res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
|
|
if (SWIG_IsOK(res)) {
|
|
if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
|
|
if (val) *val = (char)(v);
|
|
} else {
|
|
res = SWIG_OverflowError;
|
|
}
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
VALUE memcached_get_rvalue(memcached_st *ptr, const char *key, size_t key_length, uint32_t *flags, memcached_return *error) {
|
|
VALUE ret;
|
|
size_t value_length;
|
|
char *value = memcached_get(ptr, key, key_length, &value_length, flags, error);
|
|
ret = rb_str_new(value, value_length);
|
|
free(value);
|
|
return ret;
|
|
};
|
|
|
|
|
|
VALUE memcached_fetch_rvalue(memcached_st *ptr, char *key, size_t *key_length, uint32_t *flags, memcached_return *error) {
|
|
size_t value_length;
|
|
VALUE result = rb_ary_new();
|
|
|
|
char *value = memcached_fetch(ptr, key, key_length, &value_length, flags, error);
|
|
if (value == NULL) {
|
|
rb_ary_push(result, Qnil);
|
|
} else {
|
|
VALUE ret = rb_str_new(value, value_length);
|
|
rb_ary_push(result, ret);
|
|
free(value);
|
|
}
|
|
return result;
|
|
};
|
|
|
|
|
|
VALUE memcached_stat_get_rvalue(memcached_st *ptr, memcached_stat_st *stat, char *key, memcached_return *error) {
|
|
char *str;
|
|
VALUE ret;
|
|
str = memcached_stat_get_value(ptr, stat, key, error);
|
|
ret = rb_str_new2(str);
|
|
free(str);
|
|
return ret;
|
|
};
|
|
|
|
|
|
memcached_server_st *memcached_select_server_at(memcached_st *in_ptr, int index) {
|
|
return &(in_ptr->servers[index]);
|
|
};
|
|
|
|
|
|
memcached_stat_st *memcached_select_stat_at(memcached_st *in_ptr, memcached_stat_st *stat_ptr, int index) {
|
|
return &(stat_ptr[index]);
|
|
};
|
|
|
|
|
|
VALUE memcached_generate_hash_rvalue(const char *key, size_t key_length,memcached_hash hash_algorithm) {
|
|
return UINT2NUM(memcached_generate_hash_value(key, key_length, hash_algorithm));
|
|
};
|
|
|
|
swig_class SwigClassMemcachedSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_distribution_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_server_distribution_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_server_distribution_t","distribution", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_server_distribution_t)(val2);
|
|
if (arg1) (arg1)->distribution = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_distribution_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_server_distribution_t) ((arg1)->distribution);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_hashkit_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
hashkit_st arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hashkit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_hashkit_st, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "hashkit_st","hashkit", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "hashkit_st","hashkit", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((hashkit_st *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->hashkit = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_hashkit_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
hashkit_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","hashkit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->hashkit);
|
|
vresult = SWIG_NewPointerObj((hashkit_st *)memcpy((hashkit_st *)malloc(sizeof(hashkit_st)),&result,sizeof(hashkit_st)), SWIGTYPE_p_hashkit_st, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_points_counter_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_points_counter", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_points_counter", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->continuum_points_counter = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_points_counter_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_points_counter", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->continuum_points_counter);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_hosts", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_hosts", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->number_of_hosts = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->number_of_hosts);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_servers_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_server_st *arg2 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","servers", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_server_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","servers", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_server_st *)(argp2);
|
|
if (arg1) (arg1)->servers = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_servers_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","servers", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_server_st *) ((arg1)->servers);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_last_disconnected_server_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_server_st *arg2 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","last_disconnected_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_server_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st *","last_disconnected_server", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_server_st *)(argp2);
|
|
if (arg1) (arg1)->last_disconnected_server = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_last_disconnected_server_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","last_disconnected_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_server_st *) ((arg1)->last_disconnected_server);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_snd_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","snd_timeout", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","snd_timeout", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((int32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->snd_timeout = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_snd_timeout_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","snd_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->snd_timeout);
|
|
vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)malloc(sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_rcv_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","rcv_timeout", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","rcv_timeout", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((int32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->rcv_timeout = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_rcv_timeout_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","rcv_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->rcv_timeout);
|
|
vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)malloc(sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_server_failure_limit_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","server_failure_limit", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","server_failure_limit", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->server_failure_limit = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_server_failure_limit_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","server_failure_limit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->server_failure_limit);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_msg_watermark_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_msg_watermark", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_msg_watermark", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->io_msg_watermark = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_msg_watermark_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_msg_watermark", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->io_msg_watermark);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_bytes_watermark_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_bytes_watermark", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_bytes_watermark", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->io_bytes_watermark = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_bytes_watermark_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_bytes_watermark", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->io_bytes_watermark);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_key_prefetch_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_key_prefetch", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_key_prefetch", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->io_key_prefetch = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_io_key_prefetch_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","io_key_prefetch", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->io_key_prefetch);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
if (arg1) (arg1)->cached_errno = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","cached_errno", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (int) ((arg1)->cached_errno);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_poll_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","poll_timeout", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","poll_timeout", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((int32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->poll_timeout = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","poll_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->poll_timeout);
|
|
vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)malloc(sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_connect_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","connect_timeout", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","connect_timeout", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((int32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->connect_timeout = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","connect_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->connect_timeout);
|
|
vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)malloc(sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_retry_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_int32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "int32_t","retry_timeout", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "int32_t","retry_timeout", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((int32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->retry_timeout = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","retry_timeout", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->retry_timeout);
|
|
vresult = SWIG_NewPointerObj((int32_t *)memcpy((int32_t *)malloc(sizeof(int32_t)),&result,sizeof(int32_t)), SWIGTYPE_p_int32_t, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_count_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","continuum_count", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","continuum_count", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->continuum_count = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum_count", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->continuum_count);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_send_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","send_size", 2, argv[0] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
if (arg1) (arg1)->send_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","send_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (int) ((arg1)->send_size);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_recv_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","recv_size", 2, argv[0] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
if (arg1) (arg1)->recv_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","recv_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (int) ((arg1)->recv_size);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_user_data_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","user_data", 2, argv[0] ));
|
|
}
|
|
if (arg1) (arg1)->user_data = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","user_data", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (void *) ((arg1)->user_data);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_next_distribution_rebuild_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
time_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
if (NIL_P(argv[0]))
|
|
arg2 = (time_t)-1;
|
|
else
|
|
arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
|
|
}
|
|
if (arg1) (arg1)->next_distribution_rebuild = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_next_distribution_rebuild_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
time_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","next_distribution_rebuild", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->next_distribution_rebuild);
|
|
{
|
|
vresult = rb_time_new(result, 0);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_prefix_key_length_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prefix_key_length", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->prefix_key_length = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_prefix_key_length_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->prefix_key_length);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_replicas_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_replicas", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_replicas", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_replicas", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->number_of_replicas = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_replicas_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_replicas", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->number_of_replicas);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_distribution_hashkit_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
hashkit_st arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution_hashkit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_hashkit_st, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "hashkit_st","distribution_hashkit", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "hashkit_st","distribution_hashkit", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((hashkit_st *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->distribution_hashkit = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_distribution_hashkit_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
hashkit_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","distribution_hashkit", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->distribution_hashkit);
|
|
vresult = SWIG_NewPointerObj((hashkit_st *)memcpy((hashkit_st *)malloc(sizeof(hashkit_st)),&result,sizeof(hashkit_st)), SWIGTYPE_p_hashkit_st, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_result_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_result_st *arg2 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","result", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_result_st *)(argp2);
|
|
if (arg1) (arg1)->result = *arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_result_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","result", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_result_st *)& ((arg1)->result);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_continuum_item_st *arg2 = (memcached_continuum_item_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_continuum_item_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_continuum_item_st *","continuum", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_continuum_item_st *)(argp2);
|
|
if (arg1) (arg1)->continuum = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_continuum_item_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","continuum", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_continuum_item_st *) ((arg1)->continuum);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_continuum_item_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_on_clone_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_clone_fn arg2 = (memcached_clone_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_clone_fn","on_clone", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->on_clone = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_clone_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_clone", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_clone_fn) ((arg1)->on_clone);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_on_cleanup_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_cleanup_fn arg2 = (memcached_cleanup_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st__memcached_return_t);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_cleanup_fn","on_cleanup", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->on_cleanup = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_cleanup_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","on_cleanup", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_cleanup_fn) ((arg1)->on_cleanup);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st__memcached_return_t);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_trigger_key_fn arg2 = (memcached_trigger_key_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_trigger_key_fn","get_key_failure", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->get_key_failure = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_trigger_key_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","get_key_failure", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_trigger_key_fn) ((arg1)->get_key_failure);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_delete_trigger_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_trigger_delete_key_fn arg2 = (memcached_trigger_delete_key_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_trigger_delete_key_fn","delete_trigger", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->delete_trigger = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_trigger_delete_key_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","delete_trigger", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_trigger_delete_key_fn) ((arg1)->delete_trigger);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_callbacks_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
memcached_callback_st *arg2 = (memcached_callback_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","callbacks", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_callback_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_callback_st *","callbacks", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_callback_st *)(argp2);
|
|
if (arg1) (arg1)->callbacks = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_callbacks_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_callback_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","callbacks", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_callback_st *) ((arg1)->callbacks);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_sasl_callbacks_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
sasl_callback_t *arg2 = (sasl_callback_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","sasl_callbacks", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_sasl_callback_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "sasl_callback_t const *","sasl_callbacks", 2, argv[0] ));
|
|
}
|
|
arg2 = (sasl_callback_t *)(argp2);
|
|
if (arg1) (arg1)->sasl_callbacks = (sasl_callback_t const *)arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_sasl_callbacks_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
sasl_callback_t *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","sasl_callbacks", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (sasl_callback_t *) ((arg1)->sasl_callbacks);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sasl_callback_t, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_prefix_key_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[MEMCACHED_PREFIX_KEY_MAX_SIZE] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, MEMCACHED_PREFIX_KEY_MAX_SIZE);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [MEMCACHED_PREFIX_KEY_MAX_SIZE]","prefix_key", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->prefix_key,arg2,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
|
|
else memset(arg1->prefix_key,0,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_prefix_key_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->prefix_key);
|
|
{
|
|
size_t size = MEMCACHED_PREFIX_KEY_MAX_SIZE;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_live_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_live_hosts", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_live_hosts", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->number_of_live_hosts = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_number_of_live_hosts_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","number_of_live_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->number_of_live_hosts);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_live_host_indices_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t *arg2 = (uint32_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_uint32_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t *","live_host_indices", 2, argv[0] ));
|
|
}
|
|
arg2 = (uint32_t *)(argp2);
|
|
if (arg1) (arg1)->live_host_indices = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_live_host_indices_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (uint32_t *) ((arg1)->live_host_indices);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint32_t, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_live_host_indices_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","live_host_indices_size", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","live_host_indices_size", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->live_host_indices_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_live_host_indices_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","live_host_indices_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = ((arg1)->live_host_indices_size);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_options_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st_options *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","options", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_st_options *)& ((arg1)->options);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st_options, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_allocators_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st_allocators *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","allocators", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_st_allocators *)& ((arg1)->allocators);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st_flags *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","flags", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_st_flags *)& ((arg1)->flags);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_state_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st_state *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","state", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_st *)(argp1);
|
|
result = (memcached_st_state *)& ((arg1)->state);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st_state, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_st *)calloc(1, sizeof(struct memcached_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedStOptions;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStOptions_is_allocated_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_options *arg1 = (memcached_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_allocated = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStOptions_is_allocated_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_options *arg1 = (memcached_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_allocated);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStOptions_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStOptions_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st_options);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStOptions(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_options *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_st_options *)calloc(1, sizeof(memcached_st_options));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_st_options(memcached_st_options *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedStAllocators;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_calloc_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
memcached_calloc_fn arg2 = (memcached_calloc_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","calloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_calloc_fn","calloc", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->calloc = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_calloc_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_calloc_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","calloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
result = (memcached_calloc_fn) ((arg1)->calloc);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_free_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
memcached_free_fn arg2 = (memcached_free_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","free", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_free_fn","free", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->free = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_free_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_free_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","free", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
result = (memcached_free_fn) ((arg1)->free);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_p_void__void);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_malloc_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
memcached_malloc_fn arg2 = (memcached_malloc_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","malloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_malloc_fn","malloc", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->malloc = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_malloc_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_malloc_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","malloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
result = (memcached_malloc_fn) ((arg1)->malloc);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_realloc_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
memcached_realloc_fn arg2 = (memcached_realloc_fn) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","realloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_realloc_fn","realloc", 2, argv[0] ));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->realloc = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_realloc_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_realloc_fn result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","realloc", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
result = (memcached_realloc_fn) ((arg1)->realloc);
|
|
vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_context_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","context", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","context", 2, argv[0] ));
|
|
}
|
|
if (arg1) (arg1)->context = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_context_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *arg1 = (memcached_st_allocators *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_allocators, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_allocators *","context", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_allocators *)(argp1);
|
|
result = (void *) ((arg1)->context);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStAllocators_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st_allocators);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStAllocators(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_allocators *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_st_allocators *)calloc(1, sizeof(memcached_st_allocators));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_st_allocators(memcached_st_allocators *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedStFlags;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_auto_eject_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","auto_eject_hosts", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","auto_eject_hosts", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->auto_eject_hosts = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_auto_eject_hosts_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","auto_eject_hosts", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->auto_eject_hosts);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_binary_protocol_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","binary_protocol", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","binary_protocol", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->binary_protocol = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_binary_protocol_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","binary_protocol", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->binary_protocol);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_buffer_requests_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","buffer_requests", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","buffer_requests", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->buffer_requests = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_buffer_requests_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","buffer_requests", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->buffer_requests);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_cork_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","cork", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","cork", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->cork = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_cork_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","cork", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->cork);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_hash_with_prefix_key_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","hash_with_prefix_key", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","hash_with_prefix_key", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->hash_with_prefix_key = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_hash_with_prefix_key_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","hash_with_prefix_key", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->hash_with_prefix_key);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_ketama_weighted_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","ketama_weighted", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","ketama_weighted", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->ketama_weighted = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_ketama_weighted_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","ketama_weighted", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->ketama_weighted);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_no_block_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","no_block", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","no_block", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->no_block = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_no_block_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","no_block", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->no_block);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_no_reply_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","no_reply", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","no_reply", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->no_reply = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_no_reply_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","no_reply", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->no_reply);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_randomize_replica_read_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","randomize_replica_read", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","randomize_replica_read", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->randomize_replica_read = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_randomize_replica_read_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","randomize_replica_read", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->randomize_replica_read);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_reuse_memory_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","reuse_memory", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","reuse_memory", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->reuse_memory = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_reuse_memory_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","reuse_memory", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->reuse_memory);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_support_cas_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","support_cas", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","support_cas", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->support_cas = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_support_cas_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","support_cas", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->support_cas);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_tcp_nodelay_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","tcp_nodelay", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","tcp_nodelay", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->tcp_nodelay = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_tcp_nodelay_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","tcp_nodelay", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->tcp_nodelay);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_cache_lookups_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_cache_lookups", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","use_cache_lookups", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->use_cache_lookups = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_cache_lookups_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_cache_lookups", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->use_cache_lookups);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_sort_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_sort_hosts", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","use_sort_hosts", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->use_sort_hosts = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_sort_hosts_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_sort_hosts", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->use_sort_hosts);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_udp_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_udp", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","use_udp", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->use_udp = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_use_udp_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","use_udp", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->use_udp);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_verify_key_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","verify_key", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","verify_key", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->verify_key = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_verify_key_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *arg1 = (memcached_st_flags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_flags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_flags *","verify_key", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_flags *)(argp1);
|
|
result = (bool) ((arg1)->verify_key);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStFlags_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st_flags);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStFlags(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_flags *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_st_flags *)calloc(1, sizeof(memcached_st_flags));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_st_flags(memcached_st_flags *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedStState;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_is_purging_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_state *arg1 = (memcached_st_state *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_state *","is_purging", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_state *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_purging", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_purging = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_is_purging_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_state *arg1 = (memcached_st_state *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_state *","is_purging", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_state *)(argp1);
|
|
result = (bool) ((arg1)->is_purging);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_is_processing_input_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_state *arg1 = (memcached_st_state *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_state *","is_processing_input", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_state *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_processing_input", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_processing_input = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_is_processing_input_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_state *arg1 = (memcached_st_state *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st_state *","is_processing_input", 1, self ));
|
|
}
|
|
arg1 = (memcached_st_state *)(argp1);
|
|
result = (bool) ((arg1)->is_processing_input);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStState_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st_state);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStState(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st_state *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_st_state *)calloc(1, sizeof(memcached_st_state));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_st_state(memcached_st_state *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_servers_reset(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_servers_reset", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
memcached_servers_reset(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_create(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_create", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_st *)memcached_create(arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
memcached_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_clone(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_clone", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st const *","memcached_clone", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
result = (memcached_st *)memcached_clone(arg1,(struct memcached_st const *)arg2);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_user_data(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_get_user_data", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (void *)memcached_get_user_data((struct memcached_st const *)arg1);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set_user_data(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_user_data", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
if ( (size_t) RSTRING_LEN(argv[1]) == 0) {
|
|
arg2 = NULL;
|
|
} else {
|
|
arg2 = STR2CSTR(argv[1]);
|
|
}
|
|
}
|
|
result = (void *)memcached_set_user_data(arg1,arg2);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_push(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_push", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st const *","memcached_push", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
result = (memcached_return_t)memcached_push(arg1,(struct memcached_st const *)arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_instance_by_position(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
memcached_server_instance_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_instance_by_position", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","memcached_server_instance_by_position", 2, argv[1] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_server_instance_by_position", 2, argv[1]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
result = (memcached_server_instance_st)memcached_server_instance_by_position((struct memcached_st const *)arg1,arg2);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_count(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_count", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = memcached_server_count((struct memcached_st const *)arg1);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set_memory_allocators(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_malloc_fn arg2 = (memcached_malloc_fn) 0 ;
|
|
memcached_free_fn arg3 = (memcached_free_fn) 0 ;
|
|
memcached_realloc_fn arg4 = (memcached_realloc_fn) 0 ;
|
|
memcached_calloc_fn arg5 = (memcached_calloc_fn) 0 ;
|
|
void *arg6 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res6 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 6) || (argc > 6)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_memory_allocators", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_malloc_fn","memcached_set_memory_allocators", 2, argv[1] ));
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[2], (void**)(&arg3), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_free_fn","memcached_set_memory_allocators", 3, argv[2] ));
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[3], (void**)(&arg4), SWIGTYPE_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_realloc_fn","memcached_set_memory_allocators", 4, argv[3] ));
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(argv[4], (void**)(&arg5), SWIGTYPE_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), Ruby_Format_TypeError( "", "memcached_calloc_fn","memcached_set_memory_allocators", 5, argv[4] ));
|
|
}
|
|
}
|
|
res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","memcached_set_memory_allocators", 6, argv[5] ));
|
|
}
|
|
result = (memcached_return_t)memcached_set_memory_allocators(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_memory_allocators(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_malloc_fn *arg2 = (memcached_malloc_fn *) 0 ;
|
|
memcached_free_fn *arg3 = (memcached_free_fn *) 0 ;
|
|
memcached_realloc_fn *arg4 = (memcached_realloc_fn *) 0 ;
|
|
memcached_calloc_fn *arg5 = (memcached_calloc_fn *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_get_memory_allocators", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_malloc_fn *","memcached_get_memory_allocators", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_malloc_fn *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_free_fn *","memcached_get_memory_allocators", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_free_fn *)(argp3);
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_realloc_fn *","memcached_get_memory_allocators", 4, argv[3] ));
|
|
}
|
|
arg4 = (memcached_realloc_fn *)(argp4);
|
|
res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "memcached_calloc_fn *","memcached_get_memory_allocators", 5, argv[4] ));
|
|
}
|
|
arg5 = (memcached_calloc_fn *)(argp5);
|
|
memcached_get_memory_allocators((struct memcached_st const *)arg1,arg2,arg3,arg4,arg5);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_memory_allocators_context(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_get_memory_allocators_context", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (void *)memcached_get_memory_allocators_context((struct memcached_st const *)arg1);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap__libmemcached_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
int res3 ;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","_libmemcached_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","_libmemcached_free", 2, argv[1] ));
|
|
}
|
|
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","_libmemcached_free", 3, argv[2] ));
|
|
}
|
|
_libmemcached_free((struct memcached_st const *)arg1,arg2,arg3);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap__libmemcached_malloc(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *arg3 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int res3 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","_libmemcached_malloc", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","_libmemcached_malloc", 2, argv[1] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","_libmemcached_malloc", 3, argv[2] ));
|
|
}
|
|
result = (void *)_libmemcached_malloc((struct memcached_st const *)arg1,arg2,arg3);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap__libmemcached_realloc(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
size_t arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","_libmemcached_realloc", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","_libmemcached_realloc", 2, argv[1] ));
|
|
}
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","_libmemcached_realloc", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","_libmemcached_realloc", 4, argv[3] ));
|
|
}
|
|
result = (void *)_libmemcached_realloc((struct memcached_st const *)arg1,arg2,arg3,arg4);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap__libmemcached_calloc(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
size_t arg2 ;
|
|
size_t arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","_libmemcached_calloc", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","_libmemcached_calloc", 2, argv[1] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","_libmemcached_calloc", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
res4 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","_libmemcached_calloc", 4, argv[3] ));
|
|
}
|
|
result = (void *)_libmemcached_calloc((struct memcached_st const *)arg1,arg2,arg3,arg4);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_allocators_return_default(int argc, VALUE *argv, VALUE self) {
|
|
struct _allocators_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = memcached_allocators_return_default();
|
|
vresult = SWIG_NewPointerObj((struct _allocators_st *)memcpy((struct _allocators_st *)malloc(sizeof(struct _allocators_st)),&result,sizeof(struct _allocators_st)), SWIGTYPE_p__allocators_st, SWIG_POINTER_OWN | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedAnalysisSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_root_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
if (arg1) (arg1)->root = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_root_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = (memcached_st *) ((arg1)->root);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_average_item_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","average_item_size", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","average_item_size", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->average_item_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_average_item_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","average_item_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->average_item_size);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_longest_uptime_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","longest_uptime", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","longest_uptime", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->longest_uptime = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_longest_uptime_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","longest_uptime", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->longest_uptime);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_least_free_server_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","least_free_server", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","least_free_server", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->least_free_server = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_least_free_server_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_free_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->least_free_server);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_most_consumed_server_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","most_consumed_server", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","most_consumed_server", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->most_consumed_server = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_most_consumed_server_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_consumed_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->most_consumed_server);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_oldest_server_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","oldest_server", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","oldest_server", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->oldest_server = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_oldest_server_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","oldest_server", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->oldest_server);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_pool_hit_ratio_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_double(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "double","pool_hit_ratio", 2, argv[0] ));
|
|
}
|
|
arg2 = (double)(val2);
|
|
if (arg1) (arg1)->pool_hit_ratio = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_pool_hit_ratio_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","pool_hit_ratio", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = (double) ((arg1)->pool_hit_ratio);
|
|
vresult = SWIG_From_double((double)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_most_used_bytes_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","most_used_bytes", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","most_used_bytes", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->most_used_bytes = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_most_used_bytes_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","most_used_bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->most_used_bytes);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_least_remaining_bytes_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","least_remaining_bytes", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","least_remaining_bytes", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->least_remaining_bytes = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_least_remaining_bytes_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *arg1 = (struct memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_analysis_st *","least_remaining_bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_analysis_st *)(argp1);
|
|
result = ((arg1)->least_remaining_bytes);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedAnalysisSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_analysis_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedAnalysisSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_analysis_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_analysis_st *)calloc(1, sizeof(struct memcached_analysis_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_analysis_st(struct memcached_analysis_st *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_analyze(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
memcached_return_t *arg3 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
memcached_analysis_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_analyze", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_analyze", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_analyze", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_return_t *)(argp3);
|
|
result = (memcached_analysis_st *)memcached_analyze(arg1,arg2,arg3);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_analyze_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_analysis_st *arg1 = (memcached_analysis_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_analysis_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_analysis_st *","memcached_analyze_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_analysis_st *)(argp1);
|
|
memcached_analyze_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
uint32_t arg4 ;
|
|
uint64_t *arg5 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val4 ;
|
|
int ecode4 = 0 ;
|
|
uint64_t temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg5 = &temp5;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_increment", 4, argv[2] ));
|
|
}
|
|
arg4 = (uint32_t)(val4);
|
|
result = (memcached_return_t)memcached_increment(arg1,(char const *)arg2,arg3,arg4,arg5);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
uint32_t arg4 ;
|
|
uint64_t *arg5 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val4 ;
|
|
int ecode4 = 0 ;
|
|
uint64_t temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg5 = &temp5;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_decrement", 4, argv[2] ));
|
|
}
|
|
arg4 = (uint32_t)(val4);
|
|
result = (memcached_return_t)memcached_decrement(arg1,(char const *)arg2,arg3,arg4,arg5);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_increment_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
uint64_t arg6 ;
|
|
uint64_t *arg7 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp6 ;
|
|
int res6 = 0 ;
|
|
uint64_t temp7 ;
|
|
int res7 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg7 = &temp7;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res6 = SWIG_ConvertPtr(argv[2], &argp6, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_by_key", 6, argv[2] ));
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_by_key", 6, argv[2]));
|
|
} else {
|
|
arg6 = *((uint64_t *)(argp6));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_increment_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res7)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_decrement_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
uint64_t arg6 ;
|
|
uint64_t *arg7 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp6 ;
|
|
int res6 = 0 ;
|
|
uint64_t temp7 ;
|
|
int res7 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg7 = &temp7;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res6 = SWIG_ConvertPtr(argv[2], &argp6, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_by_key", 6, argv[2] ));
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_by_key", 6, argv[2]));
|
|
} else {
|
|
arg6 = *((uint64_t *)(argp6));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_decrement_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res7)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_increment_with_initial(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
uint64_t arg4 ;
|
|
uint64_t arg5 ;
|
|
time_t arg6 ;
|
|
uint64_t *arg7 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
uint64_t temp7 ;
|
|
int res7 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg7 = &temp7;
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment_with_initial", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 4, argv[2] ));
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 4, argv[2]));
|
|
} else {
|
|
arg4 = *((uint64_t *)(argp4));
|
|
}
|
|
}
|
|
{
|
|
res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial", 5, argv[3] ));
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial", 5, argv[3]));
|
|
} else {
|
|
arg5 = *((uint64_t *)(argp5));
|
|
}
|
|
}
|
|
{
|
|
if (NIL_P(argv[4]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[4], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_increment_with_initial(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res7)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_decrement_with_initial(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
uint64_t arg4 ;
|
|
uint64_t arg5 ;
|
|
time_t arg6 ;
|
|
uint64_t *arg7 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
uint64_t temp7 ;
|
|
int res7 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg7 = &temp7;
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement_with_initial", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(argv[2], &argp4, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 4, argv[2] ));
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 4, argv[2]));
|
|
} else {
|
|
arg4 = *((uint64_t *)(argp4));
|
|
}
|
|
}
|
|
{
|
|
res5 = SWIG_ConvertPtr(argv[3], &argp5, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial", 5, argv[3] ));
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial", 5, argv[3]));
|
|
} else {
|
|
arg5 = *((uint64_t *)(argp5));
|
|
}
|
|
}
|
|
{
|
|
if (NIL_P(argv[4]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[4], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_decrement_with_initial(arg1,(char const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res7)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg7)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_increment_with_initial_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
uint64_t arg6 ;
|
|
uint64_t arg7 ;
|
|
time_t arg8 ;
|
|
uint64_t *arg9 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp6 ;
|
|
int res6 = 0 ;
|
|
void *argp7 ;
|
|
int res7 = 0 ;
|
|
uint64_t temp9 ;
|
|
int res9 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg9 = &temp9;
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_increment_with_initial_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res6 = SWIG_ConvertPtr(argv[2], &argp6, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial_by_key", 6, argv[2] ));
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial_by_key", 6, argv[2]));
|
|
} else {
|
|
arg6 = *((uint64_t *)(argp6));
|
|
}
|
|
}
|
|
{
|
|
res7 = SWIG_ConvertPtr(argv[3], &argp7, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "uint64_t","memcached_increment_with_initial_by_key", 7, argv[3] ));
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_increment_with_initial_by_key", 7, argv[3]));
|
|
} else {
|
|
arg7 = *((uint64_t *)(argp7));
|
|
}
|
|
}
|
|
{
|
|
if (NIL_P(argv[4]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[4], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_increment_with_initial_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res9)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg9)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_decrement_with_initial_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
uint64_t arg6 ;
|
|
uint64_t arg7 ;
|
|
time_t arg8 ;
|
|
uint64_t *arg9 = (uint64_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp6 ;
|
|
int res6 = 0 ;
|
|
void *argp7 ;
|
|
int res7 = 0 ;
|
|
uint64_t temp9 ;
|
|
int res9 = SWIG_TMPOBJ ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg9 = &temp9;
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_decrement_with_initial_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
res6 = SWIG_ConvertPtr(argv[2], &argp6, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial_by_key", 6, argv[2] ));
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial_by_key", 6, argv[2]));
|
|
} else {
|
|
arg6 = *((uint64_t *)(argp6));
|
|
}
|
|
}
|
|
{
|
|
res7 = SWIG_ConvertPtr(argv[3], &argp7, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "uint64_t","memcached_decrement_with_initial_by_key", 7, argv[3] ));
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","memcached_decrement_with_initial_by_key", 7, argv[3]));
|
|
} else {
|
|
arg7 = *((uint64_t *)(argp7));
|
|
}
|
|
}
|
|
{
|
|
if (NIL_P(argv[4]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[4], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_decrement_with_initial_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (SWIG_IsTmpObj(res9)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg9)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res9) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg9), SWIGTYPE_p_uint64_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_behavior_t arg2 ;
|
|
uint64_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned long long val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior_t","memcached_behavior_set", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_behavior_t)(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","memcached_behavior_set", 3, argv[2] ));
|
|
}
|
|
arg3 = (uint64_t)(val3);
|
|
result = (memcached_return_t)memcached_behavior_set(arg1,arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_behavior_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_behavior_t","memcached_behavior_get", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_behavior_t)(val2);
|
|
result = memcached_behavior_get(arg1,arg2);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_set_distribution(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_server_distribution_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set_distribution", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_server_distribution_t","memcached_behavior_set_distribution", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_server_distribution_t)(val2);
|
|
result = (memcached_return_t)memcached_behavior_set_distribution(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_get_distribution(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_distribution_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get_distribution", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_server_distribution_t)memcached_behavior_get_distribution(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_set_key_hash(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_hash_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set_key_hash", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_hash_t","memcached_behavior_set_key_hash", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_hash_t)(val2);
|
|
result = (memcached_return_t)memcached_behavior_set_key_hash(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_get_key_hash(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_hash_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get_key_hash", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_hash_t)memcached_behavior_get_key_hash(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_set_distribution_hash(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_hash_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_set_distribution_hash", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_hash_t","memcached_behavior_set_distribution_hash", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_hash_t)(val2);
|
|
result = (memcached_return_t)memcached_behavior_set_distribution_hash(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_behavior_get_distribution_hash(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_hash_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_behavior_get_distribution_hash", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_hash_t)memcached_behavior_get_distribution_hash(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap__is_auto_eject_host(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","_is_auto_eject_host", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (bool)_is_auto_eject_host((struct memcached_st const *)arg1);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedCallbackSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_callback_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
memcached_execute_fn *arg2 = (memcached_execute_fn *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","callback", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_fn *","callback", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_execute_fn *)(argp2);
|
|
if (arg1) (arg1)->callback = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_callback_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_execute_fn *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","callback", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
result = (memcached_execute_fn *) ((arg1)->callback);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_context_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","context", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","context", 2, argv[0] ));
|
|
}
|
|
if (arg1) (arg1)->context = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_context_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","context", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
result = (void *) ((arg1)->context);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_number_of_callback_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","number_of_callback", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_callback", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_callback", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->number_of_callback = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_number_of_callback_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *arg1 = (struct memcached_callback_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_callback_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_callback_st *","number_of_callback", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_callback_st *)(argp1);
|
|
result = ((arg1)->number_of_callback);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedCallbackSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_callback_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedCallbackSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_callback_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_callback_st *)calloc(1, sizeof(struct memcached_callback_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_callback_st(struct memcached_callback_st *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_callback_t arg2 ;
|
|
void *arg3 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_set", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback_t","memcached_callback_set", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_callback_t)(val2);
|
|
{
|
|
if ( (size_t) RSTRING_LEN(argv[2]) == 0) {
|
|
arg3 = NULL;
|
|
} else {
|
|
arg3 = STR2CSTR(argv[2]);
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_callback_set(arg1,arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_callback_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_callback_t arg2 ;
|
|
memcached_return_t *arg3 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_callback_get", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_callback_t","memcached_callback_get", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_callback_t)(val2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_callback_get", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_return_t *)(argp3);
|
|
result = (void *)memcached_callback_get(arg1,arg2,arg3);
|
|
{
|
|
vresult = rb_str_new2(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_delete(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
time_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[2]))
|
|
arg4 = (time_t)-1;
|
|
else
|
|
arg4 = NUM2LONG(rb_funcall(argv[2], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_delete(arg1,(char const *)arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[2]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[2], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_delete_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_dump(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_dump_fn *arg2 = (memcached_dump_fn *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
uint32_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_dump", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_dump_fn *","memcached_dump", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_dump_fn *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_dump", 3, argv[2] ));
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint32_t","memcached_dump", 4, argv[3] ));
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_dump", 4, argv[3]));
|
|
} else {
|
|
arg4 = *((uint32_t *)(argp4));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_dump(arg1,arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_execute_fn *arg2 = (memcached_execute_fn *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
uint32_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_execute", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_fn *","memcached_fetch_execute", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_execute_fn *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_fetch_execute", 3, argv[2] ));
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint32_t","memcached_fetch_execute", 4, argv[3] ));
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_fetch_execute", 4, argv[3]));
|
|
} else {
|
|
arg4 = *((uint32_t *)(argp4));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_fetch_execute(arg1,arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_flush(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
time_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_flush", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
if (NIL_P(argv[1]))
|
|
arg2 = (time_t)-1;
|
|
else
|
|
arg2 = NUM2LONG(rb_funcall(argv[1], rb_intern("tv_sec"), 0));
|
|
}
|
|
result = (memcached_return_t)memcached_flush(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
size_t *arg4 = (size_t *) 0 ;
|
|
uint32_t *arg5 = (uint32_t *) 0 ;
|
|
memcached_return_t *arg6 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
uint32_t temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
res6 = SWIG_ConvertPtr(argv[2], &argp6,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_get", 6, argv[2] ));
|
|
}
|
|
arg6 = (memcached_return_t *)(argp6);
|
|
result = (char *)memcached_get(arg1,(char const *)arg2,arg3,arg4,arg5,arg6);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_mget(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char **arg2 = (char **) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
size_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
int i;
|
|
Check_Type(argv[1], T_ARRAY);
|
|
arg4 = (unsigned int) RARRAY_LEN(argv[1]);
|
|
arg3 = (size_t *) malloc((arg4+1)*sizeof(size_t));
|
|
arg2 = (char **) malloc((arg4+1)*sizeof(char *));
|
|
for(i = 0; i < arg4; i ++) {
|
|
Check_Type(RARRAY_PTR(argv[1])[i], T_STRING);
|
|
arg3[i] = RSTRING_LEN(RARRAY_PTR(argv[1])[i]);
|
|
arg2[i] = StringValuePtr(RARRAY_PTR(argv[1])[i]);
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_mget(arg1,(char const *const *)arg2,(size_t const *)arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
size_t *arg6 = (size_t *) 0 ;
|
|
uint32_t *arg7 = (uint32_t *) 0 ;
|
|
memcached_return_t *arg8 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t temp6 ;
|
|
int res6 = SWIG_TMPOBJ ;
|
|
uint32_t temp7 ;
|
|
int res7 = SWIG_TMPOBJ ;
|
|
void *argp8 = 0 ;
|
|
int res8 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg6 = &temp6;
|
|
arg7 = &temp7;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
res8 = SWIG_ConvertPtr(argv[2], &argp8,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_get_by_key", 8, argv[2] ));
|
|
}
|
|
arg8 = (memcached_return_t *)(argp8);
|
|
result = (char *)memcached_get_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
if (SWIG_IsTmpObj(res6)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg6)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_size_t, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res7)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg7)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint32_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_mget_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char **arg4 = (char **) 0 ;
|
|
size_t *arg5 = (size_t *) 0 ;
|
|
size_t arg6 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_mget_by_key", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_mget_by_key", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
{
|
|
int i;
|
|
Check_Type(argv[3], T_ARRAY);
|
|
arg6 = (unsigned int) RARRAY_LEN(argv[3]);
|
|
arg5 = (size_t *) malloc((arg6+1)*sizeof(size_t));
|
|
arg4 = (char **) malloc((arg6+1)*sizeof(char *));
|
|
for(i = 0; i < arg6; i ++) {
|
|
Check_Type(RARRAY_PTR(argv[3])[i], T_STRING);
|
|
arg5[i] = RSTRING_LEN(RARRAY_PTR(argv[3])[i]);
|
|
arg4[i] = StringValuePtr(RARRAY_PTR(argv[3])[i]);
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_mget_by_key(arg1,(char const *)arg2,arg3,(char const *const *)arg4,(size_t const *)arg5,arg6);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_fetch(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
size_t *arg4 = (size_t *) 0 ;
|
|
uint32_t *arg5 = (uint32_t *) 0 ;
|
|
memcached_return_t *arg6 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
uint32_t temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
{
|
|
char string[256];
|
|
size_t length = 0;
|
|
arg2 = string;
|
|
arg3 = &length;
|
|
}
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res6 = SWIG_ConvertPtr(argv[1], &argp6,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_fetch", 6, argv[1] ));
|
|
}
|
|
arg6 = (memcached_return_t *)(argp6);
|
|
result = (char *)memcached_fetch(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
{
|
|
// Pushes an empty string when *key_length == 0
|
|
rb_ary_push(vresult, rb_str_new(arg2, *arg3));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_result_st *arg2 = (memcached_result_st *) 0 ;
|
|
memcached_return_t *arg3 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
memcached_result_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_result", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_fetch_result", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_result_st *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_fetch_result", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_return_t *)(argp3);
|
|
result = (memcached_result_st *)memcached_fetch_result(arg1,arg2,arg3);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_mget_execute(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char **arg2 = (char **) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
size_t arg4 ;
|
|
memcached_execute_fn *arg5 = (memcached_execute_fn *) 0 ;
|
|
void *arg6 = (void *) 0 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
int res6 ;
|
|
void *argp7 ;
|
|
int res7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_execute", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
int i;
|
|
Check_Type(argv[1], T_ARRAY);
|
|
arg4 = (unsigned int) RARRAY_LEN(argv[1]);
|
|
arg3 = (size_t *) malloc((arg4+1)*sizeof(size_t));
|
|
arg2 = (char **) malloc((arg4+1)*sizeof(char *));
|
|
for(i = 0; i < arg4; i ++) {
|
|
Check_Type(RARRAY_PTR(argv[1])[i], T_STRING);
|
|
arg3[i] = RSTRING_LEN(RARRAY_PTR(argv[1])[i]);
|
|
arg2[i] = StringValuePtr(RARRAY_PTR(argv[1])[i]);
|
|
}
|
|
}
|
|
res5 = SWIG_ConvertPtr(argv[2], &argp5,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "memcached_execute_fn *","memcached_mget_execute", 5, argv[2] ));
|
|
}
|
|
arg5 = (memcached_execute_fn *)(argp5);
|
|
res6 = SWIG_ConvertPtr(argv[3],SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "void *","memcached_mget_execute", 6, argv[3] ));
|
|
}
|
|
{
|
|
res7 = SWIG_ConvertPtr(argv[4], &argp7, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "uint32_t const","memcached_mget_execute", 7, argv[4] ));
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t const","memcached_mget_execute", 7, argv[4]));
|
|
} else {
|
|
arg7 = *((uint32_t *)(argp7));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_mget_execute(arg1,(char const *const *)arg2,(size_t const *)arg3,arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_mget_execute_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char **arg4 = (char **) 0 ;
|
|
size_t *arg5 = (size_t *) 0 ;
|
|
size_t arg6 ;
|
|
memcached_execute_fn *arg7 = (memcached_execute_fn *) 0 ;
|
|
void *arg8 = (void *) 0 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
int res8 ;
|
|
void *argp9 ;
|
|
int res9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 7) || (argc > 7)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 7)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_mget_execute_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_mget_execute_by_key", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_mget_execute_by_key", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
{
|
|
int i;
|
|
Check_Type(argv[3], T_ARRAY);
|
|
arg6 = (unsigned int) RARRAY_LEN(argv[3]);
|
|
arg5 = (size_t *) malloc((arg6+1)*sizeof(size_t));
|
|
arg4 = (char **) malloc((arg6+1)*sizeof(char *));
|
|
for(i = 0; i < arg6; i ++) {
|
|
Check_Type(RARRAY_PTR(argv[3])[i], T_STRING);
|
|
arg5[i] = RSTRING_LEN(RARRAY_PTR(argv[3])[i]);
|
|
arg4[i] = StringValuePtr(RARRAY_PTR(argv[3])[i]);
|
|
}
|
|
}
|
|
res7 = SWIG_ConvertPtr(argv[4], &argp7,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "memcached_execute_fn *","memcached_mget_execute_by_key", 7, argv[4] ));
|
|
}
|
|
arg7 = (memcached_execute_fn *)(argp7);
|
|
res8 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg8), 0, 0);
|
|
if (!SWIG_IsOK(res8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res8), Ruby_Format_TypeError( "", "void *","memcached_mget_execute_by_key", 8, argv[5] ));
|
|
}
|
|
{
|
|
res9 = SWIG_ConvertPtr(argv[6], &argp9, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res9), Ruby_Format_TypeError( "", "uint32_t const","memcached_mget_execute_by_key", 9, argv[6] ));
|
|
}
|
|
if (!argp9) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t const","memcached_mget_execute_by_key", 9, argv[6]));
|
|
} else {
|
|
arg9 = *((uint32_t *)(argp9));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_mget_execute_by_key(arg1,(char const *)arg2,arg3,(char const *const *)arg4,(size_t const *)arg5,arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_generate_hash_value(int argc, VALUE *argv, VALUE self) {
|
|
char *arg1 = (char *) 0 ;
|
|
size_t arg2 ;
|
|
memcached_hash_t arg3 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
{
|
|
arg1 = STR2CSTR(argv[0]);
|
|
arg2 = (size_t) RSTRING_LEN(argv[0]);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash_t","memcached_generate_hash_value", 3, argv[1] ));
|
|
}
|
|
arg3 = (memcached_hash_t)(val3);
|
|
result = memcached_generate_hash_value((char const *)arg1,arg2,arg3);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_hashkit(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
hashkit_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_hashkit", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (hashkit_st *)memcached_get_hashkit(arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_hashkit_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_generate_hash(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_generate_hash", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
result = memcached_generate_hash((struct memcached_st const *)arg1,(char const *)arg2,arg3);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_generate_hash_with_redistribution(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_generate_hash_with_redistribution", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
result = memcached_generate_hash_with_redistribution(arg1,(char const *)arg2,arg3);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_autoeject(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_autoeject", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
memcached_autoeject(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) {
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
memcached_server_list_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","memcached_servers_parse", 1, argv[0] ));
|
|
}
|
|
arg1 = (char *)(buf1);
|
|
result = (memcached_server_list_st)memcached_servers_parse((char const *)arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
return vresult;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) free((char*)buf1);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_quit(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_quit", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
memcached_quit(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_quit_server(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_quit_server", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","memcached_quit_server", 2, argv[1] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
memcached_quit_server(arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedResultSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_flags_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_flags", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","item_flags", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","item_flags", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->item_flags = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_flags_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_flags", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = ((arg1)->item_flags);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_expiration_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
time_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_expiration", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
{
|
|
if (NIL_P(argv[0]))
|
|
arg2 = (time_t)-1;
|
|
else
|
|
arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
|
|
}
|
|
if (arg1) (arg1)->item_expiration = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_expiration_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
time_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_expiration", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = ((arg1)->item_expiration);
|
|
{
|
|
vresult = rb_time_new(result, 0);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_key_length_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","key_length", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->key_length = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_key_length_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","key_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = ((arg1)->key_length);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_cas_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_cas", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","item_cas", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","item_cas", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->item_cas = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_cas_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_cas", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = ((arg1)->item_cas);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_root_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st const *","root", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
if (arg1) (arg1)->root = (memcached_st const *)arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_root_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = (memcached_st *) ((arg1)->root);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_value_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
memcached_string_st *arg2 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_string_st *","value", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_string_st *)(argp2);
|
|
if (arg1) (arg1)->value = *arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_value_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_string_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","value", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = (memcached_string_st *)& ((arg1)->value);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_key_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[251] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_key", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, 251);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [251]","item_key", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->item_key,arg2,251*sizeof(char));
|
|
else memset(arg1->item_key,0,251*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_item_key_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","item_key", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->item_key);
|
|
{
|
|
size_t size = 251;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_options_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *arg1 = (struct memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_result_st_options *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_result_st *","options", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_result_st *)(argp1);
|
|
result = (memcached_result_st_options *)& ((arg1)->options);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st_options, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_result_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedResultSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_result_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_result_st *)calloc(1, sizeof(struct memcached_result_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_result_st(struct memcached_result_st *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedResultStOptions;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_is_allocated_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st_options *arg1 = (memcached_result_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_result_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_allocated = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_is_allocated_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st_options *arg1 = (memcached_result_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_result_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_allocated);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_is_initialized_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st_options *arg1 = (memcached_result_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_result_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_initialized", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_initialized = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_is_initialized_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st_options *arg1 = (memcached_result_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_result_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_result_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_initialized);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedResultStOptions_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_result_st_options);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedResultStOptions(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st_options *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_result_st_options *)calloc(1, sizeof(memcached_result_st_options));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_result_st_options(memcached_result_st_options *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
memcached_result_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_reset(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_reset", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
memcached_result_reset(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_create(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_result_st *arg2 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
memcached_result_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_result_create", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_create", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_result_st *)(argp2);
|
|
result = (memcached_result_st *)memcached_result_create((struct memcached_st const *)arg1,arg2);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_key_value(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_key_value", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = (char *)memcached_result_key_value((struct memcached_result_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_key_length(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_key_length", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = memcached_result_key_length((struct memcached_result_st const *)arg1);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_value(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_value", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = (char *)memcached_result_value((struct memcached_result_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_length(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_length", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = memcached_result_length((struct memcached_result_st const *)arg1);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_flags(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_flags", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = memcached_result_flags((struct memcached_result_st const *)arg1);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_cas(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st const *","memcached_result_cas", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
result = memcached_result_cas((struct memcached_result_st const *)arg1);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_set_value(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_value", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_result_set_value", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_result_set_value", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
result = (memcached_return_t)memcached_result_set_value(arg1,(char const *)arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_set_flags(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_flags", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","memcached_result_set_flags", 2, argv[1] ));
|
|
}
|
|
arg2 = (uint32_t)(val2);
|
|
memcached_result_set_flags(arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_result_set_expiration(int argc, VALUE *argv, VALUE self) {
|
|
memcached_result_st *arg1 = (memcached_result_st *) 0 ;
|
|
time_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_result_set_expiration", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_result_st *)(argp1);
|
|
{
|
|
if (NIL_P(argv[1]))
|
|
arg2 = (time_t)-1;
|
|
else
|
|
arg2 = NUM2LONG(rb_funcall(argv[1], rb_intern("tv_sec"), 0));
|
|
}
|
|
memcached_result_set_expiration(arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set_sasl_callbacks(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
sasl_callback_t *arg2 = (sasl_callback_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_sasl_callbacks", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_sasl_callback_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "sasl_callback_t const *","memcached_set_sasl_callbacks", 2, argv[1] ));
|
|
}
|
|
arg2 = (sasl_callback_t *)(argp2);
|
|
memcached_set_sasl_callbacks(arg1,(sasl_callback_t const *)arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set_sasl_auth_data(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
memcached_return result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_sasl_auth_data", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_set_sasl_auth_data", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_set_sasl_auth_data", 3, argv[2] ));
|
|
}
|
|
arg3 = (char *)(buf3);
|
|
result = (memcached_return)memcached_set_sasl_auth_data(arg1,(char const *)arg2,(char const *)arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_destroy_sasl_auth_data(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_destroy_sasl_auth_data", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_return)memcached_destroy_sasl_auth_data(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_sasl_callbacks(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
sasl_callback_t *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_sasl_callbacks", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (sasl_callback_t *)memcached_get_sasl_callbacks(arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sasl_callback_t, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_sasl_authenticate_connection(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_sasl_authenticate_connection", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_st *)(argp1);
|
|
result = (memcached_return)memcached_sasl_authenticate_connection(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedServerSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","number_of_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","number_of_hosts", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","number_of_hosts", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->number_of_hosts = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","number_of_hosts", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->number_of_hosts);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cursor_active_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","cursor_active", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","cursor_active", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->cursor_active = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cursor_active_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cursor_active", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->cursor_active);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_port_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
in_port_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "in_port_t","port", 2, argv[0] ));
|
|
}
|
|
arg2 = (in_port_t)(val2);
|
|
if (arg1) (arg1)->port = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_port_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
in_port_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","port", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->port);
|
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","cached_errno", 2, argv[0] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
if (arg1) (arg1)->cached_errno = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_errno", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (int) ((arg1)->cached_errno);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_fd_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","fd", 2, argv[0] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
if (arg1) (arg1)->fd = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_fd_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","fd", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (int) ((arg1)->fd);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_io_bytes_sent_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","io_bytes_sent", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","io_bytes_sent", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","io_bytes_sent", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->io_bytes_sent = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_io_bytes_sent_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","io_bytes_sent", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->io_bytes_sent);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_server_failure_counter_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","server_failure_counter", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","server_failure_counter", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","server_failure_counter", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->server_failure_counter = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_server_failure_counter_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","server_failure_counter", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->server_failure_counter);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_weight_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","weight", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","weight", 2, argv[0] ));
|
|
}
|
|
arg2 = (uint32_t)(val2);
|
|
if (arg1) (arg1)->weight = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_weight_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","weight", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->weight);
|
|
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_major_version_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint8_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned short val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","major_version", 2, argv[0] ));
|
|
}
|
|
arg2 = (uint8_t)(val2);
|
|
if (arg1) (arg1)->major_version = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_major_version_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint8_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","major_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->major_version);
|
|
vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_micro_version_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint8_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned short val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","micro_version", 2, argv[0] ));
|
|
}
|
|
arg2 = (uint8_t)(val2);
|
|
if (arg1) (arg1)->micro_version = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_micro_version_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint8_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","micro_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->micro_version);
|
|
vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_minor_version_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint8_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned short val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_short(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint8_t","minor_version", 2, argv[0] ));
|
|
}
|
|
arg2 = (uint8_t)(val2);
|
|
if (arg1) (arg1)->minor_version = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_minor_version_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint8_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","minor_version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->minor_version);
|
|
vresult = SWIG_From_unsigned_SS_short((unsigned short)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_type_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
memcached_connection_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_connection_t","type", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_connection_t)(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_type_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_connection_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","type", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (memcached_connection_t) ((arg1)->type);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_ptr_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","read_ptr", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
if (arg1->read_ptr) free((char*)arg1->read_ptr);
|
|
if (arg2) {
|
|
size_t size = strlen((const char *)(arg2)) + 1;
|
|
arg1->read_ptr = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
|
|
} else {
|
|
arg1->read_ptr = 0;
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_ptr_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_ptr", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (char *) ((arg1)->read_ptr);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cached_server_error_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_server_error", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","cached_server_error", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
if (arg1->cached_server_error) free((char*)arg1->cached_server_error);
|
|
if (arg2) {
|
|
size_t size = strlen((const char *)(arg2)) + 1;
|
|
arg1->cached_server_error = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
|
|
} else {
|
|
arg1->cached_server_error = 0;
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_cached_server_error_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","cached_server_error", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (char *) ((arg1)->cached_server_error);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_buffer_length_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_buffer_length", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->read_buffer_length = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_buffer_length_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->read_buffer_length);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_data_length_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","read_data_length", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->read_data_length = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_data_length_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_data_length", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->read_data_length);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_write_buffer_offset_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","write_buffer_offset", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->write_buffer_offset = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_write_buffer_offset_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer_offset", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->write_buffer_offset);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_address_info_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
struct addrinfo *arg2 = (struct addrinfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_addrinfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct addrinfo *","address_info", 2, argv[0] ));
|
|
}
|
|
arg2 = (struct addrinfo *)(argp2);
|
|
if (arg1) (arg1)->address_info = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_address_info_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
struct addrinfo *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","address_info", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (struct addrinfo *) ((arg1)->address_info);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_addrinfo, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_next_retry_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
time_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
if (NIL_P(argv[0]))
|
|
arg2 = (time_t)-1;
|
|
else
|
|
arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
|
|
}
|
|
if (arg1) (arg1)->next_retry = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_next_retry_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
time_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","next_retry", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->next_retry);
|
|
{
|
|
vresult = rb_time_new(result, 0);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_root_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st const *","root", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
if (arg1) (arg1)->root = (memcached_st const *)arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_root_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (memcached_st *) ((arg1)->root);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","limit_maxbytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","limit_maxbytes", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","limit_maxbytes", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->limit_maxbytes = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","limit_maxbytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = ((arg1)->limit_maxbytes);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_buffer_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[8196] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, 8196);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","read_buffer", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->read_buffer,arg2,8196*sizeof(char));
|
|
else memset(arg1->read_buffer,0,8196*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_read_buffer_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","read_buffer", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->read_buffer);
|
|
{
|
|
size_t size = 8196;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_write_buffer_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[8196] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, 8196);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [8196]","write_buffer", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->write_buffer,arg2,8196*sizeof(char));
|
|
else memset(arg1->write_buffer,0,8196*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_write_buffer_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","write_buffer", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->write_buffer);
|
|
{
|
|
size_t size = 8196;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_hostname_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[NI_MAXHOST] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, NI_MAXHOST);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [NI_MAXHOST]","hostname", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->hostname,arg2,NI_MAXHOST*sizeof(char));
|
|
else memset(arg1->hostname,0,NI_MAXHOST*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_hostname_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","hostname", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->hostname);
|
|
{
|
|
size_t size = NI_MAXHOST;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_state_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_st_state *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","state", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (memcached_server_st_state *)& ((arg1)->state);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st_state, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_options_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *arg1 = (struct memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_st_options *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_server_st *","options", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_server_st *)(argp1);
|
|
result = (memcached_server_st_options *)& ((arg1)->options);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_server_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedServerSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_server_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_server_st *)calloc(1, sizeof(struct memcached_server_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedServerStState;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStState_is_corked_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_state *arg1 = (memcached_server_st_state *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_state *","is_corked", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_state *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_corked", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_corked = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStState_is_corked_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_state *arg1 = (memcached_server_st_state *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_state, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_state *","is_corked", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_state *)(argp1);
|
|
result = (bool) ((arg1)->is_corked);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStState_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStState_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_server_st_state);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedServerStState(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_state *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_server_st_state *)calloc(1, sizeof(memcached_server_st_state));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_server_st_state(memcached_server_st_state *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedServerStOptions;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_allocated_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_allocated = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_allocated_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_allocated);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_initialized_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_initialized", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_initialized = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_initialized_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_initialized);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_sockaddr_inited_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","sockaddr_inited", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","sockaddr_inited", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->sockaddr_inited = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_sockaddr_inited_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","sockaddr_inited", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
result = (bool) ((arg1)->sockaddr_inited);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_shutting_down_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_shutting_down", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_shutting_down", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_shutting_down = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_is_shutting_down_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *arg1 = (memcached_server_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_server_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st_options *","is_shutting_down", 1, self ));
|
|
}
|
|
arg1 = (memcached_server_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_shutting_down);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedServerStOptions_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_server_st_options);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedServerStOptions(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st_options *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_server_st_options *)calloc(1, sizeof(memcached_server_st_options));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_server_st_options(memcached_server_st_options *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_cursor(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_server_fn *arg2 = (memcached_server_fn *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
uint32_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_cursor", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_fn const *","memcached_server_cursor", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_server_fn *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_server_cursor", 3, argv[2] ));
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_cursor", 4, argv[3] ));
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_server_cursor", 4, argv[3]));
|
|
} else {
|
|
arg4 = *((uint32_t *)(argp4));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_server_cursor((struct memcached_st const *)arg1,(enum memcached_return_t (*const *)(struct memcached_st const *,struct memcached_server_st const *,void *))arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
memcached_return_t *arg4 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
memcached_server_instance_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_server_by_key", 4, argv[2] ));
|
|
}
|
|
arg4 = (memcached_return_t *)(argp4);
|
|
result = (memcached_server_instance_st)memcached_server_by_key((struct memcached_st const *)arg1,(char const *)arg2,arg3,arg4);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_error_reset(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_error_reset", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_st *)(argp1);
|
|
memcached_server_error_reset(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_st *)(argp1);
|
|
memcached_server_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_clone(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
|
memcached_server_st *arg2 = (memcached_server_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
memcached_server_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_st *","memcached_server_clone", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_st const *","memcached_server_clone", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_server_st *)(argp2);
|
|
result = (memcached_server_st *)memcached_server_clone(arg1,(struct memcached_server_st const *)arg2);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_get_last_disconnect(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_instance_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_get_last_disconnect", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_server_instance_st)memcached_server_get_last_disconnect((struct memcached_st const *)arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_add_udp", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
result = (memcached_return_t)memcached_server_add_udp(arg1,(char const *)arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
result = (memcached_return_t)memcached_server_add_unix_socket(arg1,(char const *)arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_add", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
result = (memcached_return_t)memcached_server_add(arg1,(char const *)arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add_udp_with_weight(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
uint32_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned long val4 ;
|
|
int ecode4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp_with_weight", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_udp_with_weight", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_add_udp_with_weight", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_udp_with_weight", 4, argv[3] ));
|
|
}
|
|
arg4 = (uint32_t)(val4);
|
|
result = (memcached_return_t)memcached_server_add_udp_with_weight(arg1,(char const *)arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add_unix_socket_with_weight(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
uint32_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned long val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket_with_weight", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_unix_socket_with_weight", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_unix_socket_with_weight", 3, argv[2] ));
|
|
}
|
|
arg3 = (uint32_t)(val3);
|
|
result = (memcached_return_t)memcached_server_add_unix_socket_with_weight(arg1,(char const *)arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_add_with_weight(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
uint32_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned long val4 ;
|
|
int ecode4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_with_weight", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_add_with_weight", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_add_with_weight", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_add_with_weight", 4, argv[3] ));
|
|
}
|
|
arg4 = (uint32_t)(val4);
|
|
result = (memcached_return_t)memcached_server_add_with_weight(arg1,(char const *)arg2,arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_response_count(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_instance_st arg1 = (memcached_server_instance_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_instance_st","memcached_server_response_count", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_instance_st)(argp1);
|
|
result = memcached_server_response_count((struct memcached_server_st const *)arg1);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_name(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_instance_st arg1 = (memcached_server_instance_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_instance_st","memcached_server_name", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_instance_st)(argp1);
|
|
result = (char *)memcached_server_name((struct memcached_server_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_port(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_instance_st arg1 = (memcached_server_instance_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
in_port_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_instance_st","memcached_server_port", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_instance_st)(argp1);
|
|
result = memcached_server_port((struct memcached_server_st const *)arg1);
|
|
vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_error(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_instance_st arg1 = (memcached_server_instance_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_instance_st","memcached_server_error", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_instance_st)(argp1);
|
|
result = (char *)memcached_server_error((struct memcached_server_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_list_st arg1 = (memcached_server_list_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_list_st","memcached_server_list_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_list_st)(argp1);
|
|
memcached_server_list_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_push(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_server_list_st arg2 = (memcached_server_list_st) (memcached_server_list_st)0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_push", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_list_st const","memcached_server_push", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_server_list_st)(argp2);
|
|
result = (memcached_return_t)memcached_server_push(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_list_st arg1 = (memcached_server_list_st) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
memcached_return_t *arg4 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
memcached_server_list_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_list_st","memcached_server_list_append", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_list_st)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_list_append", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_server_list_append", 4, argv[3] ));
|
|
}
|
|
arg4 = (memcached_return_t *)(argp4);
|
|
result = (memcached_server_list_st)memcached_server_list_append(arg1,(char const *)arg2,arg3,arg4);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list_append_with_weight(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_list_st arg1 = (memcached_server_list_st) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
in_port_t arg3 ;
|
|
uint32_t arg4 ;
|
|
memcached_return_t *arg5 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
unsigned int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned long val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
memcached_server_list_st result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_list_st","memcached_server_list_append_with_weight", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_list_st)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_server_list_append_with_weight", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","memcached_server_list_append_with_weight", 3, argv[2] ));
|
|
}
|
|
arg3 = (in_port_t)(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_server_list_append_with_weight", 4, argv[3] ));
|
|
}
|
|
arg4 = (uint32_t)(val4);
|
|
res5 = SWIG_ConvertPtr(argv[4], &argp5,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_server_list_append_with_weight", 5, argv[4] ));
|
|
}
|
|
arg5 = (memcached_return_t *)(argp5);
|
|
result = (memcached_server_list_st)memcached_server_list_append_with_weight(arg1,(char const *)arg2,arg3,arg4,arg5);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_list_st arg1 = (memcached_server_list_st) (memcached_server_list_st)0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_list_st const","memcached_server_list_count", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_list_st)(argp1);
|
|
result = memcached_server_list_count(arg1);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_servers_set_count(int argc, VALUE *argv, VALUE self) {
|
|
memcached_server_list_st arg1 = (memcached_server_list_st) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_server_list_st","memcached_servers_set_count", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_server_list_st)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","memcached_servers_set_count", 2, argv[1] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_servers_set_count", 2, argv[1]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
result = memcached_servers_set_count(arg1,arg2);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_server_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_server_list", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_server_st *)memcached_server_list((struct memcached_st const *)arg1);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_server_list_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_server_list_st arg2 = (memcached_server_list_st) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_list_set", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_server_list_st","memcached_server_list_set", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_server_list_st)(argp2);
|
|
memcached_server_list_set(arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedStatSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_connection_structures_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","connection_structures", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","connection_structures", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->connection_structures = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_connection_structures_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","connection_structures", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->connection_structures);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_curr_connections_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_connections", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_connections", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->curr_connections = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_curr_connections_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_connections", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->curr_connections);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_curr_items_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","curr_items", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","curr_items", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->curr_items = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_curr_items_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","curr_items", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->curr_items);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_pid_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pid", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pid", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->pid = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_pid_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pid", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->pid);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_pointer_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","pointer_size", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","pointer_size", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->pointer_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_pointer_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","pointer_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->pointer_size);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_system_microseconds_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_microseconds", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_microseconds", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->rusage_system_microseconds = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_system_microseconds_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_microseconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->rusage_system_microseconds);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_system_seconds_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_system_seconds", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_system_seconds", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->rusage_system_seconds = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_system_seconds_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_system_seconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->rusage_system_seconds);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_user_microseconds_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_microseconds", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_microseconds", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->rusage_user_microseconds = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_user_microseconds_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_microseconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->rusage_user_microseconds);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_user_seconds_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","rusage_user_seconds", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","rusage_user_seconds", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->rusage_user_seconds = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_rusage_user_seconds_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","rusage_user_seconds", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->rusage_user_seconds);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_threads_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","threads", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","threads", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->threads = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_threads_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","threads", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->threads);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_time_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","time", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","time", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->time = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_time_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","time", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->time);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_total_connections_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_connections", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_connections", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->total_connections = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_total_connections_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_connections", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->total_connections);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_total_items_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","total_items", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","total_items", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->total_items = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_total_items_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","total_items", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->total_items);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_uptime_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","uptime", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","uptime", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->uptime = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_uptime_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","uptime", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->uptime);
|
|
{
|
|
vresult = UINT2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->bytes = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->bytes);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_read_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_read", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_read", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->bytes_read = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_read_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_read", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->bytes_read);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_written_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","bytes_written", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","bytes_written", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->bytes_written = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_bytes_written_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","bytes_written", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->bytes_written);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_cmd_get_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_get", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_get", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->cmd_get = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_cmd_get_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_get", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->cmd_get);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_cmd_set_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","cmd_set", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","cmd_set", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->cmd_set = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_cmd_set_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","cmd_set", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->cmd_set);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_evictions_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","evictions", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","evictions", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->evictions = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_evictions_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","evictions", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->evictions);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_get_hits_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_hits", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_hits", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->get_hits = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_get_hits_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_hits", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->get_hits);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_get_misses_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","get_misses", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","get_misses", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->get_misses = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_get_misses_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","get_misses", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->get_misses);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
uint64_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_uint64_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint64_t","limit_maxbytes", 2, argv[0] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint64_t","limit_maxbytes", 2, argv[0]));
|
|
} else {
|
|
arg2 = *((uint64_t *)(argp2));
|
|
}
|
|
}
|
|
if (arg1) (arg1)->limit_maxbytes = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint64_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","limit_maxbytes", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = ((arg1)->limit_maxbytes);
|
|
{
|
|
vresult = ULL2NUM(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_version_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
char *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char temp2[24] ;
|
|
int res2 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
res2 = SWIG_AsCharArray(argv[0], temp2, 24);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [24]","version", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(temp2);
|
|
if (arg2) memcpy(arg1->version,arg2,24*sizeof(char));
|
|
else memset(arg1->version,0,24*sizeof(char));
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_version_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","version", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = (char *)(char *) ((arg1)->version);
|
|
{
|
|
size_t size = 24;
|
|
|
|
while (size && (result[size - 1] == '\0')) --size;
|
|
|
|
vresult = SWIG_FromCharPtrAndSize(result, size);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_root_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st *","root", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
if (arg1) (arg1)->root = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_root_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_stat_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_stat_st *)(argp1);
|
|
result = (memcached_st *) ((arg1)->root);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStatSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_stat_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStatSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_stat_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_stat_st *)calloc(1, sizeof(struct memcached_stat_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_stat_st(struct memcached_stat_st *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_stat_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_free", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
memcached_stat_free((struct memcached_st const *)arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
memcached_return_t *arg3 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
memcached_stat_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_stat", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_return_t *)(argp3);
|
|
result = (memcached_stat_st *)memcached_stat(arg1,arg2,arg3);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) {
|
|
memcached_stat_st *arg1 = (memcached_stat_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
in_port_t arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
unsigned int val4 ;
|
|
int ecode4 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_servername", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_stat_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_stat_servername", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_stat_servername", 3, argv[2] ));
|
|
}
|
|
arg3 = (char *)(buf3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "in_port_t","memcached_stat_servername", 4, argv[3] ));
|
|
}
|
|
arg4 = (in_port_t)(val4);
|
|
result = (memcached_return_t)memcached_stat_servername(arg1,arg2,(char const *)arg3,arg4);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
memcached_return_t *arg4 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 4) || (argc > 4)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_stat_get_value", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_value", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","memcached_stat_get_value", 3, argv[2] ));
|
|
}
|
|
arg3 = (char *)(buf3);
|
|
res4 = SWIG_ConvertPtr(argv[3], &argp4,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_stat_get_value", 4, argv[3] ));
|
|
}
|
|
arg4 = (memcached_return_t *)(argp4);
|
|
result = (char *)memcached_stat_get_value((struct memcached_st const *)arg1,arg2,(char const *)arg3,arg4);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return vresult;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
memcached_return_t *arg3 = (memcached_return_t *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
char **result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_stat_get_keys", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_keys", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_memcached_return_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "memcached_return_t *","memcached_stat_get_keys", 3, argv[2] ));
|
|
}
|
|
arg3 = (memcached_return_t *)(argp3);
|
|
result = (char **)memcached_stat_get_keys((struct memcached_st const *)arg1,arg2,arg3);
|
|
{
|
|
int i;
|
|
VALUE ary = rb_ary_new();
|
|
vresult = rb_ary_new();
|
|
|
|
for(i=0; result[i] != NULL; i++) {
|
|
rb_ary_store(ary, i, rb_str_new2(result[i]));
|
|
}
|
|
rb_ary_push(vresult, ary);
|
|
free(result);
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_set", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
result = (memcached_return_t)memcached_set(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_add(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_add", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
result = (memcached_return_t)memcached_add(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_replace(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_replace", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
result = (memcached_return_t)memcached_replace(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_append(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_append", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
result = (memcached_return_t)memcached_append(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_prepend(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
result = (memcached_return_t)memcached_prepend(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_cas(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
time_t arg6 ;
|
|
uint32_t arg7 ;
|
|
uint64_t arg8 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val7 ;
|
|
int ecode7 = 0 ;
|
|
unsigned long long val8 ;
|
|
int ecode8 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 6) || (argc > 6)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg4 = STR2CSTR(argv[2]);
|
|
arg5 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg6 = (time_t)-1;
|
|
else
|
|
arg6 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode7 = SWIG_AsVal_unsigned_SS_long(argv[4], &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), Ruby_Format_TypeError( "", "uint32_t","memcached_cas", 7, argv[4] ));
|
|
}
|
|
arg7 = (uint32_t)(val7);
|
|
ecode8 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), Ruby_Format_TypeError( "", "uint64_t","memcached_cas", 8, argv[5] ));
|
|
}
|
|
arg8 = (uint64_t)(val8);
|
|
result = (memcached_return_t)memcached_cas(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6,arg7,arg8);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_set_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_set_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_set_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
result = (memcached_return_t)memcached_set_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_add_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_add_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_add_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
result = (memcached_return_t)memcached_add_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_replace_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_replace_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_replace_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
result = (memcached_return_t)memcached_replace_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_prepend_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_prepend_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_prepend_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
result = (memcached_return_t)memcached_prepend_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_append_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 5) || (argc > 5)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 5)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_append_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_append_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
result = (memcached_return_t)memcached_append_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_cas_by_key(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
size_t arg5 ;
|
|
char *arg6 = (char *) 0 ;
|
|
size_t arg7 ;
|
|
time_t arg8 ;
|
|
uint32_t arg9 ;
|
|
uint64_t arg10 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val9 ;
|
|
int ecode9 = 0 ;
|
|
unsigned long long val10 ;
|
|
int ecode10 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 6) || (argc > 6)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 6)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_cas_by_key", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
|
arg5 = arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
{
|
|
arg6 = STR2CSTR(argv[2]);
|
|
arg7 = (size_t) RSTRING_LEN(argv[2]);
|
|
}
|
|
{
|
|
if (NIL_P(argv[3]))
|
|
arg8 = (time_t)-1;
|
|
else
|
|
arg8 = NUM2LONG(rb_funcall(argv[3], rb_intern("tv_sec"), 0));
|
|
}
|
|
ecode9 = SWIG_AsVal_unsigned_SS_long(argv[4], &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), Ruby_Format_TypeError( "", "uint32_t","memcached_cas_by_key", 9, argv[4] ));
|
|
}
|
|
arg9 = (uint32_t)(val9);
|
|
ecode10 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[5], &val10);
|
|
if (!SWIG_IsOK(ecode10)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode10), Ruby_Format_TypeError( "", "uint64_t","memcached_cas_by_key", 10, argv[5] ));
|
|
}
|
|
arg10 = (uint64_t)(val10);
|
|
result = (memcached_return_t)memcached_cas_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,(char const *)arg6,arg7,arg8,arg9,arg10);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_strerror(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_return_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_strerror", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "memcached_return_t","memcached_strerror", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_return_t)(val2);
|
|
result = (char *)memcached_strerror(arg1,arg2);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
swig_class SwigClassMemcachedStringSt;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_end_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","end", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","end", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
if (arg1->end) free((char*)arg1->end);
|
|
if (arg2) {
|
|
size_t size = strlen((const char *)(arg2)) + 1;
|
|
arg1->end = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
|
|
} else {
|
|
arg1->end = 0;
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_end_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","end", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
result = (char *) ((arg1)->end);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_string_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","string", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","string", 2, argv[0] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
if (arg1->string) free((char*)arg1->string);
|
|
if (arg2) {
|
|
size_t size = strlen((const char *)(arg2)) + 1;
|
|
arg1->string = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size));
|
|
} else {
|
|
arg1->string = 0;
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_string_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","string", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
result = (char *) ((arg1)->string);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_current_size_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","current_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","current_size", 2, argv[0] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
if (arg1) (arg1)->current_size = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_current_size_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","current_size", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
result = ((arg1)->current_size);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_root_set(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_memcached_st, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_st const *","root", 2, argv[0] ));
|
|
}
|
|
arg2 = (memcached_st *)(argp2);
|
|
if (arg1) (arg1)->root = (memcached_st const *)arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_root_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","root", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
result = (memcached_st *) ((arg1)->root);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_options_get(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *arg1 = (struct memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_string_st_options *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_string_st *","options", 1, self ));
|
|
}
|
|
arg1 = (struct memcached_string_st *)(argp1);
|
|
result = (memcached_string_st_options *)& ((arg1)->options);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_string_st_options, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_string_st);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStringSt(int argc, VALUE *argv, VALUE self) {
|
|
struct memcached_string_st *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (struct memcached_string_st *)calloc(1, sizeof(struct memcached_string_st));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_string_st(struct memcached_string_st *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
swig_class SwigClassMemcachedStringStOptions;
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_is_allocated_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st_options *arg1 = (memcached_string_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_string_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_allocated", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_allocated = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_is_allocated_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st_options *arg1 = (memcached_string_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st_options *","is_allocated", 1, self ));
|
|
}
|
|
arg1 = (memcached_string_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_allocated);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_is_initialized_set(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st_options *arg1 = (memcached_string_st_options *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_string_st_options *)(argp1);
|
|
ecode2 = SWIG_AsVal_bool(argv[0], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","is_initialized", 2, argv[0] ));
|
|
}
|
|
arg2 = (bool)(val2);
|
|
if (arg1) (arg1)->is_initialized = arg2;
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_is_initialized_get(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st_options *arg1 = (memcached_string_st_options *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_string_st_options, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st_options *","is_initialized", 1, self ));
|
|
}
|
|
arg1 = (memcached_string_st_options *)(argp1);
|
|
result = (bool) ((arg1)->is_initialized);
|
|
vresult = SWIG_From_bool((bool)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_allocate(VALUE self) {
|
|
#else
|
|
SWIGINTERN VALUE
|
|
_wrap_MemcachedStringStOptions_allocate(int argc, VALUE *argv, VALUE self) {
|
|
#endif
|
|
|
|
|
|
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_string_st_options);
|
|
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
rb_obj_call_init(vresult, argc, argv);
|
|
#endif
|
|
return vresult;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_new_MemcachedStringStOptions(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st_options *result = 0 ;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (memcached_string_st_options *)calloc(1, sizeof(memcached_string_st_options));
|
|
DATA_PTR(self) = result;
|
|
return self;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN void
|
|
free_memcached_string_st_options(memcached_string_st_options *arg1) {
|
|
free((char *) arg1);
|
|
}
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_create(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_string_st *arg2 = (memcached_string_st *) 0 ;
|
|
size_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_string_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st const *","memcached_string_create", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_create", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_string_st *)(argp2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_string_create", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
result = (memcached_string_st *)memcached_string_create((struct memcached_st const *)arg1,arg2,arg3);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_check(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_check", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","memcached_string_check", 2, argv[1] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
result = (memcached_return_t)memcached_string_check(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_c_copy(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_c_copy", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = (char *)memcached_string_c_copy(arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_append_character(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
char arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_append_character", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_char(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "char","memcached_string_append_character", 2, argv[1] ));
|
|
}
|
|
arg2 = (char)(val2);
|
|
result = (memcached_return_t)memcached_string_append_character(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_append(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_append", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","memcached_string_append", 2, argv[1] ));
|
|
}
|
|
arg2 = (char *)(buf2);
|
|
ecode3 = SWIG_AsVal_size_t(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "size_t","memcached_string_append", 3, argv[2] ));
|
|
}
|
|
arg3 = (size_t)(val3);
|
|
result = (memcached_return_t)memcached_string_append(arg1,(char const *)arg2,arg3);
|
|
vresult = SWIG_From_int((int)(result));
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return vresult;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_reset(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_reset", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = (memcached_return_t)memcached_string_reset(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_free(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_free", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
memcached_string_free(arg1);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_length(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st const *","memcached_string_length", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = memcached_string_length((struct memcached_string_st const *)arg1);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_size(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st const *","memcached_string_size", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = memcached_string_size((struct memcached_string_st const *)arg1);
|
|
vresult = SWIG_From_size_t((size_t)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_value(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st const *","memcached_string_value", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = (char *)memcached_string_value((struct memcached_string_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_value_mutable(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st const *","memcached_string_value_mutable", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
result = (char *)memcached_string_value_mutable((struct memcached_string_st const *)arg1);
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_string_set_length(int argc, VALUE *argv, VALUE self) {
|
|
memcached_string_st *arg1 = (memcached_string_st *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_string_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_string_st *","memcached_string_set_length", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_string_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","memcached_string_set_length", 2, argv[1] ));
|
|
}
|
|
arg2 = (size_t)(val2);
|
|
memcached_string_set_length(arg1,arg2);
|
|
return Qnil;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_verbosity(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
uint32_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_verbosity", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2, SWIGTYPE_p_uint32_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "uint32_t","memcached_verbosity", 2, argv[1] ));
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "uint32_t","memcached_verbosity", 2, argv[1]));
|
|
} else {
|
|
arg2 = *((uint32_t *)(argp2));
|
|
}
|
|
}
|
|
result = (memcached_return_t)memcached_verbosity(arg1,arg2);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_version(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
memcached_return_t result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_version", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (memcached_return_t)memcached_version(arg1);
|
|
vresult = SWIG_From_int((int)(result));
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_lib_version(int argc, VALUE *argv, VALUE self) {
|
|
char *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 0) || (argc > 0)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
}
|
|
result = (char *)memcached_lib_version();
|
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_get_rvalue(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t arg3 ;
|
|
uint32_t *arg4 = (uint32_t *) 0 ;
|
|
memcached_return *arg5 = (memcached_return *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
memcached_return temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
VALUE result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_get_rvalue", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
{
|
|
arg2 = STR2CSTR(argv[1]);
|
|
arg3 = (size_t) RSTRING_LEN(argv[1]);
|
|
}
|
|
result = (VALUE)memcached_get_rvalue(arg1,(char const *)arg2,arg3,arg4,arg5);
|
|
vresult = result;
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_uint32_t, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_fetch_rvalue(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
size_t *arg3 = (size_t *) 0 ;
|
|
uint32_t *arg4 = (uint32_t *) 0 ;
|
|
memcached_return *arg5 = (memcached_return *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
uint32_t temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
memcached_return temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
VALUE result;
|
|
VALUE vresult = Qnil;
|
|
|
|
{
|
|
char string[256];
|
|
size_t length = 0;
|
|
arg2 = string;
|
|
arg3 = &length;
|
|
}
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
if ((argc < 1) || (argc > 1)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_rvalue", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
result = (VALUE)memcached_fetch_rvalue(arg1,arg2,arg3,arg4,arg5);
|
|
vresult = result;
|
|
{
|
|
// Pushes an empty string when *key_length == 0
|
|
rb_ary_push(vresult, rb_str_new(arg2, *arg3));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_uint32_t, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_memcached_return_t, new_flags));
|
|
}
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_stat_get_rvalue(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
memcached_return *arg4 = (memcached_return *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
memcached_return temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
VALUE result;
|
|
VALUE vresult = Qnil;
|
|
|
|
arg4 = &temp4;
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_stat_get_rvalue", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_stat_get_rvalue", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char *","memcached_stat_get_rvalue", 3, argv[2] ));
|
|
}
|
|
arg3 = (char *)(buf3);
|
|
result = (VALUE)memcached_stat_get_rvalue(arg1,arg2,arg3,arg4);
|
|
vresult = result;
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_memcached_return_t, new_flags));
|
|
}
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return vresult;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_select_server_at(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
memcached_server_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_server_at", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
ecode2 = SWIG_AsVal_int(argv[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","memcached_select_server_at", 2, argv[1] ));
|
|
}
|
|
arg2 = (int)(val2);
|
|
result = (memcached_server_st *)memcached_select_server_at(arg1,arg2);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_server_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_select_stat_at(int argc, VALUE *argv, VALUE self) {
|
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
memcached_stat_st *result = 0 ;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 3) || (argc > 3)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
|
}
|
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_select_stat_at", 1, argv[0] ));
|
|
}
|
|
arg1 = (memcached_st *)(argp1);
|
|
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_stat_st *","memcached_select_stat_at", 2, argv[1] ));
|
|
}
|
|
arg2 = (memcached_stat_st *)(argp2);
|
|
ecode3 = SWIG_AsVal_int(argv[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","memcached_select_stat_at", 3, argv[2] ));
|
|
}
|
|
arg3 = (int)(val3);
|
|
result = (memcached_stat_st *)memcached_select_stat_at(arg1,arg2,arg3);
|
|
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_stat_st, 0 | 0 );
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
SWIGINTERN VALUE
|
|
_wrap_memcached_generate_hash_rvalue(int argc, VALUE *argv, VALUE self) {
|
|
char *arg1 = (char *) 0 ;
|
|
size_t arg2 ;
|
|
memcached_hash arg3 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
VALUE result;
|
|
VALUE vresult = Qnil;
|
|
|
|
if ((argc < 2) || (argc > 2)) {
|
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
}
|
|
{
|
|
arg1 = STR2CSTR(argv[0]);
|
|
arg2 = (size_t) RSTRING_LEN(argv[0]);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(argv[1], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "memcached_hash","memcached_generate_hash_rvalue", 3, argv[1] ));
|
|
}
|
|
arg3 = (memcached_hash)(val3);
|
|
result = (VALUE)memcached_generate_hash_rvalue((char const *)arg1,arg2,arg3);
|
|
vresult = result;
|
|
return vresult;
|
|
fail:
|
|
return Qnil;
|
|
}
|
|
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
static swig_type_info _swigt__p__allocators_st = {"_p__allocators_st", "struct _allocators_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_addrinfo = {"_p_addrinfo", "struct addrinfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st__memcached_return_t = {"_p_f_p_q_const__struct_memcached_st__memcached_return_t", "memcached_cleanup_fn|enum memcached_return_t (*)(struct memcached_st const *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t = {"_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t", "memcached_trigger_delete_key_fn|enum memcached_return_t (*)(struct memcached_st const *,char const *,size_t)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t = {"_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t", "memcached_trigger_key_fn|enum memcached_return_t (*)(struct memcached_st const *,char const *,size_t,struct memcached_result_st *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_p_void_p_void__void = {"_p_f_p_q_const__struct_memcached_st_p_void_p_void__void", "memcached_free_fn|void (*)(struct memcached_st const *,void *,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void = {"_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void", "memcached_realloc_fn|void *(*)(struct memcached_st const *,void *,size_t const,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void = {"_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void", "void *(*)(struct memcached_st const *,size_t const,void *)|memcached_malloc_fn", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void = {"_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void", "memcached_calloc_fn|void *(*)(struct memcached_st const *,size_t,size_t const,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t = {"_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t", "enum memcached_return_t (*)(struct memcached_st *,struct memcached_st const *)|memcached_clone_fn", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_hashkit_st = {"_p_hashkit_st", "hashkit_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_int32_t = {"_p_int32_t", "int32_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_analysis_st = {"_p_memcached_analysis_st", "struct memcached_analysis_st *|memcached_analysis_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_behavior_t = {"_p_memcached_behavior_t", "memcached_behavior *|enum memcached_behavior_t *|memcached_behavior_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_callback_st = {"_p_memcached_callback_st", "struct memcached_callback_st *|memcached_callback_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_callback_t = {"_p_memcached_callback_t", "enum memcached_callback_t *|memcached_callback_t *|memcached_callback *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_connection_t = {"_p_memcached_connection_t", "enum memcached_connection_t *|memcached_connection_t *|memcached_connection *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_continuum_item_st = {"_p_memcached_continuum_item_st", "struct memcached_continuum_item_st *|memcached_continuum_item_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_hash_t = {"_p_memcached_hash_t", "memcached_hash *|enum memcached_hash_t *|memcached_hash_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_result_st = {"_p_memcached_result_st", "struct memcached_result_st *|memcached_result_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_result_st_options = {"_p_memcached_result_st_options", "memcached_result_st_options *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_return_t = {"_p_memcached_return_t", "enum memcached_return_t *|memcached_return_t *|memcached_return *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_server_distribution_t = {"_p_memcached_server_distribution_t", "enum memcached_server_distribution_t *|memcached_server_distribution_t *|memcached_server_distribution *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_server_st = {"_p_memcached_server_st", "struct memcached_server_st *|memcached_server_st *|memcached_server_instance_st|memcached_server_list_st", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_server_st_options = {"_p_memcached_server_st_options", "memcached_server_st_options *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_server_st_state = {"_p_memcached_server_st_state", "memcached_server_st_state *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_st = {"_p_memcached_st", "struct memcached_st *|memcached_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_st_allocators = {"_p_memcached_st_allocators", "memcached_st_allocators *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_st_flags = {"_p_memcached_st_flags", "memcached_st_flags *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_st_options = {"_p_memcached_st_options", "memcached_st_options *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_st_state = {"_p_memcached_st_state", "memcached_st_state *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_stat_st = {"_p_memcached_stat_st", "struct memcached_stat_st *|memcached_stat_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_string_st = {"_p_memcached_string_st", "struct memcached_string_st *|memcached_string_st *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_memcached_string_st_options = {"_p_memcached_string_st_options", "memcached_string_st_options *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st__memcached_return_t", "enum memcached_return_t (**)(struct memcached_st const *)|memcached_cleanup_func *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t", "memcached_trigger_delete_key *|enum memcached_return_t (**)(struct memcached_st const *,char const *,size_t)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t", "memcached_trigger_key *|enum memcached_return_t (**)(struct memcached_st const *,char const *,size_t,struct memcached_result_st *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t", "memcached_dump_fn *|enum memcached_return_t (**)(struct memcached_st const *,char const *,size_t,void *)|memcached_dump_func *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t", "memcached_server_function *|enum memcached_return_t (**)(struct memcached_st const *,struct memcached_server_st const *,void *)|memcached_server_fn *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t = {"_p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t", "memcached_execute_fn *|memcached_execute_function *|enum memcached_return_t (**)(struct memcached_st const *,struct memcached_result_st *,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void = {"_p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void", "memcached_free_fn *|void (**)(struct memcached_st const *,void *,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void = {"_p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void", "memcached_realloc_fn *|void *(**)(struct memcached_st const *,void *,size_t const,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void = {"_p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void", "void *(**)(struct memcached_st const *,size_t const,void *)|memcached_malloc_fn *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void = {"_p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void", "void *(**)(struct memcached_st const *,size_t,size_t const,void *)|memcached_calloc_fn *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t = {"_p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t", "enum memcached_return_t (**)(struct memcached_st *,struct memcached_st const *)|memcached_clone_func *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_sasl_callback_t = {"_p_sasl_callback_t", "sasl_callback_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_uint32_t = {"_p_uint32_t", "uint32_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0};
|
|
|
|
static swig_type_info *swig_type_initial[] = {
|
|
&_swigt__p__allocators_st,
|
|
&_swigt__p_addrinfo,
|
|
&_swigt__p_char,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st__memcached_return_t,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_p_void_p_void__void,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t,
|
|
&_swigt__p_hashkit_st,
|
|
&_swigt__p_int32_t,
|
|
&_swigt__p_memcached_analysis_st,
|
|
&_swigt__p_memcached_behavior_t,
|
|
&_swigt__p_memcached_callback_st,
|
|
&_swigt__p_memcached_callback_t,
|
|
&_swigt__p_memcached_connection_t,
|
|
&_swigt__p_memcached_continuum_item_st,
|
|
&_swigt__p_memcached_hash_t,
|
|
&_swigt__p_memcached_result_st,
|
|
&_swigt__p_memcached_result_st_options,
|
|
&_swigt__p_memcached_return_t,
|
|
&_swigt__p_memcached_server_distribution_t,
|
|
&_swigt__p_memcached_server_st,
|
|
&_swigt__p_memcached_server_st_options,
|
|
&_swigt__p_memcached_server_st_state,
|
|
&_swigt__p_memcached_st,
|
|
&_swigt__p_memcached_st_allocators,
|
|
&_swigt__p_memcached_st_flags,
|
|
&_swigt__p_memcached_st_options,
|
|
&_swigt__p_memcached_st_state,
|
|
&_swigt__p_memcached_stat_st,
|
|
&_swigt__p_memcached_string_st,
|
|
&_swigt__p_memcached_string_st_options,
|
|
&_swigt__p_p_char,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void,
|
|
&_swigt__p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t,
|
|
&_swigt__p_sasl_callback_t,
|
|
&_swigt__p_size_t,
|
|
&_swigt__p_time_t,
|
|
&_swigt__p_uint32_t,
|
|
&_swigt__p_uint64_t,
|
|
};
|
|
|
|
static swig_cast_info _swigc__p__allocators_st[] = { {&_swigt__p__allocators_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_addrinfo[] = { {&_swigt__p_addrinfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st__memcached_return_t[] = { {&_swigt__p_f_p_q_const__struct_memcached_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_p_void_p_void__void[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_p_void_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void[] = { {&_swigt__p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t[] = { {&_swigt__p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_hashkit_st[] = { {&_swigt__p_hashkit_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_int32_t[] = { {&_swigt__p_int32_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_analysis_st[] = { {&_swigt__p_memcached_analysis_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_behavior_t[] = { {&_swigt__p_memcached_behavior_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_callback_st[] = { {&_swigt__p_memcached_callback_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_callback_t[] = { {&_swigt__p_memcached_callback_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_connection_t[] = { {&_swigt__p_memcached_connection_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_continuum_item_st[] = { {&_swigt__p_memcached_continuum_item_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_hash_t[] = { {&_swigt__p_memcached_hash_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_result_st[] = { {&_swigt__p_memcached_result_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_result_st_options[] = { {&_swigt__p_memcached_result_st_options, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_return_t[] = { {&_swigt__p_memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_server_distribution_t[] = { {&_swigt__p_memcached_server_distribution_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_server_st[] = { {&_swigt__p_memcached_server_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_server_st_options[] = { {&_swigt__p_memcached_server_st_options, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_server_st_state[] = { {&_swigt__p_memcached_server_st_state, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_st[] = { {&_swigt__p_memcached_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_st_allocators[] = { {&_swigt__p_memcached_st_allocators, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_st_flags[] = { {&_swigt__p_memcached_st_flags, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_st_options[] = { {&_swigt__p_memcached_st_options, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_st_state[] = { {&_swigt__p_memcached_st_state, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_stat_st[] = { {&_swigt__p_memcached_stat_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_string_st[] = { {&_swigt__p_memcached_string_st, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_memcached_string_st_options[] = { {&_swigt__p_memcached_string_st_options, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void[] = { {&_swigt__p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t[] = { {&_swigt__p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_sasl_callback_t[] = { {&_swigt__p_sasl_callback_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_uint32_t[] = { {&_swigt__p_uint32_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
|
|
static swig_cast_info *swig_cast_initial[] = {
|
|
_swigc__p__allocators_st,
|
|
_swigc__p_addrinfo,
|
|
_swigc__p_char,
|
|
_swigc__p_f_p_q_const__struct_memcached_st__memcached_return_t,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_p_void_p_void__void,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void,
|
|
_swigc__p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void,
|
|
_swigc__p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t,
|
|
_swigc__p_hashkit_st,
|
|
_swigc__p_int32_t,
|
|
_swigc__p_memcached_analysis_st,
|
|
_swigc__p_memcached_behavior_t,
|
|
_swigc__p_memcached_callback_st,
|
|
_swigc__p_memcached_callback_t,
|
|
_swigc__p_memcached_connection_t,
|
|
_swigc__p_memcached_continuum_item_st,
|
|
_swigc__p_memcached_hash_t,
|
|
_swigc__p_memcached_result_st,
|
|
_swigc__p_memcached_result_st_options,
|
|
_swigc__p_memcached_return_t,
|
|
_swigc__p_memcached_server_distribution_t,
|
|
_swigc__p_memcached_server_st,
|
|
_swigc__p_memcached_server_st_options,
|
|
_swigc__p_memcached_server_st_state,
|
|
_swigc__p_memcached_st,
|
|
_swigc__p_memcached_st_allocators,
|
|
_swigc__p_memcached_st_flags,
|
|
_swigc__p_memcached_st_options,
|
|
_swigc__p_memcached_st_state,
|
|
_swigc__p_memcached_stat_st,
|
|
_swigc__p_memcached_string_st,
|
|
_swigc__p_memcached_string_st_options,
|
|
_swigc__p_p_char,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_struct_memcached_result_st__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__char_size_t_p_void__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_q_const__struct_memcached_server_st_p_void__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_struct_memcached_result_st_p_void__memcached_return_t,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_void_p_void__void,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_p_void_q_const__size_t_p_void__p_void,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_q_const__size_t_p_void__p_void,
|
|
_swigc__p_p_f_p_q_const__struct_memcached_st_size_t_q_const__size_t_p_void__p_void,
|
|
_swigc__p_p_f_p_struct_memcached_st_p_q_const__struct_memcached_st__memcached_return_t,
|
|
_swigc__p_sasl_callback_t,
|
|
_swigc__p_size_t,
|
|
_swigc__p_time_t,
|
|
_swigc__p_uint32_t,
|
|
_swigc__p_uint64_t,
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Type initialization:
|
|
* This problem is tough by the requirement that no dynamic
|
|
* memory is used. Also, since swig_type_info structures store pointers to
|
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
|
* to swig_type_info structures, we need some lookup code at initialization.
|
|
* The idea is that swig generates all the structures that are needed.
|
|
* The runtime then collects these partially filled structures.
|
|
* The SWIG_InitializeModule function takes these initial arrays out of
|
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
|
* array with the correct data and linking the correct swig_cast_info
|
|
* structures together.
|
|
*
|
|
* The generated swig_type_info structures are assigned staticly to an initial
|
|
* array. We just loop through that array, and handle each type individually.
|
|
* First we lookup if this type has been already loaded, and if so, use the
|
|
* loaded structure instead of the generated one. Then we have to fill in the
|
|
* cast linked list. The cast data is initially stored in something like a
|
|
* two-dimensional array. Each row corresponds to a type (there are the same
|
|
* number of rows as there are in the swig_type_initial array). Each entry in
|
|
* a column is one of the swig_cast_info structures for that type.
|
|
* The cast_initial array is actually an array of arrays, because each row has
|
|
* a variable number of columns. So to actually build the cast linked list,
|
|
* we find the array of casts associated with the type, and loop through it
|
|
* adding the casts to the list. The one last trick we need to do is making
|
|
* sure the type pointer in the swig_cast_info struct is correct.
|
|
*
|
|
* First off, we lookup the cast->type name to see if it is already loaded.
|
|
* There are three cases to handle:
|
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
|
* casting info to has not been loaded (it is in this module), THEN we
|
|
* replace the cast->type pointer with the type pointer that has already
|
|
* been loaded.
|
|
* 2) If BOTH types (the one we are adding casting info to, and the
|
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
|
* the previous module so we just ignore it.
|
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
|
* swig_cast_info to the linked list (because the cast->type) pointer will
|
|
* be correct.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* c-mode */
|
|
#endif
|
|
#endif
|
|
|
|
#if 0
|
|
#define SWIGRUNTIME_DEBUG
|
|
#endif
|
|
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_InitializeModule(void *clientdata) {
|
|
size_t i;
|
|
swig_module_info *module_head, *iter;
|
|
int found, init;
|
|
|
|
clientdata = clientdata;
|
|
|
|
/* check to see if the circular list has been setup, if not, set it up */
|
|
if (swig_module.next==0) {
|
|
/* Initialize the swig_module */
|
|
swig_module.type_initial = swig_type_initial;
|
|
swig_module.cast_initial = swig_cast_initial;
|
|
swig_module.next = &swig_module;
|
|
init = 1;
|
|
} else {
|
|
init = 0;
|
|
}
|
|
|
|
/* Try and load any already created modules */
|
|
module_head = SWIG_GetModule(clientdata);
|
|
if (!module_head) {
|
|
/* This is the first module loaded for this interpreter */
|
|
/* so set the swig module into the interpreter */
|
|
SWIG_SetModule(clientdata, &swig_module);
|
|
module_head = &swig_module;
|
|
} else {
|
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
|
found=0;
|
|
iter=module_head;
|
|
do {
|
|
if (iter==&swig_module) {
|
|
found=1;
|
|
break;
|
|
}
|
|
iter=iter->next;
|
|
} while (iter!= module_head);
|
|
|
|
/* if the is found in the list, then all is done and we may leave */
|
|
if (found) return;
|
|
/* otherwise we must add out module into the list */
|
|
swig_module.next = module_head->next;
|
|
module_head->next = &swig_module;
|
|
}
|
|
|
|
/* When multiple interpeters are used, a module could have already been initialized in
|
|
a different interpreter, but not yet have a pointer in this interpreter.
|
|
In this case, we do not want to continue adding types... everything should be
|
|
set up already */
|
|
if (init == 0) return;
|
|
|
|
/* Now work on filling in swig_module.types */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
|
#endif
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
swig_type_info *type = 0;
|
|
swig_type_info *ret;
|
|
swig_cast_info *cast;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
#endif
|
|
|
|
/* if there is another module already loaded */
|
|
if (swig_module.next != &swig_module) {
|
|
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
|
|
}
|
|
if (type) {
|
|
/* Overwrite clientdata field */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found type %s\n", type->name);
|
|
#endif
|
|
if (swig_module.type_initial[i]->clientdata) {
|
|
type->clientdata = swig_module.type_initial[i]->clientdata;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
|
|
#endif
|
|
}
|
|
} else {
|
|
type = swig_module.type_initial[i];
|
|
}
|
|
|
|
/* Insert casting types */
|
|
cast = swig_module.cast_initial[i];
|
|
while (cast->type) {
|
|
|
|
/* Don't need to add information already in the list */
|
|
ret = 0;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
|
|
#endif
|
|
if (swig_module.next != &swig_module) {
|
|
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
|
|
#endif
|
|
}
|
|
if (ret) {
|
|
if (type == swig_module.type_initial[i]) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
|
|
#endif
|
|
cast->type = ret;
|
|
ret = 0;
|
|
} else {
|
|
/* Check for casting already in the list */
|
|
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
|
|
#endif
|
|
if (!ocast) ret = 0;
|
|
}
|
|
}
|
|
|
|
if (!ret) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
|
|
#endif
|
|
if (type->cast) {
|
|
type->cast->prev = cast;
|
|
cast->next = type->cast;
|
|
}
|
|
type->cast = cast;
|
|
}
|
|
cast++;
|
|
}
|
|
/* Set entry in modules->types array equal to the type */
|
|
swig_module.types[i] = type;
|
|
}
|
|
swig_module.types[i] = 0;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
int j = 0;
|
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
while (cast->type) {
|
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
|
cast++;
|
|
++j;
|
|
}
|
|
printf("---- Total casts: %d\n",j);
|
|
}
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
#endif
|
|
}
|
|
|
|
/* This function will propagate the clientdata field of type to
|
|
* any new swig_type_info structures that have been added into the list
|
|
* of equivalent types. It is like calling
|
|
* SWIG_TypeClientData(type, clientdata) a second time.
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_PropagateClientData(void) {
|
|
size_t i;
|
|
swig_cast_info *equiv;
|
|
static int init_run = 0;
|
|
|
|
if (init_run) return;
|
|
init_run = 1;
|
|
|
|
for (i = 0; i < swig_module.size; i++) {
|
|
if (swig_module.types[i]->clientdata) {
|
|
equiv = swig_module.types[i]->cast;
|
|
while (equiv) {
|
|
if (!equiv->converter) {
|
|
if (equiv->type && !equiv->type->clientdata)
|
|
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
|
|
}
|
|
equiv = equiv->next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* c-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
/*
|
|
|
|
*/
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
SWIGEXPORT void Init_rlibmemcached(void) {
|
|
size_t i;
|
|
|
|
SWIG_InitRuntime();
|
|
mRlibmemcached = rb_define_module("Rlibmemcached");
|
|
|
|
SWIG_InitializeModule(0);
|
|
for (i = 0; i < swig_module.size; i++) {
|
|
SWIG_define_class(swig_module.types[i]);
|
|
}
|
|
|
|
SWIG_RubyInitializeTrackings();
|
|
rb_define_const(mRlibmemcached, "LIBMEMCACHED_WITH_SASL_SUPPORT", SWIG_From_int((int)(1)));
|
|
rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_STRING", SWIG_FromCharPtr("0.38"));
|
|
rb_define_const(mRlibmemcached, "LIBMEMCACHED_VERSION_HEX", SWIG_From_int((int)(0x00038000)));
|
|
|
|
SwigClassMemcachedSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_st, (void *) &SwigClassMemcachedSt);
|
|
rb_define_alloc_func(SwigClassMemcachedSt.klass, _wrap_MemcachedSt_allocate);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "initialize", _wrap_new_MemcachedSt, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "distribution=", _wrap_MemcachedSt_distribution_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "distribution", _wrap_MemcachedSt_distribution_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "hashkit=", _wrap_MemcachedSt_hashkit_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "hashkit", _wrap_MemcachedSt_hashkit_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum_points_counter=", _wrap_MemcachedSt_continuum_points_counter_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum_points_counter", _wrap_MemcachedSt_continuum_points_counter_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_hosts=", _wrap_MemcachedSt_number_of_hosts_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_hosts", _wrap_MemcachedSt_number_of_hosts_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "servers=", _wrap_MemcachedSt_servers_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "servers", _wrap_MemcachedSt_servers_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "last_disconnected_server=", _wrap_MemcachedSt_last_disconnected_server_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "last_disconnected_server", _wrap_MemcachedSt_last_disconnected_server_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "snd_timeout=", _wrap_MemcachedSt_snd_timeout_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "snd_timeout", _wrap_MemcachedSt_snd_timeout_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "rcv_timeout=", _wrap_MemcachedSt_rcv_timeout_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "rcv_timeout", _wrap_MemcachedSt_rcv_timeout_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "server_failure_limit=", _wrap_MemcachedSt_server_failure_limit_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "server_failure_limit", _wrap_MemcachedSt_server_failure_limit_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_msg_watermark=", _wrap_MemcachedSt_io_msg_watermark_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_msg_watermark", _wrap_MemcachedSt_io_msg_watermark_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_bytes_watermark=", _wrap_MemcachedSt_io_bytes_watermark_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_bytes_watermark", _wrap_MemcachedSt_io_bytes_watermark_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_key_prefetch=", _wrap_MemcachedSt_io_key_prefetch_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "io_key_prefetch", _wrap_MemcachedSt_io_key_prefetch_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "cached_errno=", _wrap_MemcachedSt_cached_errno_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "cached_errno", _wrap_MemcachedSt_cached_errno_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "poll_timeout=", _wrap_MemcachedSt_poll_timeout_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "poll_timeout", _wrap_MemcachedSt_poll_timeout_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "connect_timeout=", _wrap_MemcachedSt_connect_timeout_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "connect_timeout", _wrap_MemcachedSt_connect_timeout_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "retry_timeout=", _wrap_MemcachedSt_retry_timeout_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "retry_timeout", _wrap_MemcachedSt_retry_timeout_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum_count=", _wrap_MemcachedSt_continuum_count_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum_count", _wrap_MemcachedSt_continuum_count_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "send_size=", _wrap_MemcachedSt_send_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "send_size", _wrap_MemcachedSt_send_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "recv_size=", _wrap_MemcachedSt_recv_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "recv_size", _wrap_MemcachedSt_recv_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "user_data=", _wrap_MemcachedSt_user_data_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "user_data", _wrap_MemcachedSt_user_data_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "next_distribution_rebuild=", _wrap_MemcachedSt_next_distribution_rebuild_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "next_distribution_rebuild", _wrap_MemcachedSt_next_distribution_rebuild_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "prefix_key_length=", _wrap_MemcachedSt_prefix_key_length_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "prefix_key_length", _wrap_MemcachedSt_prefix_key_length_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_replicas=", _wrap_MemcachedSt_number_of_replicas_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_replicas", _wrap_MemcachedSt_number_of_replicas_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "distribution_hashkit=", _wrap_MemcachedSt_distribution_hashkit_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "distribution_hashkit", _wrap_MemcachedSt_distribution_hashkit_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "result=", _wrap_MemcachedSt_result_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "result", _wrap_MemcachedSt_result_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum=", _wrap_MemcachedSt_continuum_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "continuum", _wrap_MemcachedSt_continuum_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "on_clone=", _wrap_MemcachedSt_on_clone_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "on_clone", _wrap_MemcachedSt_on_clone_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "on_cleanup=", _wrap_MemcachedSt_on_cleanup_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "on_cleanup", _wrap_MemcachedSt_on_cleanup_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "get_key_failure=", _wrap_MemcachedSt_get_key_failure_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "get_key_failure", _wrap_MemcachedSt_get_key_failure_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "delete_trigger=", _wrap_MemcachedSt_delete_trigger_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "delete_trigger", _wrap_MemcachedSt_delete_trigger_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "callbacks=", _wrap_MemcachedSt_callbacks_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "callbacks", _wrap_MemcachedSt_callbacks_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "sasl_callbacks=", _wrap_MemcachedSt_sasl_callbacks_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "sasl_callbacks", _wrap_MemcachedSt_sasl_callbacks_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "prefix_key=", _wrap_MemcachedSt_prefix_key_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "prefix_key", _wrap_MemcachedSt_prefix_key_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_live_hosts=", _wrap_MemcachedSt_number_of_live_hosts_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "number_of_live_hosts", _wrap_MemcachedSt_number_of_live_hosts_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices=", _wrap_MemcachedSt_live_host_indices_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices", _wrap_MemcachedSt_live_host_indices_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices_size=", _wrap_MemcachedSt_live_host_indices_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "live_host_indices_size", _wrap_MemcachedSt_live_host_indices_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "options", _wrap_MemcachedSt_options_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "allocators", _wrap_MemcachedSt_allocators_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "flags", _wrap_MemcachedSt_flags_get, -1);
|
|
rb_define_method(SwigClassMemcachedSt.klass, "state", _wrap_MemcachedSt_state_get, -1);
|
|
SwigClassMemcachedSt.mark = 0;
|
|
SwigClassMemcachedSt.destroy = (void (*)(void *)) memcached_free;
|
|
SwigClassMemcachedSt.trackObjects = 0;
|
|
|
|
SwigClassMemcachedStOptions.klass = rb_define_class_under(mRlibmemcached, "MemcachedStOptions", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_st_options, (void *) &SwigClassMemcachedStOptions);
|
|
rb_define_alloc_func(SwigClassMemcachedStOptions.klass, _wrap_MemcachedStOptions_allocate);
|
|
rb_define_method(SwigClassMemcachedStOptions.klass, "initialize", _wrap_new_MemcachedStOptions, -1);
|
|
rb_define_method(SwigClassMemcachedStOptions.klass, "is_allocated=", _wrap_MemcachedStOptions_is_allocated_set, -1);
|
|
rb_define_method(SwigClassMemcachedStOptions.klass, "is_allocated", _wrap_MemcachedStOptions_is_allocated_get, -1);
|
|
SwigClassMemcachedStOptions.mark = 0;
|
|
SwigClassMemcachedStOptions.destroy = (void (*)(void *)) free_memcached_st_options;
|
|
SwigClassMemcachedStOptions.trackObjects = 0;
|
|
|
|
SwigClassMemcachedStAllocators.klass = rb_define_class_under(mRlibmemcached, "MemcachedStAllocators", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_st_allocators, (void *) &SwigClassMemcachedStAllocators);
|
|
rb_define_alloc_func(SwigClassMemcachedStAllocators.klass, _wrap_MemcachedStAllocators_allocate);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "initialize", _wrap_new_MemcachedStAllocators, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "calloc=", _wrap_MemcachedStAllocators_calloc_set, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "calloc", _wrap_MemcachedStAllocators_calloc_get, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "free=", _wrap_MemcachedStAllocators_free_set, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "free", _wrap_MemcachedStAllocators_free_get, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "malloc=", _wrap_MemcachedStAllocators_malloc_set, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "malloc", _wrap_MemcachedStAllocators_malloc_get, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "realloc=", _wrap_MemcachedStAllocators_realloc_set, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "realloc", _wrap_MemcachedStAllocators_realloc_get, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "context=", _wrap_MemcachedStAllocators_context_set, -1);
|
|
rb_define_method(SwigClassMemcachedStAllocators.klass, "context", _wrap_MemcachedStAllocators_context_get, -1);
|
|
SwigClassMemcachedStAllocators.mark = 0;
|
|
SwigClassMemcachedStAllocators.destroy = (void (*)(void *)) free_memcached_st_allocators;
|
|
SwigClassMemcachedStAllocators.trackObjects = 0;
|
|
|
|
SwigClassMemcachedStFlags.klass = rb_define_class_under(mRlibmemcached, "MemcachedStFlags", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_st_flags, (void *) &SwigClassMemcachedStFlags);
|
|
rb_define_alloc_func(SwigClassMemcachedStFlags.klass, _wrap_MemcachedStFlags_allocate);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "initialize", _wrap_new_MemcachedStFlags, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "auto_eject_hosts=", _wrap_MemcachedStFlags_auto_eject_hosts_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "auto_eject_hosts", _wrap_MemcachedStFlags_auto_eject_hosts_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "binary_protocol=", _wrap_MemcachedStFlags_binary_protocol_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "binary_protocol", _wrap_MemcachedStFlags_binary_protocol_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "buffer_requests=", _wrap_MemcachedStFlags_buffer_requests_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "buffer_requests", _wrap_MemcachedStFlags_buffer_requests_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "cork=", _wrap_MemcachedStFlags_cork_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "cork", _wrap_MemcachedStFlags_cork_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "hash_with_prefix_key=", _wrap_MemcachedStFlags_hash_with_prefix_key_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "hash_with_prefix_key", _wrap_MemcachedStFlags_hash_with_prefix_key_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "ketama_weighted=", _wrap_MemcachedStFlags_ketama_weighted_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "ketama_weighted", _wrap_MemcachedStFlags_ketama_weighted_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "no_block=", _wrap_MemcachedStFlags_no_block_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "no_block", _wrap_MemcachedStFlags_no_block_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "no_reply=", _wrap_MemcachedStFlags_no_reply_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "no_reply", _wrap_MemcachedStFlags_no_reply_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "randomize_replica_read=", _wrap_MemcachedStFlags_randomize_replica_read_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "randomize_replica_read", _wrap_MemcachedStFlags_randomize_replica_read_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "reuse_memory=", _wrap_MemcachedStFlags_reuse_memory_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "reuse_memory", _wrap_MemcachedStFlags_reuse_memory_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "support_cas=", _wrap_MemcachedStFlags_support_cas_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "support_cas", _wrap_MemcachedStFlags_support_cas_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "tcp_nodelay=", _wrap_MemcachedStFlags_tcp_nodelay_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "tcp_nodelay", _wrap_MemcachedStFlags_tcp_nodelay_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_cache_lookups=", _wrap_MemcachedStFlags_use_cache_lookups_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_cache_lookups", _wrap_MemcachedStFlags_use_cache_lookups_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_sort_hosts=", _wrap_MemcachedStFlags_use_sort_hosts_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_sort_hosts", _wrap_MemcachedStFlags_use_sort_hosts_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_udp=", _wrap_MemcachedStFlags_use_udp_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "use_udp", _wrap_MemcachedStFlags_use_udp_get, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "verify_key=", _wrap_MemcachedStFlags_verify_key_set, -1);
|
|
rb_define_method(SwigClassMemcachedStFlags.klass, "verify_key", _wrap_MemcachedStFlags_verify_key_get, -1);
|
|
SwigClassMemcachedStFlags.mark = 0;
|
|
SwigClassMemcachedStFlags.destroy = (void (*)(void *)) free_memcached_st_flags;
|
|
SwigClassMemcachedStFlags.trackObjects = 0;
|
|
|
|
SwigClassMemcachedStState.klass = rb_define_class_under(mRlibmemcached, "MemcachedStState", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_st_state, (void *) &SwigClassMemcachedStState);
|
|
rb_define_alloc_func(SwigClassMemcachedStState.klass, _wrap_MemcachedStState_allocate);
|
|
rb_define_method(SwigClassMemcachedStState.klass, "initialize", _wrap_new_MemcachedStState, -1);
|
|
rb_define_method(SwigClassMemcachedStState.klass, "is_purging=", _wrap_MemcachedStState_is_purging_set, -1);
|
|
rb_define_method(SwigClassMemcachedStState.klass, "is_purging", _wrap_MemcachedStState_is_purging_get, -1);
|
|
rb_define_method(SwigClassMemcachedStState.klass, "is_processing_input=", _wrap_MemcachedStState_is_processing_input_set, -1);
|
|
rb_define_method(SwigClassMemcachedStState.klass, "is_processing_input", _wrap_MemcachedStState_is_processing_input_get, -1);
|
|
SwigClassMemcachedStState.mark = 0;
|
|
SwigClassMemcachedStState.destroy = (void (*)(void *)) free_memcached_st_state;
|
|
SwigClassMemcachedStState.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_servers_reset", _wrap_memcached_servers_reset, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_create", _wrap_memcached_create, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_free", _wrap_memcached_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_clone", _wrap_memcached_clone, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_user_data", _wrap_memcached_get_user_data, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set_user_data", _wrap_memcached_set_user_data, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_push", _wrap_memcached_push, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_instance_by_position", _wrap_memcached_server_instance_by_position, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_count", _wrap_memcached_server_count, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set_memory_allocators", _wrap_memcached_set_memory_allocators, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_memory_allocators", _wrap_memcached_get_memory_allocators, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_memory_allocators_context", _wrap_memcached_get_memory_allocators_context, -1);
|
|
rb_define_module_function(mRlibmemcached, "_libmemcached_free", _wrap__libmemcached_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "_libmemcached_malloc", _wrap__libmemcached_malloc, -1);
|
|
rb_define_module_function(mRlibmemcached, "_libmemcached_realloc", _wrap__libmemcached_realloc, -1);
|
|
rb_define_module_function(mRlibmemcached, "_libmemcached_calloc", _wrap__libmemcached_calloc, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_allocators_return_default", _wrap_memcached_allocators_return_default, -1);
|
|
|
|
SwigClassMemcachedAnalysisSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedAnalysisSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_analysis_st, (void *) &SwigClassMemcachedAnalysisSt);
|
|
rb_define_alloc_func(SwigClassMemcachedAnalysisSt.klass, _wrap_MemcachedAnalysisSt_allocate);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "initialize", _wrap_new_MemcachedAnalysisSt, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "root=", _wrap_MemcachedAnalysisSt_root_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "root", _wrap_MemcachedAnalysisSt_root_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "average_item_size=", _wrap_MemcachedAnalysisSt_average_item_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "average_item_size", _wrap_MemcachedAnalysisSt_average_item_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "longest_uptime=", _wrap_MemcachedAnalysisSt_longest_uptime_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "longest_uptime", _wrap_MemcachedAnalysisSt_longest_uptime_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_free_server=", _wrap_MemcachedAnalysisSt_least_free_server_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_free_server", _wrap_MemcachedAnalysisSt_least_free_server_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_consumed_server=", _wrap_MemcachedAnalysisSt_most_consumed_server_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_consumed_server", _wrap_MemcachedAnalysisSt_most_consumed_server_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "oldest_server=", _wrap_MemcachedAnalysisSt_oldest_server_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "oldest_server", _wrap_MemcachedAnalysisSt_oldest_server_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "pool_hit_ratio=", _wrap_MemcachedAnalysisSt_pool_hit_ratio_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "pool_hit_ratio", _wrap_MemcachedAnalysisSt_pool_hit_ratio_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_used_bytes=", _wrap_MemcachedAnalysisSt_most_used_bytes_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "most_used_bytes", _wrap_MemcachedAnalysisSt_most_used_bytes_get, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_remaining_bytes=", _wrap_MemcachedAnalysisSt_least_remaining_bytes_set, -1);
|
|
rb_define_method(SwigClassMemcachedAnalysisSt.klass, "least_remaining_bytes", _wrap_MemcachedAnalysisSt_least_remaining_bytes_get, -1);
|
|
SwigClassMemcachedAnalysisSt.mark = 0;
|
|
SwigClassMemcachedAnalysisSt.destroy = (void (*)(void *)) free_memcached_analysis_st;
|
|
SwigClassMemcachedAnalysisSt.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_analyze", _wrap_memcached_analyze, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_analyze_free", _wrap_memcached_analyze_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_increment", _wrap_memcached_increment, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_decrement", _wrap_memcached_decrement, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_increment_by_key", _wrap_memcached_increment_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_decrement_by_key", _wrap_memcached_decrement_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_increment_with_initial", _wrap_memcached_increment_with_initial, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_decrement_with_initial", _wrap_memcached_decrement_with_initial, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_increment_with_initial_by_key", _wrap_memcached_increment_with_initial_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_decrement_with_initial_by_key", _wrap_memcached_decrement_with_initial_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_set", _wrap_memcached_behavior_set, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_get", _wrap_memcached_behavior_get, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_set_distribution", _wrap_memcached_behavior_set_distribution, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_get_distribution", _wrap_memcached_behavior_get_distribution, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_set_key_hash", _wrap_memcached_behavior_set_key_hash, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_get_key_hash", _wrap_memcached_behavior_get_key_hash, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_set_distribution_hash", _wrap_memcached_behavior_set_distribution_hash, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_behavior_get_distribution_hash", _wrap_memcached_behavior_get_distribution_hash, -1);
|
|
rb_define_module_function(mRlibmemcached, "_is_auto_eject_host", _wrap__is_auto_eject_host, -1);
|
|
|
|
SwigClassMemcachedCallbackSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedCallbackSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_callback_st, (void *) &SwigClassMemcachedCallbackSt);
|
|
rb_define_alloc_func(SwigClassMemcachedCallbackSt.klass, _wrap_MemcachedCallbackSt_allocate);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "initialize", _wrap_new_MemcachedCallbackSt, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "callback=", _wrap_MemcachedCallbackSt_callback_set, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "callback", _wrap_MemcachedCallbackSt_callback_get, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "context=", _wrap_MemcachedCallbackSt_context_set, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "context", _wrap_MemcachedCallbackSt_context_get, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "number_of_callback=", _wrap_MemcachedCallbackSt_number_of_callback_set, -1);
|
|
rb_define_method(SwigClassMemcachedCallbackSt.klass, "number_of_callback", _wrap_MemcachedCallbackSt_number_of_callback_get, -1);
|
|
SwigClassMemcachedCallbackSt.mark = 0;
|
|
SwigClassMemcachedCallbackSt.destroy = (void (*)(void *)) free_memcached_callback_st;
|
|
SwigClassMemcachedCallbackSt.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_callback_set", _wrap_memcached_callback_set, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_callback_get", _wrap_memcached_callback_get, -1);
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DEFAULT_PORT", SWIG_From_int((int)(11211)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_MAX_KEY", SWIG_From_int((int)(251)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_MAX_BUFFER", SWIG_From_int((int)(8196)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_MAX_HOST_SORT_LENGTH", SWIG_From_int((int)(86)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_POINTS_PER_SERVER", SWIG_From_int((int)(100)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_POINTS_PER_SERVER_KETAMA", SWIG_From_int((int)(160)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONTINUUM_SIZE", SWIG_From_int((int)(100*100)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_STRIDE", SWIG_From_int((int)(4)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DEFAULT_TIMEOUT", SWIG_From_int((int)(1000)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONTINUUM_ADDITION", SWIG_From_int((int)(10)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_PREFIX_KEY_MAX_SIZE", SWIG_From_int((int)(128)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_EXPIRATION_NOT_ADD", SWIG_From_unsigned_SS_int((unsigned int)(0xffffffffU)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_VERSION_STRING_LENGTH", SWIG_From_int((int)(24)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_SUCCESS", SWIG_From_int((int)(MEMCACHED_SUCCESS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_FAILURE", SWIG_From_int((int)(MEMCACHED_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HOST_LOOKUP_FAILURE", SWIG_From_int((int)(MEMCACHED_HOST_LOOKUP_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_FAILURE", SWIG_From_int((int)(MEMCACHED_CONNECTION_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_BIND_FAILURE", SWIG_From_int((int)(MEMCACHED_CONNECTION_BIND_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_WRITE_FAILURE", SWIG_From_int((int)(MEMCACHED_WRITE_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_READ_FAILURE", SWIG_From_int((int)(MEMCACHED_READ_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_UNKNOWN_READ_FAILURE", SWIG_From_int((int)(MEMCACHED_UNKNOWN_READ_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_PROTOCOL_ERROR", SWIG_From_int((int)(MEMCACHED_PROTOCOL_ERROR)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CLIENT_ERROR", SWIG_From_int((int)(MEMCACHED_CLIENT_ERROR)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_SERVER_ERROR", SWIG_From_int((int)(MEMCACHED_SERVER_ERROR)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE", SWIG_From_int((int)(MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DATA_EXISTS", SWIG_From_int((int)(MEMCACHED_DATA_EXISTS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DATA_DOES_NOT_EXIST", SWIG_From_int((int)(MEMCACHED_DATA_DOES_NOT_EXIST)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_NOTSTORED", SWIG_From_int((int)(MEMCACHED_NOTSTORED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_STORED", SWIG_From_int((int)(MEMCACHED_STORED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_NOTFOUND", SWIG_From_int((int)(MEMCACHED_NOTFOUND)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_MEMORY_ALLOCATION_FAILURE", SWIG_From_int((int)(MEMCACHED_MEMORY_ALLOCATION_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_PARTIAL_READ", SWIG_From_int((int)(MEMCACHED_PARTIAL_READ)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_SOME_ERRORS", SWIG_From_int((int)(MEMCACHED_SOME_ERRORS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_NO_SERVERS", SWIG_From_int((int)(MEMCACHED_NO_SERVERS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_END", SWIG_From_int((int)(MEMCACHED_END)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DELETED", SWIG_From_int((int)(MEMCACHED_DELETED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_VALUE", SWIG_From_int((int)(MEMCACHED_VALUE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_STAT", SWIG_From_int((int)(MEMCACHED_STAT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_ITEM", SWIG_From_int((int)(MEMCACHED_ITEM)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_ERRNO", SWIG_From_int((int)(MEMCACHED_ERRNO)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_FAIL_UNIX_SOCKET", SWIG_From_int((int)(MEMCACHED_FAIL_UNIX_SOCKET)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_NOT_SUPPORTED", SWIG_From_int((int)(MEMCACHED_NOT_SUPPORTED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_NO_KEY_PROVIDED", SWIG_From_int((int)(MEMCACHED_NO_KEY_PROVIDED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_FETCH_NOTFINISHED", SWIG_From_int((int)(MEMCACHED_FETCH_NOTFINISHED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_TIMEOUT", SWIG_From_int((int)(MEMCACHED_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BUFFERED", SWIG_From_int((int)(MEMCACHED_BUFFERED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BAD_KEY_PROVIDED", SWIG_From_int((int)(MEMCACHED_BAD_KEY_PROVIDED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_INVALID_HOST_PROTOCOL", SWIG_From_int((int)(MEMCACHED_INVALID_HOST_PROTOCOL)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_SERVER_MARKED_DEAD", SWIG_From_int((int)(MEMCACHED_SERVER_MARKED_DEAD)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_UNKNOWN_STAT_KEY", SWIG_From_int((int)(MEMCACHED_UNKNOWN_STAT_KEY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_E2BIG", SWIG_From_int((int)(MEMCACHED_E2BIG)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_INVALID_ARGUMENTS", SWIG_From_int((int)(MEMCACHED_INVALID_ARGUMENTS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_KEY_TOO_BIG", SWIG_From_int((int)(MEMCACHED_KEY_TOO_BIG)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_AUTH_PROBLEM", SWIG_From_int((int)(MEMCACHED_AUTH_PROBLEM)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_AUTH_FAILURE", SWIG_From_int((int)(MEMCACHED_AUTH_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_AUTH_CONTINUE", SWIG_From_int((int)(MEMCACHED_AUTH_CONTINUE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_MAXIMUM_RETURN", SWIG_From_int((int)(MEMCACHED_MAXIMUM_RETURN)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_MODULA", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_MODULA)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_RANDOM", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_RANDOM)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_DISTRIBUTION_CONSISTENT_MAX", SWIG_From_int((int)(MEMCACHED_DISTRIBUTION_CONSISTENT_MAX)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NO_BLOCK", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NO_BLOCK)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_TCP_NODELAY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_TCP_NODELAY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_HASH", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_HASH)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_KETAMA", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_CACHE_LOOKUPS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_CACHE_LOOKUPS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SUPPORT_CAS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SUPPORT_CAS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_POLL_TIMEOUT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_POLL_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_DISTRIBUTION", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_DISTRIBUTION)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_BUFFER_REQUESTS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_BUFFER_REQUESTS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_USER_DATA", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_USER_DATA)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SORT_HOSTS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SORT_HOSTS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_VERIFY_KEY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_VERIFY_KEY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_CONNECT_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_RETRY_TIMEOUT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_RETRY_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_KETAMA_HASH", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_KETAMA_HASH)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_BINARY_PROTOCOL", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_BINARY_PROTOCOL)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SND_TIMEOUT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SND_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_RCV_TIMEOUT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_RCV_TIMEOUT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_SERVER_FAILURE_LIMIT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_BYTES_WATERMARK)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_IO_KEY_PREFETCH)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_HASH_WITH_PREFIX_KEY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NOREPLY", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NOREPLY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_USE_UDP", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_USE_UDP)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_AUTO_EJECT_HOSTS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_NUMBER_OF_REPLICAS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_RANDOMIZE_REPLICA_READ)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_CORK", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_CORK)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_BEHAVIOR_MAX", SWIG_From_int((int)(MEMCACHED_BEHAVIOR_MAX)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_PREFIX_KEY", SWIG_From_int((int)(MEMCACHED_CALLBACK_PREFIX_KEY)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_USER_DATA", SWIG_From_int((int)(MEMCACHED_CALLBACK_USER_DATA)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_CLEANUP_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_CLEANUP_FUNCTION)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_CLONE_FUNCTION", SWIG_From_int((int)(MEMCACHED_CALLBACK_CLONE_FUNCTION)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_GET_FAILURE", SWIG_From_int((int)(MEMCACHED_CALLBACK_GET_FAILURE)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_DELETE_TRIGGER", SWIG_From_int((int)(MEMCACHED_CALLBACK_DELETE_TRIGGER)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CALLBACK_MAX", SWIG_From_int((int)(MEMCACHED_CALLBACK_MAX)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_DEFAULT", SWIG_From_int((int)(MEMCACHED_HASH_DEFAULT)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_MD5", SWIG_From_int((int)(MEMCACHED_HASH_MD5)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_CRC", SWIG_From_int((int)(MEMCACHED_HASH_CRC)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1_64", SWIG_From_int((int)(MEMCACHED_HASH_FNV1_64)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1A_64", SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_64)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1_32", SWIG_From_int((int)(MEMCACHED_HASH_FNV1_32)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_FNV1A_32", SWIG_From_int((int)(MEMCACHED_HASH_FNV1A_32)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_HSIEH", SWIG_From_int((int)(MEMCACHED_HASH_HSIEH)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_MURMUR", SWIG_From_int((int)(MEMCACHED_HASH_MURMUR)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_JENKINS", SWIG_From_int((int)(MEMCACHED_HASH_JENKINS)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_CUSTOM", SWIG_From_int((int)(MEMCACHED_HASH_CUSTOM)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_HASH_MAX", SWIG_From_int((int)(MEMCACHED_HASH_MAX)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UNKNOWN", SWIG_From_int((int)(MEMCACHED_CONNECTION_UNKNOWN)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_TCP", SWIG_From_int((int)(MEMCACHED_CONNECTION_TCP)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UDP", SWIG_From_int((int)(MEMCACHED_CONNECTION_UDP)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_UNIX_SOCKET", SWIG_From_int((int)(MEMCACHED_CONNECTION_UNIX_SOCKET)));
|
|
rb_define_const(mRlibmemcached, "MEMCACHED_CONNECTION_MAX", SWIG_From_int((int)(MEMCACHED_CONNECTION_MAX)));
|
|
rb_define_module_function(mRlibmemcached, "memcached_delete", _wrap_memcached_delete, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_delete_by_key", _wrap_memcached_delete_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_dump", _wrap_memcached_dump, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_fetch_execute", _wrap_memcached_fetch_execute, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_flush", _wrap_memcached_flush, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get", _wrap_memcached_get, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_mget", _wrap_memcached_mget, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_by_key", _wrap_memcached_get_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_mget_by_key", _wrap_memcached_mget_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_fetch", _wrap_memcached_fetch, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_fetch_result", _wrap_memcached_fetch_result, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_mget_execute", _wrap_memcached_mget_execute, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_mget_execute_by_key", _wrap_memcached_mget_execute_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_generate_hash_value", _wrap_memcached_generate_hash_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_hashkit", _wrap_memcached_get_hashkit, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_generate_hash", _wrap_memcached_generate_hash, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_generate_hash_with_redistribution", _wrap_memcached_generate_hash_with_redistribution, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_autoeject", _wrap_memcached_autoeject, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_servers_parse", _wrap_memcached_servers_parse, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_quit", _wrap_memcached_quit, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_quit_server", _wrap_memcached_quit_server, -1);
|
|
|
|
SwigClassMemcachedResultSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedResultSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_result_st, (void *) &SwigClassMemcachedResultSt);
|
|
rb_define_alloc_func(SwigClassMemcachedResultSt.klass, _wrap_MemcachedResultSt_allocate);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "initialize", _wrap_new_MemcachedResultSt, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_flags=", _wrap_MemcachedResultSt_item_flags_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_flags", _wrap_MemcachedResultSt_item_flags_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_expiration=", _wrap_MemcachedResultSt_item_expiration_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_expiration", _wrap_MemcachedResultSt_item_expiration_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "key_length=", _wrap_MemcachedResultSt_key_length_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "key_length", _wrap_MemcachedResultSt_key_length_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_cas=", _wrap_MemcachedResultSt_item_cas_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_cas", _wrap_MemcachedResultSt_item_cas_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "root=", _wrap_MemcachedResultSt_root_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "root", _wrap_MemcachedResultSt_root_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "value=", _wrap_MemcachedResultSt_value_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "value", _wrap_MemcachedResultSt_value_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_key=", _wrap_MemcachedResultSt_item_key_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "item_key", _wrap_MemcachedResultSt_item_key_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultSt.klass, "options", _wrap_MemcachedResultSt_options_get, -1);
|
|
SwigClassMemcachedResultSt.mark = 0;
|
|
SwigClassMemcachedResultSt.destroy = (void (*)(void *)) free_memcached_result_st;
|
|
SwigClassMemcachedResultSt.trackObjects = 0;
|
|
|
|
SwigClassMemcachedResultStOptions.klass = rb_define_class_under(mRlibmemcached, "MemcachedResultStOptions", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_result_st_options, (void *) &SwigClassMemcachedResultStOptions);
|
|
rb_define_alloc_func(SwigClassMemcachedResultStOptions.klass, _wrap_MemcachedResultStOptions_allocate);
|
|
rb_define_method(SwigClassMemcachedResultStOptions.klass, "initialize", _wrap_new_MemcachedResultStOptions, -1);
|
|
rb_define_method(SwigClassMemcachedResultStOptions.klass, "is_allocated=", _wrap_MemcachedResultStOptions_is_allocated_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultStOptions.klass, "is_allocated", _wrap_MemcachedResultStOptions_is_allocated_get, -1);
|
|
rb_define_method(SwigClassMemcachedResultStOptions.klass, "is_initialized=", _wrap_MemcachedResultStOptions_is_initialized_set, -1);
|
|
rb_define_method(SwigClassMemcachedResultStOptions.klass, "is_initialized", _wrap_MemcachedResultStOptions_is_initialized_get, -1);
|
|
SwigClassMemcachedResultStOptions.mark = 0;
|
|
SwigClassMemcachedResultStOptions.destroy = (void (*)(void *)) free_memcached_result_st_options;
|
|
SwigClassMemcachedResultStOptions.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_free", _wrap_memcached_result_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_reset", _wrap_memcached_result_reset, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_create", _wrap_memcached_result_create, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_key_value", _wrap_memcached_result_key_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_key_length", _wrap_memcached_result_key_length, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_value", _wrap_memcached_result_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_length", _wrap_memcached_result_length, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_flags", _wrap_memcached_result_flags, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_cas", _wrap_memcached_result_cas, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_set_value", _wrap_memcached_result_set_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_set_flags", _wrap_memcached_result_set_flags, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_result_set_expiration", _wrap_memcached_result_set_expiration, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set_sasl_callbacks", _wrap_memcached_set_sasl_callbacks, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set_sasl_auth_data", _wrap_memcached_set_sasl_auth_data, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_destroy_sasl_auth_data", _wrap_memcached_destroy_sasl_auth_data, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_sasl_callbacks", _wrap_memcached_get_sasl_callbacks, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_sasl_authenticate_connection", _wrap_memcached_sasl_authenticate_connection, -1);
|
|
|
|
SwigClassMemcachedServerSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedServerSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_server_st, (void *) &SwigClassMemcachedServerSt);
|
|
rb_define_alloc_func(SwigClassMemcachedServerSt.klass, _wrap_MemcachedServerSt_allocate);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "initialize", _wrap_new_MemcachedServerSt, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "number_of_hosts=", _wrap_MemcachedServerSt_number_of_hosts_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "number_of_hosts", _wrap_MemcachedServerSt_number_of_hosts_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cursor_active=", _wrap_MemcachedServerSt_cursor_active_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cursor_active", _wrap_MemcachedServerSt_cursor_active_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "port=", _wrap_MemcachedServerSt_port_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "port", _wrap_MemcachedServerSt_port_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cached_errno=", _wrap_MemcachedServerSt_cached_errno_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cached_errno", _wrap_MemcachedServerSt_cached_errno_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "fd=", _wrap_MemcachedServerSt_fd_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "fd", _wrap_MemcachedServerSt_fd_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "io_bytes_sent=", _wrap_MemcachedServerSt_io_bytes_sent_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "io_bytes_sent", _wrap_MemcachedServerSt_io_bytes_sent_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "server_failure_counter=", _wrap_MemcachedServerSt_server_failure_counter_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "server_failure_counter", _wrap_MemcachedServerSt_server_failure_counter_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "weight=", _wrap_MemcachedServerSt_weight_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "weight", _wrap_MemcachedServerSt_weight_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "major_version=", _wrap_MemcachedServerSt_major_version_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "major_version", _wrap_MemcachedServerSt_major_version_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "micro_version=", _wrap_MemcachedServerSt_micro_version_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "micro_version", _wrap_MemcachedServerSt_micro_version_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "minor_version=", _wrap_MemcachedServerSt_minor_version_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "minor_version", _wrap_MemcachedServerSt_minor_version_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "type=", _wrap_MemcachedServerSt_type_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "type", _wrap_MemcachedServerSt_type_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_ptr=", _wrap_MemcachedServerSt_read_ptr_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_ptr", _wrap_MemcachedServerSt_read_ptr_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cached_server_error=", _wrap_MemcachedServerSt_cached_server_error_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "cached_server_error", _wrap_MemcachedServerSt_cached_server_error_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer_length=", _wrap_MemcachedServerSt_read_buffer_length_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer_length", _wrap_MemcachedServerSt_read_buffer_length_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_data_length=", _wrap_MemcachedServerSt_read_data_length_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_data_length", _wrap_MemcachedServerSt_read_data_length_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer_offset=", _wrap_MemcachedServerSt_write_buffer_offset_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer_offset", _wrap_MemcachedServerSt_write_buffer_offset_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "address_info=", _wrap_MemcachedServerSt_address_info_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "address_info", _wrap_MemcachedServerSt_address_info_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "next_retry=", _wrap_MemcachedServerSt_next_retry_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "next_retry", _wrap_MemcachedServerSt_next_retry_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "root=", _wrap_MemcachedServerSt_root_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "root", _wrap_MemcachedServerSt_root_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "limit_maxbytes=", _wrap_MemcachedServerSt_limit_maxbytes_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "limit_maxbytes", _wrap_MemcachedServerSt_limit_maxbytes_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer=", _wrap_MemcachedServerSt_read_buffer_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "read_buffer", _wrap_MemcachedServerSt_read_buffer_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer=", _wrap_MemcachedServerSt_write_buffer_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "write_buffer", _wrap_MemcachedServerSt_write_buffer_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "hostname=", _wrap_MemcachedServerSt_hostname_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "hostname", _wrap_MemcachedServerSt_hostname_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "state", _wrap_MemcachedServerSt_state_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerSt.klass, "options", _wrap_MemcachedServerSt_options_get, -1);
|
|
SwigClassMemcachedServerSt.mark = 0;
|
|
SwigClassMemcachedServerSt.destroy = (void (*)(void *)) memcached_server_free;
|
|
SwigClassMemcachedServerSt.trackObjects = 0;
|
|
|
|
SwigClassMemcachedServerStState.klass = rb_define_class_under(mRlibmemcached, "MemcachedServerStState", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_server_st_state, (void *) &SwigClassMemcachedServerStState);
|
|
rb_define_alloc_func(SwigClassMemcachedServerStState.klass, _wrap_MemcachedServerStState_allocate);
|
|
rb_define_method(SwigClassMemcachedServerStState.klass, "initialize", _wrap_new_MemcachedServerStState, -1);
|
|
rb_define_method(SwigClassMemcachedServerStState.klass, "is_corked=", _wrap_MemcachedServerStState_is_corked_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerStState.klass, "is_corked", _wrap_MemcachedServerStState_is_corked_get, -1);
|
|
SwigClassMemcachedServerStState.mark = 0;
|
|
SwigClassMemcachedServerStState.destroy = (void (*)(void *)) free_memcached_server_st_state;
|
|
SwigClassMemcachedServerStState.trackObjects = 0;
|
|
|
|
SwigClassMemcachedServerStOptions.klass = rb_define_class_under(mRlibmemcached, "MemcachedServerStOptions", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_server_st_options, (void *) &SwigClassMemcachedServerStOptions);
|
|
rb_define_alloc_func(SwigClassMemcachedServerStOptions.klass, _wrap_MemcachedServerStOptions_allocate);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "initialize", _wrap_new_MemcachedServerStOptions, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_allocated=", _wrap_MemcachedServerStOptions_is_allocated_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_allocated", _wrap_MemcachedServerStOptions_is_allocated_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_initialized=", _wrap_MemcachedServerStOptions_is_initialized_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_initialized", _wrap_MemcachedServerStOptions_is_initialized_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "sockaddr_inited=", _wrap_MemcachedServerStOptions_sockaddr_inited_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "sockaddr_inited", _wrap_MemcachedServerStOptions_sockaddr_inited_get, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_shutting_down=", _wrap_MemcachedServerStOptions_is_shutting_down_set, -1);
|
|
rb_define_method(SwigClassMemcachedServerStOptions.klass, "is_shutting_down", _wrap_MemcachedServerStOptions_is_shutting_down_get, -1);
|
|
SwigClassMemcachedServerStOptions.mark = 0;
|
|
SwigClassMemcachedServerStOptions.destroy = (void (*)(void *)) free_memcached_server_st_options;
|
|
SwigClassMemcachedServerStOptions.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_cursor", _wrap_memcached_server_cursor, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_by_key", _wrap_memcached_server_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_error_reset", _wrap_memcached_server_error_reset, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_free", _wrap_memcached_server_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_clone", _wrap_memcached_server_clone, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_get_last_disconnect", _wrap_memcached_server_get_last_disconnect, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add_udp", _wrap_memcached_server_add_udp, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add_unix_socket", _wrap_memcached_server_add_unix_socket, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add", _wrap_memcached_server_add, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add_udp_with_weight", _wrap_memcached_server_add_udp_with_weight, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add_unix_socket_with_weight", _wrap_memcached_server_add_unix_socket_with_weight, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_add_with_weight", _wrap_memcached_server_add_with_weight, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_response_count", _wrap_memcached_server_response_count, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_name", _wrap_memcached_server_name, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_port", _wrap_memcached_server_port, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_error", _wrap_memcached_server_error, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list_free", _wrap_memcached_server_list_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_push", _wrap_memcached_server_push, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list_append", _wrap_memcached_server_list_append, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list_append_with_weight", _wrap_memcached_server_list_append_with_weight, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list_count", _wrap_memcached_server_list_count, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_servers_set_count", _wrap_memcached_servers_set_count, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list", _wrap_memcached_server_list, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_server_list_set", _wrap_memcached_server_list_set, -1);
|
|
|
|
SwigClassMemcachedStatSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedStatSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_stat_st, (void *) &SwigClassMemcachedStatSt);
|
|
rb_define_alloc_func(SwigClassMemcachedStatSt.klass, _wrap_MemcachedStatSt_allocate);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "initialize", _wrap_new_MemcachedStatSt, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "connection_structures=", _wrap_MemcachedStatSt_connection_structures_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "connection_structures", _wrap_MemcachedStatSt_connection_structures_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "curr_connections=", _wrap_MemcachedStatSt_curr_connections_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "curr_connections", _wrap_MemcachedStatSt_curr_connections_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "curr_items=", _wrap_MemcachedStatSt_curr_items_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "curr_items", _wrap_MemcachedStatSt_curr_items_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "pid=", _wrap_MemcachedStatSt_pid_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "pid", _wrap_MemcachedStatSt_pid_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "pointer_size=", _wrap_MemcachedStatSt_pointer_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "pointer_size", _wrap_MemcachedStatSt_pointer_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_microseconds=", _wrap_MemcachedStatSt_rusage_system_microseconds_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_microseconds", _wrap_MemcachedStatSt_rusage_system_microseconds_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_seconds=", _wrap_MemcachedStatSt_rusage_system_seconds_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_system_seconds", _wrap_MemcachedStatSt_rusage_system_seconds_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_microseconds=", _wrap_MemcachedStatSt_rusage_user_microseconds_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_microseconds", _wrap_MemcachedStatSt_rusage_user_microseconds_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_seconds=", _wrap_MemcachedStatSt_rusage_user_seconds_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "rusage_user_seconds", _wrap_MemcachedStatSt_rusage_user_seconds_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "threads=", _wrap_MemcachedStatSt_threads_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "threads", _wrap_MemcachedStatSt_threads_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "time=", _wrap_MemcachedStatSt_time_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "time", _wrap_MemcachedStatSt_time_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "total_connections=", _wrap_MemcachedStatSt_total_connections_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "total_connections", _wrap_MemcachedStatSt_total_connections_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "total_items=", _wrap_MemcachedStatSt_total_items_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "total_items", _wrap_MemcachedStatSt_total_items_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "uptime=", _wrap_MemcachedStatSt_uptime_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "uptime", _wrap_MemcachedStatSt_uptime_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes=", _wrap_MemcachedStatSt_bytes_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes", _wrap_MemcachedStatSt_bytes_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_read=", _wrap_MemcachedStatSt_bytes_read_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_read", _wrap_MemcachedStatSt_bytes_read_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_written=", _wrap_MemcachedStatSt_bytes_written_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "bytes_written", _wrap_MemcachedStatSt_bytes_written_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_get=", _wrap_MemcachedStatSt_cmd_get_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_get", _wrap_MemcachedStatSt_cmd_get_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_set=", _wrap_MemcachedStatSt_cmd_set_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "cmd_set", _wrap_MemcachedStatSt_cmd_set_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "evictions=", _wrap_MemcachedStatSt_evictions_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "evictions", _wrap_MemcachedStatSt_evictions_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "get_hits=", _wrap_MemcachedStatSt_get_hits_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "get_hits", _wrap_MemcachedStatSt_get_hits_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "get_misses=", _wrap_MemcachedStatSt_get_misses_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "get_misses", _wrap_MemcachedStatSt_get_misses_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "limit_maxbytes=", _wrap_MemcachedStatSt_limit_maxbytes_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "limit_maxbytes", _wrap_MemcachedStatSt_limit_maxbytes_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "version=", _wrap_MemcachedStatSt_version_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "version", _wrap_MemcachedStatSt_version_get, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "root=", _wrap_MemcachedStatSt_root_set, -1);
|
|
rb_define_method(SwigClassMemcachedStatSt.klass, "root", _wrap_MemcachedStatSt_root_get, -1);
|
|
SwigClassMemcachedStatSt.mark = 0;
|
|
SwigClassMemcachedStatSt.destroy = (void (*)(void *)) free_memcached_stat_st;
|
|
SwigClassMemcachedStatSt.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat_free", _wrap_memcached_stat_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat", _wrap_memcached_stat, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat_servername", _wrap_memcached_stat_servername, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat_get_value", _wrap_memcached_stat_get_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat_get_keys", _wrap_memcached_stat_get_keys, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set", _wrap_memcached_set, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_add", _wrap_memcached_add, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_replace", _wrap_memcached_replace, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_append", _wrap_memcached_append, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_prepend", _wrap_memcached_prepend, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_cas", _wrap_memcached_cas, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_set_by_key", _wrap_memcached_set_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_add_by_key", _wrap_memcached_add_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_replace_by_key", _wrap_memcached_replace_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_prepend_by_key", _wrap_memcached_prepend_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_append_by_key", _wrap_memcached_append_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_cas_by_key", _wrap_memcached_cas_by_key, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_strerror", _wrap_memcached_strerror, -1);
|
|
|
|
SwigClassMemcachedStringSt.klass = rb_define_class_under(mRlibmemcached, "MemcachedStringSt", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_string_st, (void *) &SwigClassMemcachedStringSt);
|
|
rb_define_alloc_func(SwigClassMemcachedStringSt.klass, _wrap_MemcachedStringSt_allocate);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "initialize", _wrap_new_MemcachedStringSt, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "end=", _wrap_MemcachedStringSt_end_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "end", _wrap_MemcachedStringSt_end_get, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "string=", _wrap_MemcachedStringSt_string_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "string", _wrap_MemcachedStringSt_string_get, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "current_size=", _wrap_MemcachedStringSt_current_size_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "current_size", _wrap_MemcachedStringSt_current_size_get, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "root=", _wrap_MemcachedStringSt_root_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "root", _wrap_MemcachedStringSt_root_get, -1);
|
|
rb_define_method(SwigClassMemcachedStringSt.klass, "options", _wrap_MemcachedStringSt_options_get, -1);
|
|
SwigClassMemcachedStringSt.mark = 0;
|
|
SwigClassMemcachedStringSt.destroy = (void (*)(void *)) free_memcached_string_st;
|
|
SwigClassMemcachedStringSt.trackObjects = 0;
|
|
|
|
SwigClassMemcachedStringStOptions.klass = rb_define_class_under(mRlibmemcached, "MemcachedStringStOptions", rb_cObject);
|
|
SWIG_TypeClientData(SWIGTYPE_p_memcached_string_st_options, (void *) &SwigClassMemcachedStringStOptions);
|
|
rb_define_alloc_func(SwigClassMemcachedStringStOptions.klass, _wrap_MemcachedStringStOptions_allocate);
|
|
rb_define_method(SwigClassMemcachedStringStOptions.klass, "initialize", _wrap_new_MemcachedStringStOptions, -1);
|
|
rb_define_method(SwigClassMemcachedStringStOptions.klass, "is_allocated=", _wrap_MemcachedStringStOptions_is_allocated_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringStOptions.klass, "is_allocated", _wrap_MemcachedStringStOptions_is_allocated_get, -1);
|
|
rb_define_method(SwigClassMemcachedStringStOptions.klass, "is_initialized=", _wrap_MemcachedStringStOptions_is_initialized_set, -1);
|
|
rb_define_method(SwigClassMemcachedStringStOptions.klass, "is_initialized", _wrap_MemcachedStringStOptions_is_initialized_get, -1);
|
|
SwigClassMemcachedStringStOptions.mark = 0;
|
|
SwigClassMemcachedStringStOptions.destroy = (void (*)(void *)) free_memcached_string_st_options;
|
|
SwigClassMemcachedStringStOptions.trackObjects = 0;
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_create", _wrap_memcached_string_create, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_check", _wrap_memcached_string_check, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_c_copy", _wrap_memcached_string_c_copy, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_append_character", _wrap_memcached_string_append_character, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_append", _wrap_memcached_string_append, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_reset", _wrap_memcached_string_reset, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_free", _wrap_memcached_string_free, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_length", _wrap_memcached_string_length, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_size", _wrap_memcached_string_size, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_value", _wrap_memcached_string_value, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_value_mutable", _wrap_memcached_string_value_mutable, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_string_set_length", _wrap_memcached_string_set_length, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_verbosity", _wrap_memcached_verbosity, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_version", _wrap_memcached_version, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_lib_version", _wrap_memcached_lib_version, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_get_rvalue", _wrap_memcached_get_rvalue, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_fetch_rvalue", _wrap_memcached_fetch_rvalue, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_stat_get_rvalue", _wrap_memcached_stat_get_rvalue, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_select_server_at", _wrap_memcached_select_server_at, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_select_stat_at", _wrap_memcached_select_stat_at, -1);
|
|
rb_define_module_function(mRlibmemcached, "memcached_generate_hash_rvalue", _wrap_memcached_generate_hash_rvalue, -1);
|
|
|
|
if (sasl_client_init(NULL) != SASL_OK) {
|
|
fprintf(stderr, "Failed to initialized SASL.\n");
|
|
}
|
|
|
|
}
|
|
|