/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * 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) # if (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif # 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 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 /* ----------------------------------------------------------------------------- * 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) # if (__SUNPRO_CC <= 0x560) # define SWIGTEMPLATEDISAMBIGUATOR template # else # define SWIGTEMPLATEDISAMBIGUATOR # endif # 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 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 /* ----------------------------------------------------------------------------- * swigrun.swg * * This file contains generic CAPI 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 "3" /* 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 is strictly necessary, ie, if you have problems with your compiler or so. */ #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 /* 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 swig versions, you usually write code as: if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { // success code } else { //fail code } Now you can be more explicit as: int res = SWIG_ConvertPtr(obj,vptr,ty.flags); if (SWIG_IsOK(res)) { // success code } else { // fail code } that seems to be the same, 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 requires also to SWIG_ConvertPtr to return new result values, as int SWIG_ConvertPtr(obj, ptr,...) { if () { if () { *ptr = ; return SWIG_NEWOBJ; } else { *ptr = ; 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 #ifdef __cplusplus extern "C" { #endif typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); /* Structure to store inforomation 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" == "Class", 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 (l1 - f1) - (l2 - f2); } /* Check type equivalence in a name list like ||... 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 ||... 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; } /* think of this as a c++ template<> or a scheme macro */ #define SWIG_TypeCheck_Template(comparison, ty) \ if (ty) { \ swig_cast_info *iter = ty->cast; \ while (iter) { \ if (comparison) { \ 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 /* Check the typename */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheck(const char *c, swig_type_info *ty) { SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); } /* Same as previous function, except strcmp is replaced with a pointer comparison */ SWIGRUNTIME swig_cast_info * SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { SWIG_TypeCheck_Template(iter->type == from, into); } /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIMEINLINE void * SWIG_TypeCast(swig_cast_info *ty, void *ptr) { return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); } /* 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 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 RARRAY_LEN # define RARRAY_LEN(x) RARRAY(x)->len #endif #ifndef RARRAY_PTR # define RARRAY_PTR(x) RARRAY(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 /* ----------------------------------------------------------------------------- * 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; } /* ----------------------------------------------------------------------------- * 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 /* Global Ruby hash table to store Trackings from C/C++ structs to Ruby Objects. */ static VALUE swig_ruby_trackings; /* Global variable that stores a reference to the ruby hash table delete function. */ static ID swig_ruby_hash_delete = 0; /* 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. Also make sure to tell the garabage collector about the hash table. */ swig_ruby_trackings = rb_hash_new(); rb_gc_register_address(&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 */ unsigned long value = (unsigned long) ptr; return LONG2NUM(value); } /* 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 */ unsigned long value = (unsigned long) object; return LONG2NUM(value); } /* 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.*/ /* First convert the Ruby number to a C number */ unsigned long value = NUM2LONG(reference); return (VALUE) value; } /* 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; } #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) /* ----------------------------------------------------------------------------- * pointers/data manipulation * ----------------------------------------------------------------------------- */ #ifdef __cplusplus extern "C" { #if 0 } /* cc-mode */ #endif #endif typedef struct { VALUE klass; VALUE mImpl; void (*mark)(void *); void (*destroy)(void *); int trackObjects; } swig_class; static VALUE _mSWIG = Qnil; static VALUE _cSWIG_Pointer = Qnil; static VALUE swig_runtime_data_type_pointer = Qnil; 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"); } } /* 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; 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? */ if (sklass->trackObjects) { 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) : 0), ptr); /* If tracking is on for this class then track this object. */ if (sklass->trackObjects) { 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; } *ptr = SWIG_TypeCast(tc, vptr); } 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); } #ifdef __cplusplus #if 0 { /* cc-mode */ #endif } #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_LIST swig_types[0] #define SWIGTYPE_p_MEM_ROOT swig_types[1] #define SWIGTYPE_p_NET swig_types[2] #define SWIGTYPE_p_char swig_types[3] #define SWIGTYPE_p_character_set swig_types[4] #define SWIGTYPE_p_charset_info_st swig_types[5] #define SWIGTYPE_p_embedded_query_result swig_types[6] #define SWIGTYPE_p_f_p_MYSQL__p_st_mysql_field swig_types[7] #define SWIGTYPE_p_f_p_MYSQL__p_st_mysql_res swig_types[8] #define SWIGTYPE_p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data swig_types[9] #define SWIGTYPE_p_f_p_NET_p_struct_st_mysql_bind__void swig_types[10] #define SWIGTYPE_p_f_p_p_void_p_q_const__char_p_void__int swig_types[11] #define SWIGTYPE_p_f_p_struct_st_mysql__char swig_types[12] #define SWIGTYPE_p_f_p_struct_st_mysql__p_char swig_types[13] #define SWIGTYPE_p_f_p_struct_st_mysql__void swig_types[14] #define SWIGTYPE_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void swig_types[15] #define SWIGTYPE_p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char swig_types[16] #define SWIGTYPE_p_f_p_struct_st_mysql_p_char_p_q_const__char__int swig_types[17] #define SWIGTYPE_p_f_p_struct_st_mysql_p_p_char__int swig_types[18] #define SWIGTYPE_p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char swig_types[19] #define SWIGTYPE_p_f_p_struct_st_mysql_stmt__int swig_types[20] #define SWIGTYPE_p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int swig_types[21] #define SWIGTYPE_p_f_p_unsigned_long_p_p_char_unsigned_int__void swig_types[22] #define SWIGTYPE_p_f_p_void__void swig_types[23] #define SWIGTYPE_p_f_p_void_p_char_p_unsigned_long__p_char swig_types[24] #define SWIGTYPE_p_f_p_void_p_char_unsigned_int__int swig_types[25] #define SWIGTYPE_p_int swig_types[26] #define SWIGTYPE_p_p_char swig_types[27] #define SWIGTYPE_p_st_mysql swig_types[28] #define SWIGTYPE_p_st_mysql_bind swig_types[29] #define SWIGTYPE_p_st_mysql_data swig_types[30] #define SWIGTYPE_p_st_mysql_field swig_types[31] #define SWIGTYPE_p_st_mysql_manager swig_types[32] #define SWIGTYPE_p_st_mysql_methods swig_types[33] #define SWIGTYPE_p_st_mysql_options swig_types[34] #define SWIGTYPE_p_st_mysql_parameters swig_types[35] #define SWIGTYPE_p_st_mysql_res swig_types[36] #define SWIGTYPE_p_st_mysql_rows swig_types[37] #define SWIGTYPE_p_st_mysql_stmt swig_types[38] #define SWIGTYPE_p_unsigned_char swig_types[39] #define SWIGTYPE_p_unsigned_int swig_types[40] #define SWIGTYPE_p_unsigned_long swig_types[41] #define SWIGTYPE_p_unsigned_long_long swig_types[42] #define SWIGTYPE_p_void swig_types[43] static swig_type_info *swig_types[45]; static swig_module_info swig_module = {swig_types, 44, 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_mysql_c #define SWIG_name "Mysql_c" static VALUE mMysql_c; #define SWIGVERSION 0x010331 #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 #include #include VALUE mysql_c_fetch_field_names(MYSQL_RES *reader, int count) { VALUE arr = rb_ary_new(); int i; for(i = 0; i < count; i++) { rb_ary_push(arr, rb_str_new2(mysql_fetch_field_direct(reader, i)->name)); } return arr; } VALUE mysql_c_fetch_field_types(MYSQL_RES *reader, int count) { VALUE arr = rb_ary_new(); int i; for(i = 0; i < count; i++) { rb_ary_push(arr, INT2NUM(mysql_fetch_field_direct(reader, i)->type)); } return arr; } VALUE mysql_c_fetch_row(MYSQL_RES *reader) { VALUE arr = rb_ary_new(); MYSQL_ROW result = (MYSQL_ROW)mysql_fetch_row(reader); if(!result) return Qnil; int i; for(i = 0; i < reader->field_count; i++) { if(result[i] == NULL) rb_ary_push(arr, Qnil); else rb_ary_push(arr, rb_str_new2(result[i])); } return arr; } #include #ifndef LLONG_MIN # define LLONG_MIN LONG_LONG_MIN #endif #ifndef LLONG_MAX # define LLONG_MAX LONG_LONG_MAX #endif #ifndef ULLONG_MAX # define ULLONG_MAX ULONG_LONG_MAX #endif #define SWIG_From_long LONG2NUM SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_long (unsigned long value) { return ULONG2NUM(value); } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_int (unsigned int value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN VALUE SWIG_ruby_failed(void) { return Qnil; } /*@SWIG:%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; } 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 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 int SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc) { if (TYPE(obj) == T_STRING) { char *cstr = STR2CSTR(obj); 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; } SWIGINTERNINLINE VALUE SWIG_From_int (int value) { return SWIG_From_long (value); } /*@SWIG:%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:%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_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); } 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; } 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; } SWIGINTERNINLINE VALUE SWIG_From_char (char c) { return SWIG_FromCharPtrAndSize(&c,1); } SWIGINTERN int SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val) { unsigned long v; int res = SWIG_AsVal_unsigned_SS_long (obj, &v); if (SWIG_IsOK(res)) { if ((v > UCHAR_MAX)) { return SWIG_OverflowError; } else { if (val) *val = (unsigned char)(v); } } return res; } SWIGINTERNINLINE VALUE SWIG_From_unsigned_SS_char (unsigned char value) { return SWIG_From_unsigned_SS_long (value); } SWIGINTERN VALUE mysql_port_get(VALUE self) { VALUE _val; _val = SWIG_From_unsigned_SS_int((unsigned int)(mysql_port)); return _val; } SWIGINTERN VALUE mysql_port_set(VALUE self, VALUE _val) { { unsigned int val; int res = SWIG_AsVal_unsigned_SS_int(_val, &val); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in variable '""mysql_port""' of type '""unsigned int""'"); } mysql_port = (unsigned int)(val); } return _val; fail: return Qnil; } SWIGINTERN VALUE mysql_unix_port_get(VALUE self) { VALUE _val; _val = SWIG_FromCharPtr(mysql_unix_port); return _val; } SWIGINTERN VALUE mysql_unix_port_set(VALUE self, VALUE _val) { { char *cptr = 0; size_t csize = 0; int alloc = SWIG_NEWOBJ; int res = SWIG_AsCharPtrAndSize(_val, &cptr, &csize, &alloc); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in variable '""mysql_unix_port""' of type '""char *""'"); } if (mysql_unix_port) free((char*)mysql_unix_port); if (alloc == SWIG_NEWOBJ) { mysql_unix_port = cptr; } else { mysql_unix_port = csize ? (char *)(char *)memcpy((char *)malloc((csize)*sizeof(char)), cptr, sizeof(char)*(csize)) : 0; } } return _val; fail: return Qnil; } swig_class cMYSQL_FIELD; SWIGINTERN VALUE _wrap_MYSQL_FIELD_name_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "name" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->name) free((char*)arg1->name); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->name = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_name_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->name); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_name_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_name" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "org_name" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->org_name) free((char*)arg1->org_name); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->org_name = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->org_name = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_name_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_name" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->org_name); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_table_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "table" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "table" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->table) free((char*)arg1->table); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->table = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->table = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_table_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "table" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->table); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_table_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_table" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "org_table" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->org_table) free((char*)arg1->org_table); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->org_table = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->org_table = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_table_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_table" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->org_table); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_db_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "db" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->db) free((char*)arg1->db); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->db = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->db = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_db_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->db); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_catalog_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "catalog" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "catalog" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->catalog) free((char*)arg1->catalog); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->catalog = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->catalog = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_catalog_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "catalog" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->catalog); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_def_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "def" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "def" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->def) free((char*)arg1->def); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->def = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->def = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_def_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "def" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (char *) ((arg1)->def); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned long 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "length" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned long) ((arg1)->length); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_max_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned long 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "max_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "max_length" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->max_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_max_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "max_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned long) ((arg1)->max_length); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_name_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "name_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->name_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_name_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->name_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_name_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_name_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "org_name_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->org_name_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_name_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_name_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->org_name_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_table_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "table_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "table_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->table_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_table_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "table_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->table_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_table_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_table_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "org_table_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->org_table_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_org_table_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "org_table_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->org_table_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_db_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "db_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->db_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_db_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->db_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_catalog_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "catalog_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "catalog_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->catalog_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_catalog_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "catalog_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->catalog_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_def_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "def_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "def_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->def_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_def_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "def_length" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->def_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_flags_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->flags = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_flags_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->flags); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_decimals_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decimals" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "decimals" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->decimals = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_decimals_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "decimals" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->decimals); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_charsetnr_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charsetnr" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "charsetnr" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->charsetnr = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_charsetnr_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charsetnr" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (unsigned int) ((arg1)->charsetnr); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_type_set(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; enum enum_field_types 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "type" "', argument " "2"" of type '" "enum enum_field_types""'"); } arg2 = (enum enum_field_types)(val2); if (arg1) (arg1)->type = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_FIELD_type_get(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *arg1 = (MYSQL_FIELD *) 0 ; enum enum_field_types result; void *argp1 = 0 ; int res1 = 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_st_mysql_field, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "type" "', argument " "1"" of type '" "MYSQL_FIELD *""'"); } arg1 = (MYSQL_FIELD *)(argp1); result = (enum enum_field_types) ((arg1)->type); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_FIELD_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_FIELD_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_field); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_FIELD(int argc, VALUE *argv, VALUE self) { MYSQL_FIELD *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_FIELD *)(MYSQL_FIELD *) calloc(1, sizeof(MYSQL_FIELD));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_FIELD(MYSQL_FIELD *arg1) { free((char *) arg1); } swig_class cMYSQL_ROWS; SWIGINTERN VALUE _wrap_MYSQL_ROWS_next_set(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; struct st_mysql_rows *arg2 = (struct st_mysql_rows *) 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_rows, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "next" "', argument " "2"" of type '" "struct st_mysql_rows *""'"); } arg2 = (struct st_mysql_rows *)(argp2); if (arg1) (arg1)->next = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_ROWS_next_get(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; struct st_mysql_rows *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); result = (struct st_mysql_rows *) ((arg1)->next); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_ROWS_data_set(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; MYSQL_ROW arg2 = (MYSQL_ROW) 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "data" "', argument " "2"" of type '" "MYSQL_ROW""'"); } arg2 = (MYSQL_ROW)(argp2); if (arg1) (arg1)->data = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_ROWS_data_get(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; MYSQL_ROW result; void *argp1 = 0 ; int res1 = 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); result = (MYSQL_ROW) ((arg1)->data); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_ROWS_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; unsigned long 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "length" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_ROWS_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *arg1 = (MYSQL_ROWS *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_ROWS *""'"); } arg1 = (MYSQL_ROWS *)(argp1); result = (unsigned long) ((arg1)->length); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_ROWS_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_ROWS_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_rows); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_ROWS(int argc, VALUE *argv, VALUE self) { MYSQL_ROWS *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_ROWS *)(MYSQL_ROWS *) calloc(1, sizeof(MYSQL_ROWS));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_ROWS(MYSQL_ROWS *arg1) { free((char *) arg1); } swig_class cMYSQL_DATA; SWIGINTERN VALUE _wrap_MYSQL_DATA_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rows" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rows" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rows" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); result = (my_ulonglong) ((arg1)->rows); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_fields_set(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; unsigned int 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "fields" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->fields = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_fields_get(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); result = (unsigned int) ((arg1)->fields); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_data_set(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; MYSQL_ROWS *arg2 = (MYSQL_ROWS *) 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_rows, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "data" "', argument " "2"" of type '" "MYSQL_ROWS *""'"); } arg2 = (MYSQL_ROWS *)(argp2); if (arg1) (arg1)->data = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_data_get(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; MYSQL_ROWS *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); result = (MYSQL_ROWS *) ((arg1)->data); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_alloc_set(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; MEM_ROOT 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_MEM_ROOT, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } else { arg2 = *((MEM_ROOT *)(argp2)); } } if (arg1) (arg1)->alloc = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_alloc_get(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; MEM_ROOT result; void *argp1 = 0 ; int res1 = 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "alloc" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); result = ((arg1)->alloc); vresult = SWIG_NewPointerObj((MEM_ROOT *)memcpy((MEM_ROOT *)malloc(sizeof(MEM_ROOT)),&result,sizeof(MEM_ROOT)), SWIGTYPE_p_MEM_ROOT, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_embedded_info_set(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; struct embedded_query_result *arg2 = (struct embedded_query_result *) 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "embedded_info" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_embedded_query_result, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "embedded_info" "', argument " "2"" of type '" "struct embedded_query_result *""'"); } arg2 = (struct embedded_query_result *)(argp2); if (arg1) (arg1)->embedded_info = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_DATA_embedded_info_get(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *arg1 = (MYSQL_DATA *) 0 ; struct embedded_query_result *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "embedded_info" "', argument " "1"" of type '" "MYSQL_DATA *""'"); } arg1 = (MYSQL_DATA *)(argp1); result = (struct embedded_query_result *) ((arg1)->embedded_info); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_embedded_query_result, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_DATA_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_DATA_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_data); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_DATA(int argc, VALUE *argv, VALUE self) { MYSQL_DATA *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_DATA *)(MYSQL_DATA *) calloc(1, sizeof(MYSQL_DATA));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_DATA(MYSQL_DATA *arg1) { free((char *) arg1); } swig_class cMY_CHARSET_INFO; SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_number_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "number" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->number = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_number_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "number" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (unsigned int) ((arg1)->number); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_state_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "state" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->state = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_state_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (unsigned int) ((arg1)->state); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_csname_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "csname" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "csname" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (arg2) { size_t size = strlen((const char *)((const char *)(arg2))) + 1; arg1->csname = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); } else { arg1->csname = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_csname_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "csname" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (char *) ((arg1)->csname); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_name_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "name" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (arg2) { size_t size = strlen((const char *)((const char *)(arg2))) + 1; arg1->name = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); } else { arg1->name = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_name_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "name" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (char *) ((arg1)->name); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_comment_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "comment" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "comment" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (arg2) { size_t size = strlen((const char *)((const char *)(arg2))) + 1; arg1->comment = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); } else { arg1->comment = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_comment_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "comment" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (char *) ((arg1)->comment); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_dir_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dir" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "dir" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); if (arg2) { size_t size = strlen((const char *)((const char *)(arg2))) + 1; arg1->dir = (char const *)(char *)memcpy((char *)malloc((size)*sizeof(char)), arg2, sizeof(char)*(size)); } else { arg1->dir = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_dir_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "dir" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (char *) ((arg1)->dir); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_mbminlen_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mbminlen" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mbminlen" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->mbminlen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_mbminlen_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mbminlen" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (unsigned int) ((arg1)->mbminlen); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_mbmaxlen_set(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mbmaxlen" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mbmaxlen" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->mbmaxlen = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_mbmaxlen_get(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *arg1 = (MY_CHARSET_INFO *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_character_set, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mbmaxlen" "', argument " "1"" of type '" "MY_CHARSET_INFO *""'"); } arg1 = (MY_CHARSET_INFO *)(argp1); result = (unsigned int) ((arg1)->mbmaxlen); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MY_CHARSET_INFO_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_character_set); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MY_CHARSET_INFO(int argc, VALUE *argv, VALUE self) { MY_CHARSET_INFO *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MY_CHARSET_INFO *)(MY_CHARSET_INFO *) calloc(1, sizeof(MY_CHARSET_INFO));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MY_CHARSET_INFO(MY_CHARSET_INFO *arg1) { free((char *) arg1); } swig_class cMYSQL; SWIGINTERN VALUE _wrap_MYSQL_net_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; NET 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_NET, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "net" "', argument " "2"" of type '" "NET""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "net" "', argument " "2"" of type '" "NET""'"); } else { arg2 = *((NET *)(argp2)); } } if (arg1) (arg1)->net = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_net_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; NET result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = ((arg1)->net); vresult = SWIG_NewPointerObj((NET *)memcpy((NET *)malloc(sizeof(NET)),&result,sizeof(NET)), SWIGTYPE_p_NET, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_connector_fd_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; gptr arg2 = (gptr) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connector_fd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "connector_fd" "', argument " "2"" of type '" "gptr""'"); } arg2 = (gptr)(buf2); if (arg1->connector_fd) free((char*)arg1->connector_fd); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->connector_fd = (gptr)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->connector_fd = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_connector_fd_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; gptr result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "connector_fd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (gptr) ((arg1)->connector_fd); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_host_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "host" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->host) free((char*)arg1->host); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->host = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->host = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_host_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->host); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_user_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->user) free((char*)arg1->user); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->user = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->user = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_user_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->user); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_passwd_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "passwd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "passwd" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->passwd) free((char*)arg1->passwd); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->passwd = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->passwd = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_passwd_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "passwd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->passwd); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_unix_socket_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unix_socket" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "unix_socket" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->unix_socket) free((char*)arg1->unix_socket); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->unix_socket = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->unix_socket = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_unix_socket_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unix_socket" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->unix_socket); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_version_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_version" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "server_version" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->server_version) free((char*)arg1->server_version); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->server_version = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->server_version = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_version_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_version" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->server_version); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_host_info_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "host_info" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->host_info) free((char*)arg1->host_info); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->host_info = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->host_info = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_host_info_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->host_info); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_info_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "info" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->info) free((char*)arg1->info); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->info = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->info = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_info_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->info); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_db_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "db" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->db) free((char*)arg1->db); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->db = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->db = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_db_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "db" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *) ((arg1)->db); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_charset_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct charset_info_st *arg2 = (struct charset_info_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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charset" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_charset_info_st, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "charset" "', argument " "2"" of type '" "struct charset_info_st *""'"); } arg2 = (struct charset_info_st *)(argp2); if (arg1) (arg1)->charset = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_charset_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct charset_info_st *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "charset" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct charset_info_st *) ((arg1)->charset); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_charset_info_st, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_fields_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_FIELD *arg2 = (MYSQL_FIELD *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_field, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fields" "', argument " "2"" of type '" "MYSQL_FIELD *""'"); } arg2 = (MYSQL_FIELD *)(argp2); if (arg1) (arg1)->fields = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_fields_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL_FIELD *) ((arg1)->fields); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_field_alloc_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MEM_ROOT 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_alloc" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_MEM_ROOT, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "field_alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "field_alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } else { arg2 = *((MEM_ROOT *)(argp2)); } } if (arg1) (arg1)->field_alloc = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_field_alloc_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MEM_ROOT result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_alloc" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = ((arg1)->field_alloc); vresult = SWIG_NewPointerObj((MEM_ROOT *)memcpy((MEM_ROOT *)malloc(sizeof(MEM_ROOT)),&result,sizeof(MEM_ROOT)), SWIGTYPE_p_MEM_ROOT, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_affected_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "affected_rows" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "affected_rows" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->affected_rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_affected_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "affected_rows" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_ulonglong) ((arg1)->affected_rows); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_insert_id_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "insert_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "insert_id" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->insert_id = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_insert_id_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "insert_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_ulonglong) ((arg1)->insert_id); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_extra_info_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "extra_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "extra_info" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->extra_info = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_extra_info_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "extra_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_ulonglong) ((arg1)->extra_info); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_thread_id_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "thread_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "thread_id" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->thread_id = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_thread_id_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "thread_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long) ((arg1)->thread_id); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_packet_length_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "packet_length" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "packet_length" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->packet_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_packet_length_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "packet_length" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long) ((arg1)->packet_length); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_port_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "port" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->port = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_port_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->port); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_client_flag_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "client_flag" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "client_flag" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->client_flag = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_client_flag_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "client_flag" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long) ((arg1)->client_flag); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_capabilities_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_capabilities" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "server_capabilities" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->server_capabilities = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_capabilities_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_capabilities" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long) ((arg1)->server_capabilities); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_protocol_version_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protocol_version" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "protocol_version" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->protocol_version = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_protocol_version_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "protocol_version" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->protocol_version); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_field_count_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "field_count" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->field_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_field_count_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->field_count); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_status_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_status" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "server_status" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->server_status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_status_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_status" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->server_status); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_language_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_language" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "server_language" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->server_language = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_server_language_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_language" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->server_language); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_warning_count_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "warning_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "warning_count" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->warning_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_warning_count_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "warning_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int) ((arg1)->warning_count); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_options_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql_options *arg2 = (struct st_mysql_options *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "options" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_options, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "options" "', argument " "2"" of type '" "struct st_mysql_options *""'"); } arg2 = (struct st_mysql_options *)(argp2); if (arg1) (arg1)->options = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_options_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql_options *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "options" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql_options *)& ((arg1)->options); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_options, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_status_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; enum mysql_status 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "status" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "status" "', argument " "2"" of type '" "enum mysql_status""'"); } arg2 = (enum mysql_status)(val2); if (arg1) (arg1)->status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_status_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; enum mysql_status result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "status" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (enum mysql_status) ((arg1)->status); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_free_me_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_me" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "free_me" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->free_me = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_free_me_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_me" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool) ((arg1)->free_me); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_reconnect_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "reconnect" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "reconnect" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->reconnect = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_reconnect_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "reconnect" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool) ((arg1)->reconnect); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_scramble_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[SCRAMBLE_LENGTH+1] ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scramble" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, SCRAMBLE_LENGTH+1); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "scramble" "', argument " "2"" of type '" "char [SCRAMBLE_LENGTH+1]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->scramble,arg2,SCRAMBLE_LENGTH+1*sizeof(char)); else memset(arg1->scramble,0,SCRAMBLE_LENGTH+1*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_scramble_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "scramble" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)(char *) ((arg1)->scramble); { size_t size = SCRAMBLE_LENGTH+1; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_rpl_pivot_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rpl_pivot" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "rpl_pivot" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->rpl_pivot = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_rpl_pivot_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "rpl_pivot" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool) ((arg1)->rpl_pivot); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_master_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *arg2 = (struct st_mysql *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "master" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "master" "', argument " "2"" of type '" "struct st_mysql *""'"); } arg2 = (struct st_mysql *)(argp2); if (arg1) (arg1)->master = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_master_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "master" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql *) ((arg1)->master); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_next_slave_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *arg2 = (struct st_mysql *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_slave" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "next_slave" "', argument " "2"" of type '" "struct st_mysql *""'"); } arg2 = (struct st_mysql *)(argp2); if (arg1) (arg1)->next_slave = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_next_slave_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_slave" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql *) ((arg1)->next_slave); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_last_used_slave_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *arg2 = (struct st_mysql *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_used_slave" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "last_used_slave" "', argument " "2"" of type '" "struct st_mysql *""'"); } arg2 = (struct st_mysql *)(argp2); if (arg1) (arg1)->last_used_slave = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_last_used_slave_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_used_slave" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql *) ((arg1)->last_used_slave); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_last_used_con_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *arg2 = (struct st_mysql *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_used_con" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "last_used_con" "', argument " "2"" of type '" "struct st_mysql *""'"); } arg2 = (struct st_mysql *)(argp2); if (arg1) (arg1)->last_used_con = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_last_used_con_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_used_con" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql *) ((arg1)->last_used_con); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_stmts_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; LIST *arg2 = (LIST *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmts" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_LIST, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "stmts" "', argument " "2"" of type '" "LIST *""'"); } arg2 = (LIST *)(argp2); if (arg1) (arg1)->stmts = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_stmts_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; LIST *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmts" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (LIST *) ((arg1)->stmts); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_LIST, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_methods_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql_methods *arg2 = (struct st_mysql_methods *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "methods" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_methods, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "methods" "', argument " "2"" of type '" "struct st_mysql_methods const *""'"); } arg2 = (struct st_mysql_methods *)(argp2); if (arg1) (arg1)->methods = (struct st_mysql_methods const *)arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_methods_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; struct st_mysql_methods *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "methods" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (struct st_mysql_methods *) ((arg1)->methods); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_methods, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_thd_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "thd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "thd" "', argument " "2"" of type '" "void *""'"); } if (arg1) (arg1)->thd = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_thd_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "thd" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (void *) ((arg1)->thd); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_unbuffered_fetch_owner_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool *arg2 = (my_bool *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_owner" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "unbuffered_fetch_owner" "', argument " "2"" of type '" "my_bool *""'"); } arg2 = (my_bool *)(buf2); if (arg1->unbuffered_fetch_owner) free((char*)arg1->unbuffered_fetch_owner); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->unbuffered_fetch_owner = (my_bool *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->unbuffered_fetch_owner = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_unbuffered_fetch_owner_get(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_owner" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool *) ((arg1)->unbuffered_fetch_owner); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL(int argc, VALUE *argv, VALUE self) { MYSQL *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL *)(MYSQL *) calloc(1, sizeof(MYSQL));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL(MYSQL *arg1) { free((char *) arg1); } swig_class cMYSQL_RES; SWIGINTERN VALUE _wrap_MYSQL_RES_row_count_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row_count" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "row_count" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->row_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_row_count_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row_count" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (my_ulonglong) ((arg1)->row_count); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_fields_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD *arg2 = (MYSQL_FIELD *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_field, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fields" "', argument " "2"" of type '" "MYSQL_FIELD *""'"); } arg2 = (MYSQL_FIELD *)(argp2); if (arg1) (arg1)->fields = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_fields_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_FIELD *) ((arg1)->fields); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_data_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_DATA *arg2 = (MYSQL_DATA *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_data, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "data" "', argument " "2"" of type '" "MYSQL_DATA *""'"); } arg2 = (MYSQL_DATA *)(argp2); if (arg1) (arg1)->data = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_data_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_DATA *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_DATA *) ((arg1)->data); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_data, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_data_cursor_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROWS *arg2 = (MYSQL_ROWS *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data_cursor" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_rows, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "data_cursor" "', argument " "2"" of type '" "MYSQL_ROWS *""'"); } arg2 = (MYSQL_ROWS *)(argp2); if (arg1) (arg1)->data_cursor = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_data_cursor_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROWS *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data_cursor" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_ROWS *) ((arg1)->data_cursor); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_lengths_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned long *arg2 = (unsigned long *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lengths" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "lengths" "', argument " "2"" of type '" "unsigned long *""'"); } arg2 = (unsigned long *)(argp2); if (arg1) (arg1)->lengths = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_lengths_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned long *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "lengths" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (unsigned long *) ((arg1)->lengths); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_handle_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL *arg2 = (MYSQL *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "handle" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "handle" "', argument " "2"" of type '" "MYSQL *""'"); } arg2 = (MYSQL *)(argp2); if (arg1) (arg1)->handle = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_handle_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "handle" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL *) ((arg1)->handle); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_field_alloc_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MEM_ROOT 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_alloc" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_MEM_ROOT, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "field_alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "field_alloc" "', argument " "2"" of type '" "MEM_ROOT""'"); } else { arg2 = *((MEM_ROOT *)(argp2)); } } if (arg1) (arg1)->field_alloc = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_field_alloc_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MEM_ROOT result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_alloc" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = ((arg1)->field_alloc); vresult = SWIG_NewPointerObj((MEM_ROOT *)memcpy((MEM_ROOT *)malloc(sizeof(MEM_ROOT)),&result,sizeof(MEM_ROOT)), SWIGTYPE_p_MEM_ROOT, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_field_count_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "field_count" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->field_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_field_count_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (unsigned int) ((arg1)->field_count); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_current_field_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "current_field" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "current_field" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->current_field = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_current_field_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "current_field" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (unsigned int) ((arg1)->current_field); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_row_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW arg2 = (MYSQL_ROW) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "row" "', argument " "2"" of type '" "MYSQL_ROW""'"); } arg2 = (MYSQL_ROW)(argp2); if (arg1) (arg1)->row = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_row_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_ROW) ((arg1)->row); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_current_row_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW arg2 = (MYSQL_ROW) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "current_row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "current_row" "', argument " "2"" of type '" "MYSQL_ROW""'"); } arg2 = (MYSQL_ROW)(argp2); if (arg1) (arg1)->current_row = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_current_row_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "current_row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_ROW) ((arg1)->current_row); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_eof_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eof" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "eof" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->eof = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_eof_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eof" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (my_bool) ((arg1)->eof); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_unbuffered_fetch_cancelled_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_cancelled" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "unbuffered_fetch_cancelled" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->unbuffered_fetch_cancelled = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_unbuffered_fetch_cancelled_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_cancelled" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (my_bool) ((arg1)->unbuffered_fetch_cancelled); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_methods_set(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; struct st_mysql_methods *arg2 = (struct st_mysql_methods *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "methods" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_methods, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "methods" "', argument " "2"" of type '" "struct st_mysql_methods const *""'"); } arg2 = (struct st_mysql_methods *)(argp2); if (arg1) (arg1)->methods = (struct st_mysql_methods const *)arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_RES_methods_get(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; struct st_mysql_methods *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "methods" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (struct st_mysql_methods *) ((arg1)->methods); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_methods, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_RES_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_RES_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_res); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_RES(int argc, VALUE *argv, VALUE self) { MYSQL_RES *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_RES *)(MYSQL_RES *) calloc(1, sizeof(MYSQL_RES));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_RES(MYSQL_RES *arg1) { free((char *) arg1); } swig_class cMYSQL_MANAGER; SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; NET 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_NET, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "net" "', argument " "2"" of type '" "NET""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "net" "', argument " "2"" of type '" "NET""'"); } else { arg2 = *((NET *)(argp2)); } } if (arg1) (arg1)->net = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; NET result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = ((arg1)->net); vresult = SWIG_NewPointerObj((NET *)memcpy((NET *)malloc(sizeof(NET)),&result,sizeof(NET)), SWIGTYPE_p_NET, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_host_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "host" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->host) free((char*)arg1->host); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->host = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->host = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_host_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "host" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->host); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_user_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "user" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->user) free((char*)arg1->user); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->user = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->user = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_user_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "user" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->user); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_passwd_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "passwd" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "passwd" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->passwd) free((char*)arg1->passwd); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->passwd = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->passwd = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_passwd_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "passwd" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->passwd); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_port_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; unsigned int 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "port" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->port = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_port_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "port" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (unsigned int) ((arg1)->port); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_free_me_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_me" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "free_me" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->free_me = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_free_me_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_me" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (my_bool) ((arg1)->free_me); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_eof_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eof" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "eof" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->eof = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_eof_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "eof" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (my_bool) ((arg1)->eof); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_cmd_status_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_status" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cmd_status" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->cmd_status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_cmd_status_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cmd_status" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (int) ((arg1)->cmd_status); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_last_errno_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_errno" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "last_errno" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->last_errno = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_last_errno_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_errno" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (int) ((arg1)->last_errno); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "net_buf" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->net_buf) free((char*)arg1->net_buf); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->net_buf = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->net_buf = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->net_buf); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_pos_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf_pos" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "net_buf_pos" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->net_buf_pos) free((char*)arg1->net_buf_pos); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->net_buf_pos = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->net_buf_pos = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_pos_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf_pos" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->net_buf_pos); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_data_end_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_data_end" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "net_data_end" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); if (arg1->net_data_end) free((char*)arg1->net_data_end); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->net_data_end = (char *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->net_data_end = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_data_end_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_data_end" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *) ((arg1)->net_data_end); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_size_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf_size" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "net_buf_size" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); if (arg1) (arg1)->net_buf_size = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_net_buf_size_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "net_buf_size" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (int) ((arg1)->net_buf_size); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_last_error_set(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[256] ; 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_error" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, 256); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "last_error" "', argument " "2"" of type '" "char [256]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->last_error,arg2,256*sizeof(char)); else memset(arg1->last_error,0,256*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_MANAGER_last_error_get(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_error" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (char *)(char *) ((arg1)->last_error); { size_t size = 256; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_MANAGER_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_MANAGER_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_manager); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_MANAGER(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_MANAGER *)(MYSQL_MANAGER *) calloc(1, sizeof(MYSQL_MANAGER));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_MANAGER(MYSQL_MANAGER *arg1) { free((char *) arg1); } swig_class cMYSQL_PARAMETERS; SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_p_max_allowed_packet_set(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *arg1 = (MYSQL_PARAMETERS *) 0 ; unsigned long *arg2 = (unsigned long *) 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_st_mysql_parameters, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "p_max_allowed_packet" "', argument " "1"" of type '" "MYSQL_PARAMETERS *""'"); } arg1 = (MYSQL_PARAMETERS *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "p_max_allowed_packet" "', argument " "2"" of type '" "unsigned long *""'"); } arg2 = (unsigned long *)(argp2); if (arg1) (arg1)->p_max_allowed_packet = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_p_max_allowed_packet_get(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *arg1 = (MYSQL_PARAMETERS *) 0 ; unsigned long *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_parameters, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "p_max_allowed_packet" "', argument " "1"" of type '" "MYSQL_PARAMETERS *""'"); } arg1 = (MYSQL_PARAMETERS *)(argp1); result = (unsigned long *) ((arg1)->p_max_allowed_packet); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_p_net_buffer_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *arg1 = (MYSQL_PARAMETERS *) 0 ; unsigned long *arg2 = (unsigned long *) 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_st_mysql_parameters, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "p_net_buffer_length" "', argument " "1"" of type '" "MYSQL_PARAMETERS *""'"); } arg1 = (MYSQL_PARAMETERS *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "p_net_buffer_length" "', argument " "2"" of type '" "unsigned long *""'"); } arg2 = (unsigned long *)(argp2); if (arg1) (arg1)->p_net_buffer_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_p_net_buffer_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *arg1 = (MYSQL_PARAMETERS *) 0 ; unsigned long *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_parameters, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "p_net_buffer_length" "', argument " "1"" of type '" "MYSQL_PARAMETERS *""'"); } arg1 = (MYSQL_PARAMETERS *)(argp1); result = (unsigned long *) ((arg1)->p_net_buffer_length); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 ); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_PARAMETERS_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_parameters); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_PARAMETERS(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_PARAMETERS *)(MYSQL_PARAMETERS *) calloc(1, sizeof(MYSQL_PARAMETERS));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_PARAMETERS(MYSQL_PARAMETERS *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_mysql_server_init(int argc, VALUE *argv, VALUE self) { int arg1 ; char **arg2 = (char **) 0 ; char **arg3 = (char **) 0 ; int result; int val1 ; int ecode1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } ecode1 = SWIG_AsVal_int(argv[0], &val1); if (!SWIG_IsOK(ecode1)) { SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "mysql_server_init" "', argument " "1"" of type '" "int""'"); } arg1 = (int)(val1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_server_init" "', argument " "2"" of type '" "char **""'"); } arg2 = (char **)(argp2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_p_char, 0 | 0 ); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_server_init" "', argument " "3"" of type '" "char **""'"); } arg3 = (char **)(argp3); result = (int)mysql_server_init(arg1,arg2,arg3); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_server_end(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } mysql_server_end(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_parameters(int argc, VALUE *argv, VALUE self) { MYSQL_PARAMETERS *result = 0 ; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_PARAMETERS *)mysql_get_parameters(); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_parameters, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_thread_init(int argc, VALUE *argv, VALUE self) { my_bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (my_bool)mysql_thread_init(); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_thread_end(int argc, VALUE *argv, VALUE self) { if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } mysql_thread_end(); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_num_rows(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_num_rows" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (my_ulonglong)mysql_num_rows(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_num_fields(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_num_fields" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (unsigned int)mysql_num_fields(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_eof(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_eof" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (my_bool)mysql_eof(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_fetch_field_direct(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned int arg2 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_fetch_field_direct" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_fetch_field_direct" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); result = (MYSQL_FIELD *)mysql_fetch_field_direct(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_fetch_fields(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_fetch_fields" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_FIELD *)mysql_fetch_fields(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_row_tell(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW_OFFSET result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_row_tell" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_ROW_OFFSET)mysql_row_tell(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_field_tell(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD_OFFSET result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_field_tell" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_FIELD_OFFSET)mysql_field_tell(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_field_count(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_field_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int)mysql_field_count(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_affected_rows(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_affected_rows" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_ulonglong)mysql_affected_rows(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_insert_id(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_insert_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_ulonglong)mysql_insert_id(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_errno(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_errno" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int)mysql_errno(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_error(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_error" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_error(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_sqlstate(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_sqlstate" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_sqlstate(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_warning_count(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_warning_count" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int)mysql_warning_count(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_info(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_thread_id(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_thread_id" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long)mysql_thread_id(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_character_set_name(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_character_set_name" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_character_set_name(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_set_character_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_set_character_set" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_set_character_set" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)mysql_set_character_set(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_mysql_init(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_init" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL *)mysql_init(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_ssl_set(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; char *arg6 = (char *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; int res6 ; char *buf6 = 0 ; int alloc6 = 0 ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_ssl_set" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_ssl_set" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_ssl_set" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_ssl_set" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mysql_ssl_set" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mysql_ssl_set" "', argument " "6"" of type '" "char const *""'"); } arg6 = (char *)(buf6); result = (my_bool)mysql_ssl_set(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); if (alloc6 == SWIG_NEWOBJ) free((char*)buf6); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); if (alloc6 == SWIG_NEWOBJ) free((char*)buf6); return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_ssl_cipher(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_ssl_cipher" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_get_ssl_cipher(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_change_user(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_change_user" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_change_user" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_change_user" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_change_user" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); result = (my_bool)mysql_change_user(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_mysql_real_connect(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; unsigned int arg6 ; char *arg7 = (char *) 0 ; unsigned long arg8 ; MYSQL *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; unsigned int val6 ; int ecode6 = 0 ; int res7 ; char *buf7 = 0 ; int alloc7 = 0 ; unsigned long val8 ; int ecode8 = 0 ; VALUE vresult = Qnil; if ((argc < 8) || (argc > 8)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 8)",argc); SWIG_fail; } res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_real_connect" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_real_connect" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_real_connect" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_real_connect" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mysql_real_connect" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); ecode6 = SWIG_AsVal_unsigned_SS_int(argv[5], &val6); if (!SWIG_IsOK(ecode6)) { SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "mysql_real_connect" "', argument " "6"" of type '" "unsigned int""'"); } arg6 = (unsigned int)(val6); res7 = SWIG_AsCharPtrAndSize(argv[6], &buf7, NULL, &alloc7); if (!SWIG_IsOK(res7)) { SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "mysql_real_connect" "', argument " "7"" of type '" "char const *""'"); } arg7 = (char *)(buf7); ecode8 = SWIG_AsVal_unsigned_SS_long(argv[7], &val8); if (!SWIG_IsOK(ecode8)) { SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "mysql_real_connect" "', argument " "8"" of type '" "unsigned long""'"); } arg8 = (unsigned long)(val8); result = (MYSQL *)mysql_real_connect(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,arg6,(char const *)arg7,arg8); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); if (alloc7 == SWIG_NEWOBJ) free((char*)buf7); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); if (alloc7 == SWIG_NEWOBJ) free((char*)buf7); return Qnil; } SWIGINTERN VALUE _wrap_mysql_select_db(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_select_db" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_select_db" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)mysql_select_db(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_mysql_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (int)mysql_query(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_mysql_send_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_send_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_send_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_send_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (int)mysql_send_query(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_mysql_real_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_real_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_real_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_real_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (int)mysql_real_query(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_mysql_store_result(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_store_result" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL_RES *)mysql_store_result(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_use_result(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_use_result" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL_RES *)mysql_use_result(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_master_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_master_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_master_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_master_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (my_bool)mysql_master_query(arg1,(char const *)arg2,arg3); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_master_send_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_master_send_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_master_send_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_master_send_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (my_bool)mysql_master_send_query(arg1,(char const *)arg2,arg3); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_slave_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_slave_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_slave_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_slave_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (my_bool)mysql_slave_query(arg1,(char const *)arg2,arg3); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_slave_send_query(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_slave_send_query" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_slave_send_query" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_slave_send_query" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (my_bool)mysql_slave_send_query(arg1,(char const *)arg2,arg3); vresult = SWIG_From_char((char)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_character_set_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MY_CHARSET_INFO *arg2 = (MY_CHARSET_INFO *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_character_set_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_character_set, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_get_character_set_info" "', argument " "2"" of type '" "MY_CHARSET_INFO *""'"); } arg2 = (MY_CHARSET_INFO *)(argp2); mysql_get_character_set_info(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_set_local_infile_handler(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; int (*arg2)(void **,char const *,void *) = (int (*)(void **,char const *,void *)) 0 ; int (*arg3)(void *,char *,unsigned int) = (int (*)(void *,char *,unsigned int)) 0 ; void (*arg4)(void *) = (void (*)(void *)) 0 ; int (*arg5)(void *,char *,unsigned int) = (int (*)(void *,char *,unsigned int)) 0 ; void *arg6 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res6 ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_set_local_infile_handler" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[1], (void**)(&arg2), SWIGTYPE_p_f_p_p_void_p_q_const__char_p_void__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "mysql_set_local_infile_handler" "', argument " "2"" of type '" "int (*)(void **,char const *,void *)""'"); } } { int res = SWIG_ConvertFunctionPtr(argv[2], (void**)(&arg3), SWIGTYPE_p_f_p_void_p_char_unsigned_int__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "mysql_set_local_infile_handler" "', argument " "3"" of type '" "int (*)(void *,char *,unsigned int)""'"); } } { int res = SWIG_ConvertFunctionPtr(argv[3], (void**)(&arg4), SWIGTYPE_p_f_p_void__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "mysql_set_local_infile_handler" "', argument " "4"" of type '" "void (*)(void *)""'"); } } { int res = SWIG_ConvertFunctionPtr(argv[4], (void**)(&arg5), SWIGTYPE_p_f_p_void_p_char_unsigned_int__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "mysql_set_local_infile_handler" "', argument " "5"" of type '" "int (*)(void *,char *,unsigned int)""'"); } } res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mysql_set_local_infile_handler" "', argument " "6"" of type '" "void *""'"); } mysql_set_local_infile_handler(arg1,arg2,arg3,arg4,arg5,arg6); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_set_local_infile_default(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_set_local_infile_default" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_set_local_infile_default(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_enable_rpl_parse(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_enable_rpl_parse" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_enable_rpl_parse(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_disable_rpl_parse(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_disable_rpl_parse" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_disable_rpl_parse(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_rpl_parse_enabled(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_rpl_parse_enabled" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (int)mysql_rpl_parse_enabled(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_enable_reads_from_master(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_enable_reads_from_master" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_enable_reads_from_master(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_disable_reads_from_master(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_disable_reads_from_master" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_disable_reads_from_master(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_reads_from_master_enabled(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_reads_from_master_enabled" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_reads_from_master_enabled(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_rpl_query_type(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int arg2 ; enum mysql_rpl_type result; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int val2 ; int ecode2 = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_rpl_query_type" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_rpl_query_type" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (enum mysql_rpl_type)mysql_rpl_query_type((char const *)arg1,arg2); vresult = SWIG_From_int((int)(result)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } SWIGINTERN VALUE _wrap_mysql_rpl_probe(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_rpl_probe" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_rpl_probe(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_set_master(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_set_master" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_set_master" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_set_master" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_set_master" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mysql_set_master" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); result = (int)mysql_set_master(arg1,(char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return Qnil; } SWIGINTERN VALUE _wrap_mysql_add_slave(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned int arg3 ; char *arg4 = (char *) 0 ; char *arg5 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; int res5 ; char *buf5 = 0 ; int alloc5 = 0 ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_add_slave" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_add_slave" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_add_slave" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_add_slave" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5); if (!SWIG_IsOK(res5)) { SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "mysql_add_slave" "', argument " "5"" of type '" "char const *""'"); } arg5 = (char *)(buf5); result = (int)mysql_add_slave(arg1,(char const *)arg2,arg3,(char const *)arg4,(char const *)arg5); vresult = SWIG_From_int((int)(result)); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); if (alloc5 == SWIG_NEWOBJ) free((char*)buf5); return Qnil; } SWIGINTERN VALUE _wrap_mysql_shutdown(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; enum mysql_enum_shutdown_level arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_shutdown" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_shutdown" "', argument " "2"" of type '" "enum mysql_enum_shutdown_level""'"); } arg2 = (enum mysql_enum_shutdown_level)(val2); result = (int)mysql_shutdown(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_dump_debug_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_dump_debug_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (int)mysql_dump_debug_info(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_refresh(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_refresh" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_refresh" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); result = (int)mysql_refresh(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_kill(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; unsigned long val2 ; int ecode2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_kill" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_kill" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); result = (int)mysql_kill(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_set_server_option(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; enum enum_mysql_set_option arg2 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_set_server_option" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_set_server_option" "', argument " "2"" of type '" "enum enum_mysql_set_option""'"); } arg2 = (enum enum_mysql_set_option)(val2); result = (int)mysql_set_server_option(arg1,arg2); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_ping(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_ping" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (int)mysql_ping(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stat(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stat" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_stat(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_server_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_server_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_get_server_info(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_client_info(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 *)mysql_get_client_info(); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_client_version(int argc, VALUE *argv, VALUE self) { unsigned long result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (unsigned long)mysql_get_client_version(); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_host_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_host_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (char *)mysql_get_host_info(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_server_version(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_server_version" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned long)mysql_get_server_version(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_get_proto_info(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_get_proto_info" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (unsigned int)mysql_get_proto_info(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_list_dbs(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_list_dbs" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_list_dbs" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (MYSQL_RES *)mysql_list_dbs(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_list_tables(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_list_tables" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_list_tables" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); result = (MYSQL_RES *)mysql_list_tables(arg1,(char const *)arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_list_processes(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_list_processes" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL_RES *)mysql_list_processes(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_options(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; enum mysql_option arg2 ; char *arg3 = (char *) 0 ; int result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_options" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_options" "', argument " "2"" of type '" "enum mysql_option""'"); } arg2 = (enum mysql_option)(val2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_options" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (int)mysql_options(arg1,arg2,(char const *)arg3); vresult = SWIG_From_int((int)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_mysql_free_result(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_free_result" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); mysql_free_result(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_data_seek(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_data_seek" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_data_seek" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); mysql_data_seek(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_row_seek(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW_OFFSET arg2 = (MYSQL_ROW_OFFSET) 0 ; MYSQL_ROW_OFFSET result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_row_seek" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_row_seek" "', argument " "2"" of type '" "MYSQL_ROW_OFFSET""'"); } arg2 = (MYSQL_ROW_OFFSET)(argp2); result = (MYSQL_ROW_OFFSET)mysql_row_seek(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_field_seek(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD_OFFSET arg2 ; MYSQL_FIELD_OFFSET result; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_field_seek" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_field_seek" "', argument " "2"" of type '" "MYSQL_FIELD_OFFSET""'"); } arg2 = (MYSQL_FIELD_OFFSET)(val2); result = (MYSQL_FIELD_OFFSET)mysql_field_seek(arg1,arg2); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_fetch_row(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_ROW result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_fetch_row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_ROW)mysql_fetch_row(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_fetch_lengths(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; unsigned long *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_fetch_lengths" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (unsigned long *)mysql_fetch_lengths(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_fetch_field(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_fetch_field" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (MYSQL_FIELD *)mysql_fetch_field(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_list_fields(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_list_fields" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_list_fields" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_list_fields" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); result = (MYSQL_RES *)mysql_list_fields(arg1,(char const *)arg2,(char const *)arg3); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); 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_mysql_escape_string(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; unsigned long result; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_escape_string" "', argument " "1"" of type '" "char *""'"); } arg1 = (char *)(buf1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_escape_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_escape_string" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (unsigned long)mysql_escape_string(arg1,(char const *)arg2,arg3); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_hex_string(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; unsigned long result; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; VALUE vresult = Qnil; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; } res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_hex_string" "', argument " "1"" of type '" "char *""'"); } arg1 = (char *)(buf1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_hex_string" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_hex_string" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (unsigned long)mysql_hex_string(arg1,(char const *)arg2,arg3); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return vresult; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_real_escape_string(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; unsigned long arg4 ; unsigned long result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned long val4 ; int ecode4 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_real_escape_string" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_real_escape_string" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_real_escape_string" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mysql_real_escape_string" "', argument " "4"" of type '" "unsigned long""'"); } arg4 = (unsigned long)(val4); result = (unsigned long)mysql_real_escape_string(arg1,arg2,(char const *)arg3,arg4); vresult = SWIG_From_unsigned_SS_long((unsigned long)(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_mysql_debug(int argc, VALUE *argv, VALUE self) { char *arg1 = (char *) 0 ; int res1 ; char *buf1 = 0 ; int alloc1 = 0 ; 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), "in method '" "mysql_debug" "', argument " "1"" of type '" "char const *""'"); } arg1 = (char *)(buf1); mysql_debug((char const *)arg1); if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; fail: if (alloc1 == SWIG_NEWOBJ) free((char*)buf1); return Qnil; } SWIGINTERN VALUE _wrap_mysql_odbc_escape_string(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; char *arg4 = (char *) 0 ; unsigned long arg5 ; void *arg6 = (void *) 0 ; char *(*arg7)(void *,char *,unsigned long *) = (char *(*)(void *,char *,unsigned long *)) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; unsigned long val5 ; int ecode5 = 0 ; int res6 ; 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_odbc_escape_string" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_odbc_escape_string" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_odbc_escape_string" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_odbc_escape_string" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); ecode5 = SWIG_AsVal_unsigned_SS_long(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mysql_odbc_escape_string" "', argument " "5"" of type '" "unsigned long""'"); } arg5 = (unsigned long)(val5); res6 = SWIG_ConvertPtr(argv[5],SWIG_as_voidptrptr(&arg6), 0, 0); if (!SWIG_IsOK(res6)) { SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "mysql_odbc_escape_string" "', argument " "6"" of type '" "void *""'"); } { int res = SWIG_ConvertFunctionPtr(argv[6], (void**)(&arg7), SWIGTYPE_p_f_p_void_p_char_p_unsigned_long__p_char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "mysql_odbc_escape_string" "', argument " "7"" of type '" "char *(*)(void *,char *,unsigned long *)""'"); } } result = (char *)mysql_odbc_escape_string(arg1,arg2,arg3,(char const *)arg4,arg5,arg6,arg7); vresult = SWIG_FromCharPtr((const char *)result); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_myodbc_remove_escape(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; char *arg2 = (char *) 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "myodbc_remove_escape" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "myodbc_remove_escape" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); myodbc_remove_escape(arg1,arg2); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_mysql_thread_safe(int argc, VALUE *argv, VALUE self) { unsigned int result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (unsigned int)mysql_thread_safe(); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_embedded(int argc, VALUE *argv, VALUE self) { my_bool result; VALUE vresult = Qnil; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (my_bool)mysql_embedded(); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_manager_init(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; MYSQL_MANAGER *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_manager_init" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); result = (MYSQL_MANAGER *)mysql_manager_init(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_manager, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_manager_connect(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *arg2 = (char *) 0 ; char *arg3 = (char *) 0 ; char *arg4 = (char *) 0 ; unsigned int arg5 ; MYSQL_MANAGER *result = 0 ; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; int res4 ; char *buf4 = 0 ; int alloc4 = 0 ; unsigned int val5 ; int ecode5 = 0 ; 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_manager_connect" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_manager_connect" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_manager_connect" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4); if (!SWIG_IsOK(res4)) { SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "mysql_manager_connect" "', argument " "4"" of type '" "char const *""'"); } arg4 = (char *)(buf4); ecode5 = SWIG_AsVal_unsigned_SS_int(argv[4], &val5); if (!SWIG_IsOK(ecode5)) { SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "mysql_manager_connect" "', argument " "5"" of type '" "unsigned int""'"); } arg5 = (unsigned int)(val5); result = (MYSQL_MANAGER *)mysql_manager_connect(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_manager, 0 | 0 ); if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return vresult; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); if (alloc4 == SWIG_NEWOBJ) free((char*)buf4); return Qnil; } SWIGINTERN VALUE _wrap_mysql_manager_close(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_manager_close" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); mysql_manager_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_manager_command(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_manager_command" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_manager_command" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_manager_command" "', argument " "3"" of type '" "int""'"); } arg3 = (int)(val3); result = (int)mysql_manager_command(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_mysql_manager_fetch_line(int argc, VALUE *argv, VALUE self) { MYSQL_MANAGER *arg1 = (MYSQL_MANAGER *) 0 ; char *arg2 = (char *) 0 ; int arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; int val3 ; int ecode3 = 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_st_mysql_manager, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_manager_fetch_line" "', argument " "1"" of type '" "MYSQL_MANAGER *""'"); } arg1 = (MYSQL_MANAGER *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_manager_fetch_line" "', argument " "2"" of type '" "char *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_manager_fetch_line" "', argument " "3"" of type '" "int""'"); } arg3 = (int)(val3); result = (int)mysql_manager_fetch_line(arg1,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_mysql_read_query_result(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_read_query_result" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_read_query_result(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } swig_class cMYSQL_BIND; SWIGINTERN VALUE _wrap_MYSQL_BIND_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long *arg2 = (unsigned long *) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_long, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "length" "', argument " "2"" of type '" "unsigned long *""'"); } arg2 = (unsigned long *)(argp2); if (arg1) (arg1)->length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned long *) ((arg1)->length); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_long, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_null_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool *arg2 = (my_bool *) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_null" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "is_null" "', argument " "2"" of type '" "my_bool *""'"); } arg2 = (my_bool *)(buf2); if (arg1->is_null) free((char*)arg1->is_null); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->is_null = (my_bool *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->is_null = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_null_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_null" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool *) ((arg1)->is_null); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "buffer" "', argument " "2"" of type '" "void *""'"); } if (arg1) (arg1)->buffer = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (void *) ((arg1)->buffer); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_error_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool *arg2 = (my_bool *) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "error" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "error" "', argument " "2"" of type '" "my_bool *""'"); } arg2 = (my_bool *)(buf2); if (arg1->error) free((char*)arg1->error); if (arg2) { size_t size = strlen((const char *)(arg2)) + 1; arg1->error = (my_bool *)(char *)memcpy((char *)malloc((size)*sizeof(char)), (const char *)(arg2), sizeof(char)*(size)); } else { arg1->error = 0; } if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; fail: if (alloc2 == SWIG_NEWOBJ) free((char*)buf2); return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_error_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "error" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool *) ((arg1)->error); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_type_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; enum enum_field_types 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer_type" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "buffer_type" "', argument " "2"" of type '" "enum enum_field_types""'"); } arg2 = (enum enum_field_types)(val2); if (arg1) (arg1)->buffer_type = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_type_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; enum enum_field_types result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer_type" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (enum enum_field_types) ((arg1)->buffer_type); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer_length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "buffer_length" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->buffer_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_buffer_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "buffer_length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned long) ((arg1)->buffer_length); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_row_ptr_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned char *arg2 = (unsigned char *) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row_ptr" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "row_ptr" "', argument " "2"" of type '" "unsigned char *""'"); } arg2 = (unsigned char *)(argp2); if (arg1) (arg1)->row_ptr = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_row_ptr_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "row_ptr" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned char *) ((arg1)->row_ptr); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_offset_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "offset" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "offset" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->offset = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_offset_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "offset" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned long) ((arg1)->offset); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_length_value_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "length_value" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->length_value = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_length_value_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "length_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned long) ((arg1)->length_value); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_param_number_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned int 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_number" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "param_number" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->param_number = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_param_number_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_number" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned int) ((arg1)->param_number); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_pack_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned int 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pack_length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "pack_length" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->pack_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_pack_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "pack_length" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (unsigned int) ((arg1)->pack_length); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_error_value_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "error_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "error_value" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->error_value = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_error_value_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "error_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool) ((arg1)->error_value); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_unsigned_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_unsigned" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_unsigned" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->is_unsigned = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_unsigned_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_unsigned" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool) ((arg1)->is_unsigned); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_long_data_used_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "long_data_used" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "long_data_used" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->long_data_used = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_long_data_used_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "long_data_used" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool) ((arg1)->long_data_used); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_null_value_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_null_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "is_null_value" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->is_null_value = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_is_null_value_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "is_null_value" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (my_bool) ((arg1)->is_null_value); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_store_param_func_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*arg2)(NET *,struct st_mysql_bind *) = (void (*)(NET *,struct st_mysql_bind *)) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "store_param_func" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_NET_p_struct_st_mysql_bind__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "store_param_func" "', argument " "2"" of type '" "void (*)(NET *,struct st_mysql_bind *)""'"); } } if (arg1) (arg1)->store_param_func = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_store_param_func_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*result)(NET *,struct st_mysql_bind *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "store_param_func" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (void (*)(NET *,struct st_mysql_bind *)) ((arg1)->store_param_func); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_NET_p_struct_st_mysql_bind__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_fetch_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*arg2)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **) = (void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fetch_result" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "fetch_result" "', argument " "2"" of type '" "void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)""'"); } } if (arg1) (arg1)->fetch_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_fetch_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*result)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fetch_result" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)) ((arg1)->fetch_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_skip_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*arg2)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **) = (void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)) 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "skip_result" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "skip_result" "', argument " "2"" of type '" "void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)""'"); } } if (arg1) (arg1)->skip_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_BIND_skip_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *arg1 = (MYSQL_BIND *) 0 ; void (*result)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "skip_result" "', argument " "1"" of type '" "MYSQL_BIND *""'"); } arg1 = (MYSQL_BIND *)(argp1); result = (void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)) ((arg1)->skip_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_BIND_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_BIND_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_bind); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_BIND(int argc, VALUE *argv, VALUE self) { MYSQL_BIND *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_BIND *)(MYSQL_BIND *) calloc(1, sizeof(MYSQL_BIND));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_BIND(MYSQL_BIND *arg1) { free((char *) arg1); } swig_class cMYSQL_STMT; SWIGINTERN VALUE _wrap_MYSQL_STMT_mem_root_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MEM_ROOT 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mem_root" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_MEM_ROOT, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mem_root" "', argument " "2"" of type '" "MEM_ROOT""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "mem_root" "', argument " "2"" of type '" "MEM_ROOT""'"); } else { arg2 = *((MEM_ROOT *)(argp2)); } } if (arg1) (arg1)->mem_root = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_mem_root_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MEM_ROOT result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mem_root" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = ((arg1)->mem_root); vresult = SWIG_NewPointerObj((MEM_ROOT *)memcpy((MEM_ROOT *)malloc(sizeof(MEM_ROOT)),&result,sizeof(MEM_ROOT)), SWIGTYPE_p_MEM_ROOT, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_list_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; LIST 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "list" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); { res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_LIST, 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "list" "', argument " "2"" of type '" "LIST""'"); } if (!argp2) { SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "list" "', argument " "2"" of type '" "LIST""'"); } else { arg2 = *((LIST *)(argp2)); } } if (arg1) (arg1)->list = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_list_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; LIST result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "list" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = ((arg1)->list); vresult = SWIG_NewPointerObj((LIST *)memcpy((LIST *)malloc(sizeof(LIST)),&result,sizeof(LIST)), SWIGTYPE_p_LIST, SWIG_POINTER_OWN | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_mysql_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL *arg2 = (MYSQL *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql" "', argument " "2"" of type '" "MYSQL *""'"); } arg2 = (MYSQL *)(argp2); if (arg1) (arg1)->mysql = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_mysql_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL *) ((arg1)->mysql); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_params_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *arg2 = (MYSQL_BIND *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "params" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_bind, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "params" "', argument " "2"" of type '" "MYSQL_BIND *""'"); } arg2 = (MYSQL_BIND *)(argp2); if (arg1) (arg1)->params = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_params_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "params" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_BIND *) ((arg1)->params); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_bind, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *arg2 = (MYSQL_BIND *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_bind, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "bind" "', argument " "2"" of type '" "MYSQL_BIND *""'"); } arg2 = (MYSQL_BIND *)(argp2); if (arg1) (arg1)->bind = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_BIND *) ((arg1)->bind); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_bind, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_fields_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_FIELD *arg2 = (MYSQL_FIELD *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_field, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "fields" "', argument " "2"" of type '" "MYSQL_FIELD *""'"); } arg2 = (MYSQL_FIELD *)(argp2); if (arg1) (arg1)->fields = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_fields_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_FIELD *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fields" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_FIELD *) ((arg1)->fields); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_field, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_DATA *arg2 = (MYSQL_DATA *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_data, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "result" "', argument " "2"" of type '" "MYSQL_DATA *""'"); } arg2 = (MYSQL_DATA *)(argp2); if (arg1) (arg1)->result = *arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_DATA *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "result" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_DATA *)& ((arg1)->result); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_data, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_data_cursor_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_ROWS *arg2 = (MYSQL_ROWS *) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data_cursor" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_st_mysql_rows, SWIG_POINTER_DISOWN | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "data_cursor" "', argument " "2"" of type '" "MYSQL_ROWS *""'"); } arg2 = (MYSQL_ROWS *)(argp2); if (arg1) (arg1)->data_cursor = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_data_cursor_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_ROWS *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "data_cursor" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_ROWS *) ((arg1)->data_cursor); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_affected_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "affected_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "affected_rows" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->affected_rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_affected_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "affected_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_ulonglong) ((arg1)->affected_rows); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_insert_id_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "insert_id" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "insert_id" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); if (arg1) (arg1)->insert_id = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_insert_id_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "insert_id" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_ulonglong) ((arg1)->insert_id); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_read_row_func_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; int (*arg2)(struct st_mysql_stmt *,unsigned char **) = (int (*)(struct st_mysql_stmt *,unsigned char **)) 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_row_func" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_row_func" "', argument " "2"" of type '" "int (*)(struct st_mysql_stmt *,unsigned char **)""'"); } } if (arg1) (arg1)->read_row_func = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_read_row_func_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; int (*result)(struct st_mysql_stmt *,unsigned char **) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_row_func" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (int (*)(struct st_mysql_stmt *,unsigned char **)) ((arg1)->read_row_func); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_stmt_id_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmt_id" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "stmt_id" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->stmt_id = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_stmt_id_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmt_id" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned long) ((arg1)->stmt_id); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_flags_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "flags" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->flags = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_flags_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flags" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned long) ((arg1)->flags); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_prefetch_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefetch_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "prefetch_rows" "', argument " "2"" of type '" "unsigned long""'"); } arg2 = (unsigned long)(val2); if (arg1) (arg1)->prefetch_rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_prefetch_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "prefetch_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned long) ((arg1)->prefetch_rows); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_server_status_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_status" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "server_status" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->server_status = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_server_status_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "server_status" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int) ((arg1)->server_status); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_last_errno_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_errno" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "last_errno" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->last_errno = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_last_errno_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_errno" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int) ((arg1)->last_errno); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_param_count_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "param_count" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->param_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_param_count_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "param_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int) ((arg1)->param_count); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_field_count_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "field_count" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); if (arg1) (arg1)->field_count = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_field_count_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "field_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int) ((arg1)->field_count); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_state_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; enum enum_mysql_stmt_state 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_int(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "state" "', argument " "2"" of type '" "enum enum_mysql_stmt_state""'"); } arg2 = (enum enum_mysql_stmt_state)(val2); if (arg1) (arg1)->state = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_state_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; enum enum_mysql_stmt_state result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "state" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (enum enum_mysql_stmt_state) ((arg1)->state); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_last_error_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[MYSQL_ERRMSG_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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_error" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, MYSQL_ERRMSG_SIZE); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "last_error" "', argument " "2"" of type '" "char [MYSQL_ERRMSG_SIZE]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->last_error,arg2,MYSQL_ERRMSG_SIZE*sizeof(char)); else memset(arg1->last_error,0,MYSQL_ERRMSG_SIZE*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_last_error_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "last_error" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (char *)(char *) ((arg1)->last_error); { size_t size = MYSQL_ERRMSG_SIZE; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_sqlstate_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *arg2 ; void *argp1 = 0 ; int res1 = 0 ; char temp2[SQLSTATE_LENGTH+1] ; 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sqlstate" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_AsCharArray(argv[0], temp2, SQLSTATE_LENGTH+1); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "sqlstate" "', argument " "2"" of type '" "char [SQLSTATE_LENGTH+1]""'"); } arg2 = (char *)(temp2); if (arg2) memcpy(arg1->sqlstate,arg2,SQLSTATE_LENGTH+1*sizeof(char)); else memset(arg1->sqlstate,0,SQLSTATE_LENGTH+1*sizeof(char)); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_sqlstate_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "sqlstate" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (char *)(char *) ((arg1)->sqlstate); { size_t size = SQLSTATE_LENGTH+1; while (size && (result[size - 1] == '\0')) --size; vresult = SWIG_FromCharPtrAndSize(result, size); } return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_send_types_to_server_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_types_to_server" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "send_types_to_server" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->send_types_to_server = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_send_types_to_server_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "send_types_to_server" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool) ((arg1)->send_types_to_server); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_param_done_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind_param_done" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bind_param_done" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->bind_param_done = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_param_done_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind_param_done" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool) ((arg1)->bind_param_done); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_result_done_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned char arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned char 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind_result_done" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "bind_result_done" "', argument " "2"" of type '" "unsigned char""'"); } arg2 = (unsigned char)(val2); if (arg1) (arg1)->bind_result_done = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_bind_result_done_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned char result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "bind_result_done" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned char) ((arg1)->bind_result_done); vresult = SWIG_From_unsigned_SS_char((unsigned char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_unbuffered_fetch_cancelled_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_cancelled" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "unbuffered_fetch_cancelled" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->unbuffered_fetch_cancelled = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_unbuffered_fetch_cancelled_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch_cancelled" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool) ((arg1)->unbuffered_fetch_cancelled); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_update_max_length_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool arg2 ; void *argp1 = 0 ; int res1 = 0 ; char 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "update_max_length" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_char(argv[0], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "update_max_length" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); if (arg1) (arg1)->update_max_length = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_STMT_update_max_length_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "update_max_length" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool) ((arg1)->update_max_length); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_STMT_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_STMT_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_stmt); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_STMT(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_STMT *)(MYSQL_STMT *) calloc(1, sizeof(MYSQL_STMT));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_STMT(MYSQL_STMT *arg1) { free((char *) arg1); } swig_class cMYSQL_METHODS; SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_query_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*arg2)(MYSQL *) = (my_bool (*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_query_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql__char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_query_result" "', argument " "2"" of type '" "my_bool (*)(MYSQL *)""'"); } } if (arg1) (arg1)->read_query_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_query_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_query_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (my_bool (*)(MYSQL *)) ((arg1)->read_query_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql__char); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_advanced_command_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*arg2)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *) = (my_bool (*)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "advanced_command" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "advanced_command" "', argument " "2"" of type '" "my_bool (*)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *)""'"); } } if (arg1) (arg1)->advanced_command = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_advanced_command_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*result)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "advanced_command" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (my_bool (*)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *)) ((arg1)->advanced_command); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_DATA *(*arg2)(MYSQL *,MYSQL_FIELD *,unsigned int) = (MYSQL_DATA *(*)(MYSQL *,MYSQL_FIELD *,unsigned int)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_rows" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_rows" "', argument " "2"" of type '" "MYSQL_DATA *(*)(MYSQL *,MYSQL_FIELD *,unsigned int)""'"); } } if (arg1) (arg1)->read_rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_DATA *(*result)(MYSQL *,MYSQL_FIELD *,unsigned int) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_rows" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (MYSQL_DATA *(*)(MYSQL *,MYSQL_FIELD *,unsigned int)) ((arg1)->read_rows); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_use_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_RES *(*arg2)(MYSQL *) = (MYSQL_RES *(*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "use_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_MYSQL__p_st_mysql_res); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "use_result" "', argument " "2"" of type '" "MYSQL_RES *(*)(MYSQL *)""'"); } } if (arg1) (arg1)->use_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_use_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_RES *(*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "use_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (MYSQL_RES *(*)(MYSQL *)) ((arg1)->use_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_MYSQL__p_st_mysql_res); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_fetch_lengths_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*arg2)(unsigned long *,MYSQL_ROW,unsigned int) = (void (*)(unsigned long *,MYSQL_ROW,unsigned int)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fetch_lengths" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_unsigned_long_p_p_char_unsigned_int__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "fetch_lengths" "', argument " "2"" of type '" "void (*)(unsigned long *,MYSQL_ROW,unsigned int)""'"); } } if (arg1) (arg1)->fetch_lengths = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_fetch_lengths_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*result)(unsigned long *,MYSQL_ROW,unsigned int) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "fetch_lengths" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (void (*)(unsigned long *,MYSQL_ROW,unsigned int)) ((arg1)->fetch_lengths); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_unsigned_long_p_p_char_unsigned_int__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_flush_use_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*arg2)(MYSQL *) = (void (*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flush_use_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "flush_use_result" "', argument " "2"" of type '" "void (*)(MYSQL *)""'"); } } if (arg1) (arg1)->flush_use_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_flush_use_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "flush_use_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (void (*)(MYSQL *)) ((arg1)->flush_use_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_list_fields_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_FIELD *(*arg2)(MYSQL *) = (MYSQL_FIELD *(*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "list_fields" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_MYSQL__p_st_mysql_field); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "list_fields" "', argument " "2"" of type '" "MYSQL_FIELD *(*)(MYSQL *)""'"); } } if (arg1) (arg1)->list_fields = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_list_fields_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; MYSQL_FIELD *(*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "list_fields" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (MYSQL_FIELD *(*)(MYSQL *)) ((arg1)->list_fields); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_MYSQL__p_st_mysql_field); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_prepare_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*arg2)(MYSQL *,MYSQL_STMT *) = (my_bool (*)(MYSQL *,MYSQL_STMT *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_prepare_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_prepare_result" "', argument " "2"" of type '" "my_bool (*)(MYSQL *,MYSQL_STMT *)""'"); } } if (arg1) (arg1)->read_prepare_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_prepare_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*result)(MYSQL *,MYSQL_STMT *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_prepare_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (my_bool (*)(MYSQL *,MYSQL_STMT *)) ((arg1)->read_prepare_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_stmt_execute_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*arg2)(MYSQL_STMT *) = (int (*)(MYSQL_STMT *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmt_execute" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "stmt_execute" "', argument " "2"" of type '" "int (*)(MYSQL_STMT *)""'"); } } if (arg1) (arg1)->stmt_execute = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_stmt_execute_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*result)(MYSQL_STMT *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "stmt_execute" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (int (*)(MYSQL_STMT *)) ((arg1)->stmt_execute); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_binary_rows_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*arg2)(MYSQL_STMT *) = (int (*)(MYSQL_STMT *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_binary_rows" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_binary_rows" "', argument " "2"" of type '" "int (*)(MYSQL_STMT *)""'"); } } if (arg1) (arg1)->read_binary_rows = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_binary_rows_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*result)(MYSQL_STMT *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_binary_rows" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (int (*)(MYSQL_STMT *)) ((arg1)->read_binary_rows); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_unbuffered_fetch_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*arg2)(MYSQL *,char **) = (int (*)(MYSQL *,char **)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_p_p_char__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "unbuffered_fetch" "', argument " "2"" of type '" "int (*)(MYSQL *,char **)""'"); } } if (arg1) (arg1)->unbuffered_fetch = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_unbuffered_fetch_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*result)(MYSQL *,char **) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "unbuffered_fetch" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (int (*)(MYSQL *,char **)) ((arg1)->unbuffered_fetch); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_p_p_char__int); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_free_embedded_thd_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*arg2)(MYSQL *) = (void (*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_embedded_thd" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql__void); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "free_embedded_thd" "', argument " "2"" of type '" "void (*)(MYSQL *)""'"); } } if (arg1) (arg1)->free_embedded_thd = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_free_embedded_thd_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; void (*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "free_embedded_thd" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (void (*)(MYSQL *)) ((arg1)->free_embedded_thd); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql__void); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_statistics_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; char *(*arg2)(MYSQL *) = (char *(*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_statistics" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql__p_char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_statistics" "', argument " "2"" of type '" "char const *(*)(MYSQL *)""'"); } } if (arg1) (arg1)->read_statistics = (char const *(*)(MYSQL *))arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_statistics_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; char *(*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_statistics" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (char *(*)(MYSQL *)) ((arg1)->read_statistics); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql__p_char); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_next_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*arg2)(MYSQL *) = (my_bool (*)(MYSQL *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql__char); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "next_result" "', argument " "2"" of type '" "my_bool (*)(MYSQL *)""'"); } } if (arg1) (arg1)->next_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_next_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; my_bool (*result)(MYSQL *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "next_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (my_bool (*)(MYSQL *)) ((arg1)->next_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql__char); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_change_user_result_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*arg2)(MYSQL *,char *,char const *) = (int (*)(MYSQL *,char *,char const *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_change_user_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_p_char_p_q_const__char__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_change_user_result" "', argument " "2"" of type '" "int (*)(MYSQL *,char *,char const *)""'"); } } if (arg1) (arg1)->read_change_user_result = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_change_user_result_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*result)(MYSQL *,char *,char const *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_change_user_result" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (int (*)(MYSQL *,char *,char const *)) ((arg1)->read_change_user_result); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_p_char_p_q_const__char__int); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_rows_from_cursor_set(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*arg2)(MYSQL_STMT *) = (int (*)(MYSQL_STMT *)) 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_rows_from_cursor" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); { int res = SWIG_ConvertFunctionPtr(argv[0], (void**)(&arg2), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); if (!SWIG_IsOK(res)) { SWIG_exception_fail(SWIG_ArgError(res), "in method '" "read_rows_from_cursor" "', argument " "2"" of type '" "int (*)(MYSQL_STMT *)""'"); } } if (arg1) (arg1)->read_rows_from_cursor = arg2; return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_MYSQL_METHODS_read_rows_from_cursor_get(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *arg1 = (MYSQL_METHODS *) 0 ; int (*result)(MYSQL_STMT *) = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_methods, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "read_rows_from_cursor" "', argument " "1"" of type '" "MYSQL_METHODS *""'"); } arg1 = (MYSQL_METHODS *)(argp1); result = (int (*)(MYSQL_STMT *)) ((arg1)->read_rows_from_cursor); vresult = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_struct_st_mysql_stmt__int); return vresult; fail: return Qnil; } #ifdef HAVE_RB_DEFINE_ALLOC_FUNC SWIGINTERN VALUE _wrap_MYSQL_METHODS_allocate(VALUE self) { #else SWIGINTERN VALUE _wrap_MYSQL_METHODS_allocate(int argc, VALUE *argv, VALUE self) { #endif VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_st_mysql_methods); #ifndef HAVE_RB_DEFINE_ALLOC_FUNC rb_obj_call_init(vresult, argc, argv); #endif return vresult; } SWIGINTERN VALUE _wrap_new_MYSQL_METHODS(int argc, VALUE *argv, VALUE self) { MYSQL_METHODS *result = 0 ; if ((argc < 0) || (argc > 0)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail; } result = (MYSQL_METHODS *)(MYSQL_METHODS *) calloc(1, sizeof(MYSQL_METHODS));DATA_PTR(self) = result; return self; fail: return Qnil; } SWIGINTERN void free_MYSQL_METHODS(MYSQL_METHODS *arg1) { free((char *) arg1); } SWIGINTERN VALUE _wrap_mysql_stmt_init(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; MYSQL_STMT *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_init" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (MYSQL_STMT *)mysql_stmt_init(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_stmt, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_prepare(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *arg2 = (char *) 0 ; unsigned long arg3 ; int result; void *argp1 = 0 ; int res1 = 0 ; int res2 ; char *buf2 = 0 ; int alloc2 = 0 ; unsigned long val3 ; int ecode3 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_prepare" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_stmt_prepare" "', argument " "2"" of type '" "char const *""'"); } arg2 = (char *)(buf2); ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_stmt_prepare" "', argument " "3"" of type '" "unsigned long""'"); } arg3 = (unsigned long)(val3); result = (int)mysql_stmt_prepare(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_mysql_stmt_execute(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_execute" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (int)mysql_stmt_execute(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_fetch(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_fetch" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (int)mysql_stmt_fetch(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_fetch_column(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *arg2 = (MYSQL_BIND *) 0 ; unsigned int arg3 ; unsigned long arg4 ; int result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 0 ; unsigned int val3 ; int ecode3 = 0 ; unsigned long val4 ; int ecode4 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_fetch_column" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_stmt_fetch_column" "', argument " "2"" of type '" "MYSQL_BIND *""'"); } arg2 = (MYSQL_BIND *)(argp2); ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "mysql_stmt_fetch_column" "', argument " "3"" of type '" "unsigned int""'"); } arg3 = (unsigned int)(val3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mysql_stmt_fetch_column" "', argument " "4"" of type '" "unsigned long""'"); } arg4 = (unsigned long)(val4); result = (int)mysql_stmt_fetch_column(arg1,arg2,arg3,arg4); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_store_result(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_store_result" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (int)mysql_stmt_store_result(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_param_count(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned long result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_param_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned long)mysql_stmt_param_count(arg1); vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_attr_set(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; enum enum_stmt_attr_type arg2 ; void *arg3 = (void *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_attr_set" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_stmt_attr_set" "', argument " "2"" of type '" "enum enum_stmt_attr_type""'"); } arg2 = (enum enum_stmt_attr_type)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_stmt_attr_set" "', argument " "3"" of type '" "void const *""'"); } result = (my_bool)mysql_stmt_attr_set(arg1,arg2,(void const *)arg3); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_attr_get(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; enum enum_stmt_attr_type arg2 ; void *arg3 = (void *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 0 ; int res3 ; 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_attr_get" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_stmt_attr_get" "', argument " "2"" of type '" "enum enum_stmt_attr_type""'"); } arg2 = (enum enum_stmt_attr_type)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_stmt_attr_get" "', argument " "3"" of type '" "void *""'"); } result = (my_bool)mysql_stmt_attr_get(arg1,arg2,arg3); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_bind_param(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *arg2 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_bind_param" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_stmt_bind_param" "', argument " "2"" of type '" "MYSQL_BIND *""'"); } arg2 = (MYSQL_BIND *)(argp2); result = (my_bool)mysql_stmt_bind_param(arg1,arg2); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_bind_result(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_BIND *arg2 = (MYSQL_BIND *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_bind_result" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_st_mysql_bind, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_stmt_bind_result" "', argument " "2"" of type '" "MYSQL_BIND *""'"); } arg2 = (MYSQL_BIND *)(argp2); result = (my_bool)mysql_stmt_bind_result(arg1,arg2); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_close(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_close" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool)mysql_stmt_close(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_reset(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_reset" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool)mysql_stmt_reset(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_free_result(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_free_result" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_bool)mysql_stmt_free_result(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_send_long_data(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int arg2 ; char *arg3 = (char *) 0 ; unsigned long arg4 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; unsigned int val2 ; int ecode2 = 0 ; int res3 ; char *buf3 = 0 ; int alloc3 = 0 ; unsigned long val4 ; int ecode4 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_send_long_data" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_stmt_send_long_data" "', argument " "2"" of type '" "unsigned int""'"); } arg2 = (unsigned int)(val2); res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3); if (!SWIG_IsOK(res3)) { SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "mysql_stmt_send_long_data" "', argument " "3"" of type '" "char const *""'"); } arg3 = (char *)(buf3); ecode4 = SWIG_AsVal_unsigned_SS_long(argv[3], &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "mysql_stmt_send_long_data" "', argument " "4"" of type '" "unsigned long""'"); } arg4 = (unsigned long)(val4); result = (my_bool)mysql_stmt_send_long_data(arg1,arg2,(char const *)arg3,arg4); vresult = SWIG_From_char((char)(result)); if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return vresult; fail: if (alloc3 == SWIG_NEWOBJ) free((char*)buf3); return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_result_metadata(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_result_metadata" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_RES *)mysql_stmt_result_metadata(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_param_metadata(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_RES *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_param_metadata" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_RES *)mysql_stmt_param_metadata(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_res, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_errno(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_errno" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int)mysql_stmt_errno(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_error(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_error" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (char *)mysql_stmt_error(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_sqlstate(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; char *result = 0 ; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_sqlstate" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (char *)mysql_stmt_sqlstate(arg1); vresult = SWIG_FromCharPtr((const char *)result); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_row_seek(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_ROW_OFFSET arg2 = (MYSQL_ROW_OFFSET) 0 ; MYSQL_ROW_OFFSET result; void *argp1 = 0 ; int res1 = 0 ; void *argp2 = 0 ; int res2 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_row_seek" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_st_mysql_rows, 0 | 0 ); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "mysql_stmt_row_seek" "', argument " "2"" of type '" "MYSQL_ROW_OFFSET""'"); } arg2 = (MYSQL_ROW_OFFSET)(argp2); result = (MYSQL_ROW_OFFSET)mysql_stmt_row_seek(arg1,arg2); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_row_tell(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; MYSQL_ROW_OFFSET result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_row_tell" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (MYSQL_ROW_OFFSET)mysql_stmt_row_tell(arg1); vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_st_mysql_rows, 0 | 0 ); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_data_seek(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong arg2 ; void *argp1 = 0 ; int res1 = 0 ; unsigned long 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_data_seek" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_stmt_data_seek" "', argument " "2"" of type '" "my_ulonglong""'"); } arg2 = (my_ulonglong)(val2); mysql_stmt_data_seek(arg1,arg2); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_num_rows(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_num_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_ulonglong)mysql_stmt_num_rows(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_affected_rows(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_affected_rows" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_ulonglong)mysql_stmt_affected_rows(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_insert_id(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; my_ulonglong result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_insert_id" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (my_ulonglong)mysql_stmt_insert_id(arg1); vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_stmt_field_count(int argc, VALUE *argv, VALUE self) { MYSQL_STMT *arg1 = (MYSQL_STMT *) 0 ; unsigned int result; void *argp1 = 0 ; int res1 = 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_st_mysql_stmt, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_stmt_field_count" "', argument " "1"" of type '" "MYSQL_STMT *""'"); } arg1 = (MYSQL_STMT *)(argp1); result = (unsigned int)mysql_stmt_field_count(arg1); vresult = SWIG_From_unsigned_SS_int((unsigned int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_commit(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_commit" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_commit(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_rollback(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_rollback" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_rollback(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_autocommit(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool arg2 ; my_bool result; void *argp1 = 0 ; int res1 = 0 ; char val2 ; int ecode2 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_autocommit" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); ecode2 = SWIG_AsVal_char(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_autocommit" "', argument " "2"" of type '" "my_bool""'"); } arg2 = (my_bool)(val2); result = (my_bool)mysql_autocommit(arg1,arg2); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_more_results(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; my_bool result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_more_results" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (my_bool)mysql_more_results(arg1); vresult = SWIG_From_char((char)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_next_result(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 0 ; int result; void *argp1 = 0 ; int res1 = 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_next_result" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); result = (int)mysql_next_result(arg1); vresult = SWIG_From_int((int)(result)); return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_close(int argc, VALUE *argv, VALUE self) { MYSQL *arg1 = (MYSQL *) 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_st_mysql, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_close" "', argument " "1"" of type '" "MYSQL *""'"); } arg1 = (MYSQL *)(argp1); mysql_close(arg1); return Qnil; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_c_fetch_field_names(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; int arg2 ; VALUE result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_c_fetch_field_names" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_c_fetch_field_names" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (VALUE)mysql_c_fetch_field_names(arg1,arg2); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_c_fetch_field_types(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; int arg2 ; VALUE result; void *argp1 = 0 ; int res1 = 0 ; int val2 ; int ecode2 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_c_fetch_field_types" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); ecode2 = SWIG_AsVal_int(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "mysql_c_fetch_field_types" "', argument " "2"" of type '" "int""'"); } arg2 = (int)(val2); result = (VALUE)mysql_c_fetch_field_types(arg1,arg2); vresult = result; return vresult; fail: return Qnil; } SWIGINTERN VALUE _wrap_mysql_c_fetch_row(int argc, VALUE *argv, VALUE self) { MYSQL_RES *arg1 = (MYSQL_RES *) 0 ; VALUE result; void *argp1 = 0 ; int res1 = 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_st_mysql_res, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "mysql_c_fetch_row" "', argument " "1"" of type '" "MYSQL_RES *""'"); } arg1 = (MYSQL_RES *)(argp1); result = (VALUE)mysql_c_fetch_row(arg1); vresult = result; return vresult; fail: return Qnil; } /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ static swig_type_info _swigt__p_LIST = {"_p_LIST", "LIST *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_MEM_ROOT = {"_p_MEM_ROOT", "MEM_ROOT *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_NET = {"_p_NET", "NET *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_char = {"_p_char", "char *|my_bool *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_character_set = {"_p_character_set", "struct character_set *|MY_CHARSET_INFO *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_charset_info_st = {"_p_charset_info_st", "struct charset_info_st *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_embedded_query_result = {"_p_embedded_query_result", "struct embedded_query_result *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_MYSQL__p_st_mysql_field = {"_p_f_p_MYSQL__p_st_mysql_field", "struct st_mysql_field *(*)(MYSQL *)|MYSQL_FIELD *(*)(MYSQL *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_MYSQL__p_st_mysql_res = {"_p_f_p_MYSQL__p_st_mysql_res", "struct st_mysql_res *(*)(MYSQL *)|MYSQL_RES *(*)(MYSQL *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data = {"_p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data", "struct st_mysql_data *(*)(MYSQL *,MYSQL_FIELD *,unsigned int)|MYSQL_DATA *(*)(MYSQL *,MYSQL_FIELD *,unsigned int)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_NET_p_struct_st_mysql_bind__void = {"_p_f_p_NET_p_struct_st_mysql_bind__void", "void (*)(NET *,struct st_mysql_bind *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_p_void_p_q_const__char_p_void__int = {"_p_f_p_p_void_p_q_const__char_p_void__int", "int (*)(void **,char const *,void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql__char = {"_p_f_p_struct_st_mysql__char", "char (*)(struct st_mysql *)|my_bool (*)(MYSQL *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql__p_char = {"_p_f_p_struct_st_mysql__p_char", "char *(*)(struct st_mysql *)|char *(*)(MYSQL *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql__void = {"_p_f_p_struct_st_mysql__void", "void (*)(struct st_mysql *)|void (*)(MYSQL *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void = {"_p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void", "void (*)(struct st_mysql_bind *,struct st_mysql_field *,unsigned char **)|void (*)(struct st_mysql_bind *,MYSQL_FIELD *,unsigned char **)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char = {"_p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char", "char (*)(struct st_mysql *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,char,struct st_mysql_stmt *)|my_bool (*)(MYSQL *,enum enum_server_command,char const *,unsigned long,char const *,unsigned long,my_bool,MYSQL_STMT *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_p_char_p_q_const__char__int = {"_p_f_p_struct_st_mysql_p_char_p_q_const__char__int", "int (*)(struct st_mysql *,char *,char const *)|int (*)(MYSQL *,char *,char const *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_p_p_char__int = {"_p_f_p_struct_st_mysql_p_p_char__int", "int (*)(struct st_mysql *,char **)|int (*)(MYSQL *,char **)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char = {"_p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char", "char (*)(struct st_mysql *,struct st_mysql_stmt *)|my_bool (*)(MYSQL *,MYSQL_STMT *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_stmt__int = {"_p_f_p_struct_st_mysql_stmt__int", "int (*)(struct st_mysql_stmt *)|int (*)(MYSQL_STMT *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int = {"_p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int", "int (*)(struct st_mysql_stmt *,unsigned char **)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_unsigned_long_p_p_char_unsigned_int__void = {"_p_f_p_unsigned_long_p_p_char_unsigned_int__void", "void (*)(unsigned long *,char **,unsigned int)|void (*)(unsigned long *,MYSQL_ROW,unsigned int)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void__void = {"_p_f_p_void__void", "void (*)(void *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void_p_char_p_unsigned_long__p_char = {"_p_f_p_void_p_char_p_unsigned_long__p_char", "char *(*)(void *,char *,unsigned long *)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_f_p_void_p_char_unsigned_int__int = {"_p_f_p_void_p_char_unsigned_int__int", "int (*)(void *,char *,unsigned int)", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_int = {"_p_int", "int *|my_socket *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **|MYSQL_ROW", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql = {"_p_st_mysql", "struct st_mysql *|MYSQL *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_bind = {"_p_st_mysql_bind", "struct st_mysql_bind *|MYSQL_BIND *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_data = {"_p_st_mysql_data", "struct st_mysql_data *|MYSQL_DATA *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_field = {"_p_st_mysql_field", "struct st_mysql_field *|MYSQL_FIELD *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_manager = {"_p_st_mysql_manager", "struct st_mysql_manager *|MYSQL_MANAGER *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_methods = {"_p_st_mysql_methods", "struct st_mysql_methods *|MYSQL_METHODS *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_options = {"_p_st_mysql_options", "struct st_mysql_options *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_parameters = {"_p_st_mysql_parameters", "struct st_mysql_parameters *|MYSQL_PARAMETERS *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_res = {"_p_st_mysql_res", "struct st_mysql_res *|MYSQL_RES *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_rows = {"_p_st_mysql_rows", "struct st_mysql_rows *|MYSQL_ROW_OFFSET", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_st_mysql_stmt = {"_p_st_mysql_stmt", "struct st_mysql_stmt *|MYSQL_STMT *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|MYSQL_FIELD_OFFSET *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "unsigned long long *|my_ulonglong *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_LIST, &_swigt__p_MEM_ROOT, &_swigt__p_NET, &_swigt__p_char, &_swigt__p_character_set, &_swigt__p_charset_info_st, &_swigt__p_embedded_query_result, &_swigt__p_f_p_MYSQL__p_st_mysql_field, &_swigt__p_f_p_MYSQL__p_st_mysql_res, &_swigt__p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data, &_swigt__p_f_p_NET_p_struct_st_mysql_bind__void, &_swigt__p_f_p_p_void_p_q_const__char_p_void__int, &_swigt__p_f_p_struct_st_mysql__char, &_swigt__p_f_p_struct_st_mysql__p_char, &_swigt__p_f_p_struct_st_mysql__void, &_swigt__p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void, &_swigt__p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char, &_swigt__p_f_p_struct_st_mysql_p_char_p_q_const__char__int, &_swigt__p_f_p_struct_st_mysql_p_p_char__int, &_swigt__p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char, &_swigt__p_f_p_struct_st_mysql_stmt__int, &_swigt__p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int, &_swigt__p_f_p_unsigned_long_p_p_char_unsigned_int__void, &_swigt__p_f_p_void__void, &_swigt__p_f_p_void_p_char_p_unsigned_long__p_char, &_swigt__p_f_p_void_p_char_unsigned_int__int, &_swigt__p_int, &_swigt__p_p_char, &_swigt__p_st_mysql, &_swigt__p_st_mysql_bind, &_swigt__p_st_mysql_data, &_swigt__p_st_mysql_field, &_swigt__p_st_mysql_manager, &_swigt__p_st_mysql_methods, &_swigt__p_st_mysql_options, &_swigt__p_st_mysql_parameters, &_swigt__p_st_mysql_res, &_swigt__p_st_mysql_rows, &_swigt__p_st_mysql_stmt, &_swigt__p_unsigned_char, &_swigt__p_unsigned_int, &_swigt__p_unsigned_long, &_swigt__p_unsigned_long_long, &_swigt__p_void, }; static swig_cast_info _swigc__p_LIST[] = { {&_swigt__p_LIST, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_MEM_ROOT[] = { {&_swigt__p_MEM_ROOT, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_NET[] = { {&_swigt__p_NET, 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_character_set[] = { {&_swigt__p_character_set, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_charset_info_st[] = { {&_swigt__p_charset_info_st, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_embedded_query_result[] = { {&_swigt__p_embedded_query_result, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_MYSQL__p_st_mysql_field[] = { {&_swigt__p_f_p_MYSQL__p_st_mysql_field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_MYSQL__p_st_mysql_res[] = { {&_swigt__p_f_p_MYSQL__p_st_mysql_res, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data[] = { {&_swigt__p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_NET_p_struct_st_mysql_bind__void[] = { {&_swigt__p_f_p_NET_p_struct_st_mysql_bind__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_p_void_p_q_const__char_p_void__int[] = { {&_swigt__p_f_p_p_void_p_q_const__char_p_void__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql__char[] = { {&_swigt__p_f_p_struct_st_mysql__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql__p_char[] = { {&_swigt__p_f_p_struct_st_mysql__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql__void[] = { {&_swigt__p_f_p_struct_st_mysql__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void[] = { {&_swigt__p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char[] = { {&_swigt__p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_p_char_p_q_const__char__int[] = { {&_swigt__p_f_p_struct_st_mysql_p_char_p_q_const__char__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_p_p_char__int[] = { {&_swigt__p_f_p_struct_st_mysql_p_p_char__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char[] = { {&_swigt__p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_stmt__int[] = { {&_swigt__p_f_p_struct_st_mysql_stmt__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int[] = { {&_swigt__p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_unsigned_long_p_p_char_unsigned_int__void[] = { {&_swigt__p_f_p_unsigned_long_p_p_char_unsigned_int__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void__void[] = { {&_swigt__p_f_p_void__void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void_p_char_p_unsigned_long__p_char[] = { {&_swigt__p_f_p_void_p_char_p_unsigned_long__p_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_f_p_void_p_char_unsigned_int__int[] = { {&_swigt__p_f_p_void_p_char_unsigned_int__int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 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_st_mysql[] = { {&_swigt__p_st_mysql, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_bind[] = { {&_swigt__p_st_mysql_bind, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_data[] = { {&_swigt__p_st_mysql_data, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_field[] = { {&_swigt__p_st_mysql_field, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_manager[] = { {&_swigt__p_st_mysql_manager, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_methods[] = { {&_swigt__p_st_mysql_methods, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_options[] = { {&_swigt__p_st_mysql_options, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_parameters[] = { {&_swigt__p_st_mysql_parameters, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_res[] = { {&_swigt__p_st_mysql_res, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_rows[] = { {&_swigt__p_st_mysql_rows, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_st_mysql_stmt[] = { {&_swigt__p_st_mysql_stmt, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info *swig_cast_initial[] = { _swigc__p_LIST, _swigc__p_MEM_ROOT, _swigc__p_NET, _swigc__p_char, _swigc__p_character_set, _swigc__p_charset_info_st, _swigc__p_embedded_query_result, _swigc__p_f_p_MYSQL__p_st_mysql_field, _swigc__p_f_p_MYSQL__p_st_mysql_res, _swigc__p_f_p_MYSQL_p_MYSQL_FIELD_unsigned_int__p_st_mysql_data, _swigc__p_f_p_NET_p_struct_st_mysql_bind__void, _swigc__p_f_p_p_void_p_q_const__char_p_void__int, _swigc__p_f_p_struct_st_mysql__char, _swigc__p_f_p_struct_st_mysql__p_char, _swigc__p_f_p_struct_st_mysql__void, _swigc__p_f_p_struct_st_mysql_bind_p_struct_st_mysql_field_p_p_unsigned_char__void, _swigc__p_f_p_struct_st_mysql_enum_enum_server_command_p_q_const__char_unsigned_long_p_q_const__char_unsigned_long_char_p_struct_st_mysql_stmt__char, _swigc__p_f_p_struct_st_mysql_p_char_p_q_const__char__int, _swigc__p_f_p_struct_st_mysql_p_p_char__int, _swigc__p_f_p_struct_st_mysql_p_struct_st_mysql_stmt__char, _swigc__p_f_p_struct_st_mysql_stmt__int, _swigc__p_f_p_struct_st_mysql_stmt_p_p_unsigned_char__int, _swigc__p_f_p_unsigned_long_p_p_char_unsigned_int__void, _swigc__p_f_p_void__void, _swigc__p_f_p_void_p_char_p_unsigned_long__p_char, _swigc__p_f_p_void_p_char_unsigned_int__int, _swigc__p_int, _swigc__p_p_char, _swigc__p_st_mysql, _swigc__p_st_mysql_bind, _swigc__p_st_mysql_data, _swigc__p_st_mysql_field, _swigc__p_st_mysql_manager, _swigc__p_st_mysql_methods, _swigc__p_st_mysql_options, _swigc__p_st_mysql_parameters, _swigc__p_st_mysql_res, _swigc__p_st_mysql_rows, _swigc__p_st_mysql_stmt, _swigc__p_unsigned_char, _swigc__p_unsigned_int, _swigc__p_unsigned_long, _swigc__p_unsigned_long_long, _swigc__p_void, }; /* -------- 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; 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; } /* 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; } /* 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_mysql_c(void) { size_t i; SWIG_InitRuntime(); mMysql_c = rb_define_module("Mysql_c"); SWIG_InitializeModule(0); for (i = 0; i < swig_module.size; i++) { SWIG_define_class(swig_module.types[i]); } SWIG_RubyInitializeTrackings(); rb_define_singleton_method(mMysql_c, "mysql_port", mysql_port_get, 0); rb_define_singleton_method(mMysql_c, "mysql_port=", mysql_port_set, 1); rb_define_singleton_method(mMysql_c, "mysql_unix_port", mysql_unix_port_get, 0); rb_define_singleton_method(mMysql_c, "mysql_unix_port=", mysql_unix_port_set, 1); rb_define_const(mMysql_c, "CLIENT_NET_READ_TIMEOUT", SWIG_From_int((int)(365*24*3600))); rb_define_const(mMysql_c, "CLIENT_NET_WRITE_TIMEOUT", SWIG_From_int((int)(365*24*3600))); cMYSQL_FIELD.klass = rb_define_class_under(mMysql_c, "MYSQL_FIELD", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_field, (void *) &cMYSQL_FIELD); rb_define_alloc_func(cMYSQL_FIELD.klass, _wrap_MYSQL_FIELD_allocate); rb_define_method(cMYSQL_FIELD.klass, "initialize", _wrap_new_MYSQL_FIELD, -1); rb_define_method(cMYSQL_FIELD.klass, "name=", _wrap_MYSQL_FIELD_name_set, -1); rb_define_method(cMYSQL_FIELD.klass, "name", _wrap_MYSQL_FIELD_name_get, -1); rb_define_method(cMYSQL_FIELD.klass, "org_name=", _wrap_MYSQL_FIELD_org_name_set, -1); rb_define_method(cMYSQL_FIELD.klass, "org_name", _wrap_MYSQL_FIELD_org_name_get, -1); rb_define_method(cMYSQL_FIELD.klass, "table=", _wrap_MYSQL_FIELD_table_set, -1); rb_define_method(cMYSQL_FIELD.klass, "table", _wrap_MYSQL_FIELD_table_get, -1); rb_define_method(cMYSQL_FIELD.klass, "org_table=", _wrap_MYSQL_FIELD_org_table_set, -1); rb_define_method(cMYSQL_FIELD.klass, "org_table", _wrap_MYSQL_FIELD_org_table_get, -1); rb_define_method(cMYSQL_FIELD.klass, "db=", _wrap_MYSQL_FIELD_db_set, -1); rb_define_method(cMYSQL_FIELD.klass, "db", _wrap_MYSQL_FIELD_db_get, -1); rb_define_method(cMYSQL_FIELD.klass, "catalog=", _wrap_MYSQL_FIELD_catalog_set, -1); rb_define_method(cMYSQL_FIELD.klass, "catalog", _wrap_MYSQL_FIELD_catalog_get, -1); rb_define_method(cMYSQL_FIELD.klass, "def=", _wrap_MYSQL_FIELD_def_set, -1); rb_define_method(cMYSQL_FIELD.klass, "def", _wrap_MYSQL_FIELD_def_get, -1); rb_define_method(cMYSQL_FIELD.klass, "length=", _wrap_MYSQL_FIELD_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "length", _wrap_MYSQL_FIELD_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "max_length=", _wrap_MYSQL_FIELD_max_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "max_length", _wrap_MYSQL_FIELD_max_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "name_length=", _wrap_MYSQL_FIELD_name_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "name_length", _wrap_MYSQL_FIELD_name_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "org_name_length=", _wrap_MYSQL_FIELD_org_name_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "org_name_length", _wrap_MYSQL_FIELD_org_name_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "table_length=", _wrap_MYSQL_FIELD_table_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "table_length", _wrap_MYSQL_FIELD_table_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "org_table_length=", _wrap_MYSQL_FIELD_org_table_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "org_table_length", _wrap_MYSQL_FIELD_org_table_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "db_length=", _wrap_MYSQL_FIELD_db_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "db_length", _wrap_MYSQL_FIELD_db_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "catalog_length=", _wrap_MYSQL_FIELD_catalog_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "catalog_length", _wrap_MYSQL_FIELD_catalog_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "def_length=", _wrap_MYSQL_FIELD_def_length_set, -1); rb_define_method(cMYSQL_FIELD.klass, "def_length", _wrap_MYSQL_FIELD_def_length_get, -1); rb_define_method(cMYSQL_FIELD.klass, "flags=", _wrap_MYSQL_FIELD_flags_set, -1); rb_define_method(cMYSQL_FIELD.klass, "flags", _wrap_MYSQL_FIELD_flags_get, -1); rb_define_method(cMYSQL_FIELD.klass, "decimals=", _wrap_MYSQL_FIELD_decimals_set, -1); rb_define_method(cMYSQL_FIELD.klass, "decimals", _wrap_MYSQL_FIELD_decimals_get, -1); rb_define_method(cMYSQL_FIELD.klass, "charsetnr=", _wrap_MYSQL_FIELD_charsetnr_set, -1); rb_define_method(cMYSQL_FIELD.klass, "charsetnr", _wrap_MYSQL_FIELD_charsetnr_get, -1); rb_define_method(cMYSQL_FIELD.klass, "type=", _wrap_MYSQL_FIELD_type_set, -1); rb_define_method(cMYSQL_FIELD.klass, "type", _wrap_MYSQL_FIELD_type_get, -1); cMYSQL_FIELD.mark = 0; cMYSQL_FIELD.destroy = (void (*)(void *)) free_MYSQL_FIELD; cMYSQL_FIELD.trackObjects = 0; cMYSQL_ROWS.klass = rb_define_class_under(mMysql_c, "MYSQL_ROWS", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_rows, (void *) &cMYSQL_ROWS); rb_define_alloc_func(cMYSQL_ROWS.klass, _wrap_MYSQL_ROWS_allocate); rb_define_method(cMYSQL_ROWS.klass, "initialize", _wrap_new_MYSQL_ROWS, -1); rb_define_method(cMYSQL_ROWS.klass, "next=", _wrap_MYSQL_ROWS_next_set, -1); rb_define_method(cMYSQL_ROWS.klass, "next", _wrap_MYSQL_ROWS_next_get, -1); rb_define_method(cMYSQL_ROWS.klass, "data=", _wrap_MYSQL_ROWS_data_set, -1); rb_define_method(cMYSQL_ROWS.klass, "data", _wrap_MYSQL_ROWS_data_get, -1); rb_define_method(cMYSQL_ROWS.klass, "length=", _wrap_MYSQL_ROWS_length_set, -1); rb_define_method(cMYSQL_ROWS.klass, "length", _wrap_MYSQL_ROWS_length_get, -1); cMYSQL_ROWS.mark = 0; cMYSQL_ROWS.destroy = (void (*)(void *)) free_MYSQL_ROWS; cMYSQL_ROWS.trackObjects = 0; cMYSQL_DATA.klass = rb_define_class_under(mMysql_c, "MYSQL_DATA", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_data, (void *) &cMYSQL_DATA); rb_define_alloc_func(cMYSQL_DATA.klass, _wrap_MYSQL_DATA_allocate); rb_define_method(cMYSQL_DATA.klass, "initialize", _wrap_new_MYSQL_DATA, -1); rb_define_method(cMYSQL_DATA.klass, "rows=", _wrap_MYSQL_DATA_rows_set, -1); rb_define_method(cMYSQL_DATA.klass, "rows", _wrap_MYSQL_DATA_rows_get, -1); rb_define_method(cMYSQL_DATA.klass, "fields=", _wrap_MYSQL_DATA_fields_set, -1); rb_define_method(cMYSQL_DATA.klass, "fields", _wrap_MYSQL_DATA_fields_get, -1); rb_define_method(cMYSQL_DATA.klass, "data=", _wrap_MYSQL_DATA_data_set, -1); rb_define_method(cMYSQL_DATA.klass, "data", _wrap_MYSQL_DATA_data_get, -1); rb_define_method(cMYSQL_DATA.klass, "alloc=", _wrap_MYSQL_DATA_alloc_set, -1); rb_define_method(cMYSQL_DATA.klass, "alloc", _wrap_MYSQL_DATA_alloc_get, -1); rb_define_method(cMYSQL_DATA.klass, "embedded_info=", _wrap_MYSQL_DATA_embedded_info_set, -1); rb_define_method(cMYSQL_DATA.klass, "embedded_info", _wrap_MYSQL_DATA_embedded_info_get, -1); cMYSQL_DATA.mark = 0; cMYSQL_DATA.destroy = (void (*)(void *)) free_MYSQL_DATA; cMYSQL_DATA.trackObjects = 0; rb_define_const(mMysql_c, "MYSQL_OPT_CONNECT_TIMEOUT", SWIG_From_int((int)(MYSQL_OPT_CONNECT_TIMEOUT))); rb_define_const(mMysql_c, "MYSQL_OPT_COMPRESS", SWIG_From_int((int)(MYSQL_OPT_COMPRESS))); rb_define_const(mMysql_c, "MYSQL_OPT_NAMED_PIPE", SWIG_From_int((int)(MYSQL_OPT_NAMED_PIPE))); rb_define_const(mMysql_c, "MYSQL_INIT_COMMAND", SWIG_From_int((int)(MYSQL_INIT_COMMAND))); rb_define_const(mMysql_c, "MYSQL_READ_DEFAULT_FILE", SWIG_From_int((int)(MYSQL_READ_DEFAULT_FILE))); rb_define_const(mMysql_c, "MYSQL_READ_DEFAULT_GROUP", SWIG_From_int((int)(MYSQL_READ_DEFAULT_GROUP))); rb_define_const(mMysql_c, "MYSQL_SET_CHARSET_DIR", SWIG_From_int((int)(MYSQL_SET_CHARSET_DIR))); rb_define_const(mMysql_c, "MYSQL_SET_CHARSET_NAME", SWIG_From_int((int)(MYSQL_SET_CHARSET_NAME))); rb_define_const(mMysql_c, "MYSQL_OPT_LOCAL_INFILE", SWIG_From_int((int)(MYSQL_OPT_LOCAL_INFILE))); rb_define_const(mMysql_c, "MYSQL_OPT_PROTOCOL", SWIG_From_int((int)(MYSQL_OPT_PROTOCOL))); rb_define_const(mMysql_c, "MYSQL_SHARED_MEMORY_BASE_NAME", SWIG_From_int((int)(MYSQL_SHARED_MEMORY_BASE_NAME))); rb_define_const(mMysql_c, "MYSQL_OPT_READ_TIMEOUT", SWIG_From_int((int)(MYSQL_OPT_READ_TIMEOUT))); rb_define_const(mMysql_c, "MYSQL_OPT_WRITE_TIMEOUT", SWIG_From_int((int)(MYSQL_OPT_WRITE_TIMEOUT))); rb_define_const(mMysql_c, "MYSQL_OPT_USE_RESULT", SWIG_From_int((int)(MYSQL_OPT_USE_RESULT))); rb_define_const(mMysql_c, "MYSQL_OPT_USE_REMOTE_CONNECTION", SWIG_From_int((int)(MYSQL_OPT_USE_REMOTE_CONNECTION))); rb_define_const(mMysql_c, "MYSQL_OPT_USE_EMBEDDED_CONNECTION", SWIG_From_int((int)(MYSQL_OPT_USE_EMBEDDED_CONNECTION))); rb_define_const(mMysql_c, "MYSQL_OPT_GUESS_CONNECTION", SWIG_From_int((int)(MYSQL_OPT_GUESS_CONNECTION))); rb_define_const(mMysql_c, "MYSQL_SET_CLIENT_IP", SWIG_From_int((int)(MYSQL_SET_CLIENT_IP))); rb_define_const(mMysql_c, "MYSQL_SECURE_AUTH", SWIG_From_int((int)(MYSQL_SECURE_AUTH))); rb_define_const(mMysql_c, "MYSQL_REPORT_DATA_TRUNCATION", SWIG_From_int((int)(MYSQL_REPORT_DATA_TRUNCATION))); rb_define_const(mMysql_c, "MYSQL_OPT_RECONNECT", SWIG_From_int((int)(MYSQL_OPT_RECONNECT))); rb_define_const(mMysql_c, "MYSQL_OPT_SSL_VERIFY_SERVER_CERT", SWIG_From_int((int)(MYSQL_OPT_SSL_VERIFY_SERVER_CERT))); rb_define_const(mMysql_c, "MYSQL_STATUS_READY", SWIG_From_int((int)(MYSQL_STATUS_READY))); rb_define_const(mMysql_c, "MYSQL_STATUS_GET_RESULT", SWIG_From_int((int)(MYSQL_STATUS_GET_RESULT))); rb_define_const(mMysql_c, "MYSQL_STATUS_USE_RESULT", SWIG_From_int((int)(MYSQL_STATUS_USE_RESULT))); rb_define_const(mMysql_c, "MYSQL_PROTOCOL_DEFAULT", SWIG_From_int((int)(MYSQL_PROTOCOL_DEFAULT))); rb_define_const(mMysql_c, "MYSQL_PROTOCOL_TCP", SWIG_From_int((int)(MYSQL_PROTOCOL_TCP))); rb_define_const(mMysql_c, "MYSQL_PROTOCOL_SOCKET", SWIG_From_int((int)(MYSQL_PROTOCOL_SOCKET))); rb_define_const(mMysql_c, "MYSQL_PROTOCOL_PIPE", SWIG_From_int((int)(MYSQL_PROTOCOL_PIPE))); rb_define_const(mMysql_c, "MYSQL_PROTOCOL_MEMORY", SWIG_From_int((int)(MYSQL_PROTOCOL_MEMORY))); rb_define_const(mMysql_c, "MYSQL_RPL_MASTER", SWIG_From_int((int)(MYSQL_RPL_MASTER))); rb_define_const(mMysql_c, "MYSQL_RPL_SLAVE", SWIG_From_int((int)(MYSQL_RPL_SLAVE))); rb_define_const(mMysql_c, "MYSQL_RPL_ADMIN", SWIG_From_int((int)(MYSQL_RPL_ADMIN))); cMY_CHARSET_INFO.klass = rb_define_class_under(mMysql_c, "MY_CHARSET_INFO", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_character_set, (void *) &cMY_CHARSET_INFO); rb_define_alloc_func(cMY_CHARSET_INFO.klass, _wrap_MY_CHARSET_INFO_allocate); rb_define_method(cMY_CHARSET_INFO.klass, "initialize", _wrap_new_MY_CHARSET_INFO, -1); rb_define_method(cMY_CHARSET_INFO.klass, "number=", _wrap_MY_CHARSET_INFO_number_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "number", _wrap_MY_CHARSET_INFO_number_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "state=", _wrap_MY_CHARSET_INFO_state_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "state", _wrap_MY_CHARSET_INFO_state_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "csname=", _wrap_MY_CHARSET_INFO_csname_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "csname", _wrap_MY_CHARSET_INFO_csname_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "name=", _wrap_MY_CHARSET_INFO_name_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "name", _wrap_MY_CHARSET_INFO_name_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "comment=", _wrap_MY_CHARSET_INFO_comment_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "comment", _wrap_MY_CHARSET_INFO_comment_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "dir=", _wrap_MY_CHARSET_INFO_dir_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "dir", _wrap_MY_CHARSET_INFO_dir_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "mbminlen=", _wrap_MY_CHARSET_INFO_mbminlen_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "mbminlen", _wrap_MY_CHARSET_INFO_mbminlen_get, -1); rb_define_method(cMY_CHARSET_INFO.klass, "mbmaxlen=", _wrap_MY_CHARSET_INFO_mbmaxlen_set, -1); rb_define_method(cMY_CHARSET_INFO.klass, "mbmaxlen", _wrap_MY_CHARSET_INFO_mbmaxlen_get, -1); cMY_CHARSET_INFO.mark = 0; cMY_CHARSET_INFO.destroy = (void (*)(void *)) free_MY_CHARSET_INFO; cMY_CHARSET_INFO.trackObjects = 0; cMYSQL.klass = rb_define_class_under(mMysql_c, "MYSQL", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql, (void *) &cMYSQL); rb_define_alloc_func(cMYSQL.klass, _wrap_MYSQL_allocate); rb_define_method(cMYSQL.klass, "initialize", _wrap_new_MYSQL, -1); rb_define_method(cMYSQL.klass, "net=", _wrap_MYSQL_net_set, -1); rb_define_method(cMYSQL.klass, "net", _wrap_MYSQL_net_get, -1); rb_define_method(cMYSQL.klass, "connector_fd=", _wrap_MYSQL_connector_fd_set, -1); rb_define_method(cMYSQL.klass, "connector_fd", _wrap_MYSQL_connector_fd_get, -1); rb_define_method(cMYSQL.klass, "host=", _wrap_MYSQL_host_set, -1); rb_define_method(cMYSQL.klass, "host", _wrap_MYSQL_host_get, -1); rb_define_method(cMYSQL.klass, "user=", _wrap_MYSQL_user_set, -1); rb_define_method(cMYSQL.klass, "user", _wrap_MYSQL_user_get, -1); rb_define_method(cMYSQL.klass, "passwd=", _wrap_MYSQL_passwd_set, -1); rb_define_method(cMYSQL.klass, "passwd", _wrap_MYSQL_passwd_get, -1); rb_define_method(cMYSQL.klass, "unix_socket=", _wrap_MYSQL_unix_socket_set, -1); rb_define_method(cMYSQL.klass, "unix_socket", _wrap_MYSQL_unix_socket_get, -1); rb_define_method(cMYSQL.klass, "server_version=", _wrap_MYSQL_server_version_set, -1); rb_define_method(cMYSQL.klass, "server_version", _wrap_MYSQL_server_version_get, -1); rb_define_method(cMYSQL.klass, "host_info=", _wrap_MYSQL_host_info_set, -1); rb_define_method(cMYSQL.klass, "host_info", _wrap_MYSQL_host_info_get, -1); rb_define_method(cMYSQL.klass, "info=", _wrap_MYSQL_info_set, -1); rb_define_method(cMYSQL.klass, "info", _wrap_MYSQL_info_get, -1); rb_define_method(cMYSQL.klass, "db=", _wrap_MYSQL_db_set, -1); rb_define_method(cMYSQL.klass, "db", _wrap_MYSQL_db_get, -1); rb_define_method(cMYSQL.klass, "charset=", _wrap_MYSQL_charset_set, -1); rb_define_method(cMYSQL.klass, "charset", _wrap_MYSQL_charset_get, -1); rb_define_method(cMYSQL.klass, "fields=", _wrap_MYSQL_fields_set, -1); rb_define_method(cMYSQL.klass, "fields", _wrap_MYSQL_fields_get, -1); rb_define_method(cMYSQL.klass, "field_alloc=", _wrap_MYSQL_field_alloc_set, -1); rb_define_method(cMYSQL.klass, "field_alloc", _wrap_MYSQL_field_alloc_get, -1); rb_define_method(cMYSQL.klass, "affected_rows=", _wrap_MYSQL_affected_rows_set, -1); rb_define_method(cMYSQL.klass, "affected_rows", _wrap_MYSQL_affected_rows_get, -1); rb_define_method(cMYSQL.klass, "insert_id=", _wrap_MYSQL_insert_id_set, -1); rb_define_method(cMYSQL.klass, "insert_id", _wrap_MYSQL_insert_id_get, -1); rb_define_method(cMYSQL.klass, "extra_info=", _wrap_MYSQL_extra_info_set, -1); rb_define_method(cMYSQL.klass, "extra_info", _wrap_MYSQL_extra_info_get, -1); rb_define_method(cMYSQL.klass, "thread_id=", _wrap_MYSQL_thread_id_set, -1); rb_define_method(cMYSQL.klass, "thread_id", _wrap_MYSQL_thread_id_get, -1); rb_define_method(cMYSQL.klass, "packet_length=", _wrap_MYSQL_packet_length_set, -1); rb_define_method(cMYSQL.klass, "packet_length", _wrap_MYSQL_packet_length_get, -1); rb_define_method(cMYSQL.klass, "port=", _wrap_MYSQL_port_set, -1); rb_define_method(cMYSQL.klass, "port", _wrap_MYSQL_port_get, -1); rb_define_method(cMYSQL.klass, "client_flag=", _wrap_MYSQL_client_flag_set, -1); rb_define_method(cMYSQL.klass, "client_flag", _wrap_MYSQL_client_flag_get, -1); rb_define_method(cMYSQL.klass, "server_capabilities=", _wrap_MYSQL_server_capabilities_set, -1); rb_define_method(cMYSQL.klass, "server_capabilities", _wrap_MYSQL_server_capabilities_get, -1); rb_define_method(cMYSQL.klass, "protocol_version=", _wrap_MYSQL_protocol_version_set, -1); rb_define_method(cMYSQL.klass, "protocol_version", _wrap_MYSQL_protocol_version_get, -1); rb_define_method(cMYSQL.klass, "field_count=", _wrap_MYSQL_field_count_set, -1); rb_define_method(cMYSQL.klass, "field_count", _wrap_MYSQL_field_count_get, -1); rb_define_method(cMYSQL.klass, "server_status=", _wrap_MYSQL_server_status_set, -1); rb_define_method(cMYSQL.klass, "server_status", _wrap_MYSQL_server_status_get, -1); rb_define_method(cMYSQL.klass, "server_language=", _wrap_MYSQL_server_language_set, -1); rb_define_method(cMYSQL.klass, "server_language", _wrap_MYSQL_server_language_get, -1); rb_define_method(cMYSQL.klass, "warning_count=", _wrap_MYSQL_warning_count_set, -1); rb_define_method(cMYSQL.klass, "warning_count", _wrap_MYSQL_warning_count_get, -1); rb_define_method(cMYSQL.klass, "options=", _wrap_MYSQL_options_set, -1); rb_define_method(cMYSQL.klass, "options", _wrap_MYSQL_options_get, -1); rb_define_method(cMYSQL.klass, "status=", _wrap_MYSQL_status_set, -1); rb_define_method(cMYSQL.klass, "status", _wrap_MYSQL_status_get, -1); rb_define_method(cMYSQL.klass, "free_me=", _wrap_MYSQL_free_me_set, -1); rb_define_method(cMYSQL.klass, "free_me", _wrap_MYSQL_free_me_get, -1); rb_define_method(cMYSQL.klass, "reconnect=", _wrap_MYSQL_reconnect_set, -1); rb_define_method(cMYSQL.klass, "reconnect", _wrap_MYSQL_reconnect_get, -1); rb_define_method(cMYSQL.klass, "scramble=", _wrap_MYSQL_scramble_set, -1); rb_define_method(cMYSQL.klass, "scramble", _wrap_MYSQL_scramble_get, -1); rb_define_method(cMYSQL.klass, "rpl_pivot=", _wrap_MYSQL_rpl_pivot_set, -1); rb_define_method(cMYSQL.klass, "rpl_pivot", _wrap_MYSQL_rpl_pivot_get, -1); rb_define_method(cMYSQL.klass, "master=", _wrap_MYSQL_master_set, -1); rb_define_method(cMYSQL.klass, "master", _wrap_MYSQL_master_get, -1); rb_define_method(cMYSQL.klass, "next_slave=", _wrap_MYSQL_next_slave_set, -1); rb_define_method(cMYSQL.klass, "next_slave", _wrap_MYSQL_next_slave_get, -1); rb_define_method(cMYSQL.klass, "last_used_slave=", _wrap_MYSQL_last_used_slave_set, -1); rb_define_method(cMYSQL.klass, "last_used_slave", _wrap_MYSQL_last_used_slave_get, -1); rb_define_method(cMYSQL.klass, "last_used_con=", _wrap_MYSQL_last_used_con_set, -1); rb_define_method(cMYSQL.klass, "last_used_con", _wrap_MYSQL_last_used_con_get, -1); rb_define_method(cMYSQL.klass, "stmts=", _wrap_MYSQL_stmts_set, -1); rb_define_method(cMYSQL.klass, "stmts", _wrap_MYSQL_stmts_get, -1); rb_define_method(cMYSQL.klass, "methods=", _wrap_MYSQL_methods_set, -1); rb_define_method(cMYSQL.klass, "methods", _wrap_MYSQL_methods_get, -1); rb_define_method(cMYSQL.klass, "thd=", _wrap_MYSQL_thd_set, -1); rb_define_method(cMYSQL.klass, "thd", _wrap_MYSQL_thd_get, -1); rb_define_method(cMYSQL.klass, "unbuffered_fetch_owner=", _wrap_MYSQL_unbuffered_fetch_owner_set, -1); rb_define_method(cMYSQL.klass, "unbuffered_fetch_owner", _wrap_MYSQL_unbuffered_fetch_owner_get, -1); cMYSQL.mark = 0; cMYSQL.destroy = (void (*)(void *)) free_MYSQL; cMYSQL.trackObjects = 0; cMYSQL_RES.klass = rb_define_class_under(mMysql_c, "MYSQL_RES", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_res, (void *) &cMYSQL_RES); rb_define_alloc_func(cMYSQL_RES.klass, _wrap_MYSQL_RES_allocate); rb_define_method(cMYSQL_RES.klass, "initialize", _wrap_new_MYSQL_RES, -1); rb_define_method(cMYSQL_RES.klass, "row_count=", _wrap_MYSQL_RES_row_count_set, -1); rb_define_method(cMYSQL_RES.klass, "row_count", _wrap_MYSQL_RES_row_count_get, -1); rb_define_method(cMYSQL_RES.klass, "fields=", _wrap_MYSQL_RES_fields_set, -1); rb_define_method(cMYSQL_RES.klass, "fields", _wrap_MYSQL_RES_fields_get, -1); rb_define_method(cMYSQL_RES.klass, "data=", _wrap_MYSQL_RES_data_set, -1); rb_define_method(cMYSQL_RES.klass, "data", _wrap_MYSQL_RES_data_get, -1); rb_define_method(cMYSQL_RES.klass, "data_cursor=", _wrap_MYSQL_RES_data_cursor_set, -1); rb_define_method(cMYSQL_RES.klass, "data_cursor", _wrap_MYSQL_RES_data_cursor_get, -1); rb_define_method(cMYSQL_RES.klass, "lengths=", _wrap_MYSQL_RES_lengths_set, -1); rb_define_method(cMYSQL_RES.klass, "lengths", _wrap_MYSQL_RES_lengths_get, -1); rb_define_method(cMYSQL_RES.klass, "handle=", _wrap_MYSQL_RES_handle_set, -1); rb_define_method(cMYSQL_RES.klass, "handle", _wrap_MYSQL_RES_handle_get, -1); rb_define_method(cMYSQL_RES.klass, "field_alloc=", _wrap_MYSQL_RES_field_alloc_set, -1); rb_define_method(cMYSQL_RES.klass, "field_alloc", _wrap_MYSQL_RES_field_alloc_get, -1); rb_define_method(cMYSQL_RES.klass, "field_count=", _wrap_MYSQL_RES_field_count_set, -1); rb_define_method(cMYSQL_RES.klass, "field_count", _wrap_MYSQL_RES_field_count_get, -1); rb_define_method(cMYSQL_RES.klass, "current_field=", _wrap_MYSQL_RES_current_field_set, -1); rb_define_method(cMYSQL_RES.klass, "current_field", _wrap_MYSQL_RES_current_field_get, -1); rb_define_method(cMYSQL_RES.klass, "row=", _wrap_MYSQL_RES_row_set, -1); rb_define_method(cMYSQL_RES.klass, "row", _wrap_MYSQL_RES_row_get, -1); rb_define_method(cMYSQL_RES.klass, "current_row=", _wrap_MYSQL_RES_current_row_set, -1); rb_define_method(cMYSQL_RES.klass, "current_row", _wrap_MYSQL_RES_current_row_get, -1); rb_define_method(cMYSQL_RES.klass, "eof=", _wrap_MYSQL_RES_eof_set, -1); rb_define_method(cMYSQL_RES.klass, "eof", _wrap_MYSQL_RES_eof_get, -1); rb_define_method(cMYSQL_RES.klass, "unbuffered_fetch_cancelled=", _wrap_MYSQL_RES_unbuffered_fetch_cancelled_set, -1); rb_define_method(cMYSQL_RES.klass, "unbuffered_fetch_cancelled", _wrap_MYSQL_RES_unbuffered_fetch_cancelled_get, -1); rb_define_method(cMYSQL_RES.klass, "methods=", _wrap_MYSQL_RES_methods_set, -1); rb_define_method(cMYSQL_RES.klass, "methods", _wrap_MYSQL_RES_methods_get, -1); cMYSQL_RES.mark = 0; cMYSQL_RES.destroy = (void (*)(void *)) free_MYSQL_RES; cMYSQL_RES.trackObjects = 0; rb_define_const(mMysql_c, "MAX_MYSQL_MANAGER_ERR", SWIG_From_int((int)(256))); rb_define_const(mMysql_c, "MAX_MYSQL_MANAGER_MSG", SWIG_From_int((int)(256))); rb_define_const(mMysql_c, "MANAGER_OK", SWIG_From_int((int)(200))); rb_define_const(mMysql_c, "MANAGER_INFO", SWIG_From_int((int)(250))); rb_define_const(mMysql_c, "MANAGER_ACCESS", SWIG_From_int((int)(401))); rb_define_const(mMysql_c, "MANAGER_CLIENT_ERR", SWIG_From_int((int)(450))); rb_define_const(mMysql_c, "MANAGER_INTERNAL_ERR", SWIG_From_int((int)(500))); cMYSQL_MANAGER.klass = rb_define_class_under(mMysql_c, "MYSQL_MANAGER", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_manager, (void *) &cMYSQL_MANAGER); rb_define_alloc_func(cMYSQL_MANAGER.klass, _wrap_MYSQL_MANAGER_allocate); rb_define_method(cMYSQL_MANAGER.klass, "initialize", _wrap_new_MYSQL_MANAGER, -1); rb_define_method(cMYSQL_MANAGER.klass, "net=", _wrap_MYSQL_MANAGER_net_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "net", _wrap_MYSQL_MANAGER_net_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "host=", _wrap_MYSQL_MANAGER_host_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "host", _wrap_MYSQL_MANAGER_host_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "user=", _wrap_MYSQL_MANAGER_user_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "user", _wrap_MYSQL_MANAGER_user_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "passwd=", _wrap_MYSQL_MANAGER_passwd_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "passwd", _wrap_MYSQL_MANAGER_passwd_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "port=", _wrap_MYSQL_MANAGER_port_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "port", _wrap_MYSQL_MANAGER_port_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "free_me=", _wrap_MYSQL_MANAGER_free_me_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "free_me", _wrap_MYSQL_MANAGER_free_me_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "eof=", _wrap_MYSQL_MANAGER_eof_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "eof", _wrap_MYSQL_MANAGER_eof_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "cmd_status=", _wrap_MYSQL_MANAGER_cmd_status_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "cmd_status", _wrap_MYSQL_MANAGER_cmd_status_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "last_errno=", _wrap_MYSQL_MANAGER_last_errno_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "last_errno", _wrap_MYSQL_MANAGER_last_errno_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf=", _wrap_MYSQL_MANAGER_net_buf_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf", _wrap_MYSQL_MANAGER_net_buf_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf_pos=", _wrap_MYSQL_MANAGER_net_buf_pos_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf_pos", _wrap_MYSQL_MANAGER_net_buf_pos_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_data_end=", _wrap_MYSQL_MANAGER_net_data_end_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_data_end", _wrap_MYSQL_MANAGER_net_data_end_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf_size=", _wrap_MYSQL_MANAGER_net_buf_size_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "net_buf_size", _wrap_MYSQL_MANAGER_net_buf_size_get, -1); rb_define_method(cMYSQL_MANAGER.klass, "last_error=", _wrap_MYSQL_MANAGER_last_error_set, -1); rb_define_method(cMYSQL_MANAGER.klass, "last_error", _wrap_MYSQL_MANAGER_last_error_get, -1); cMYSQL_MANAGER.mark = 0; cMYSQL_MANAGER.destroy = (void (*)(void *)) free_MYSQL_MANAGER; cMYSQL_MANAGER.trackObjects = 0; cMYSQL_PARAMETERS.klass = rb_define_class_under(mMysql_c, "MYSQL_PARAMETERS", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_parameters, (void *) &cMYSQL_PARAMETERS); rb_define_alloc_func(cMYSQL_PARAMETERS.klass, _wrap_MYSQL_PARAMETERS_allocate); rb_define_method(cMYSQL_PARAMETERS.klass, "initialize", _wrap_new_MYSQL_PARAMETERS, -1); rb_define_method(cMYSQL_PARAMETERS.klass, "p_max_allowed_packet=", _wrap_MYSQL_PARAMETERS_p_max_allowed_packet_set, -1); rb_define_method(cMYSQL_PARAMETERS.klass, "p_max_allowed_packet", _wrap_MYSQL_PARAMETERS_p_max_allowed_packet_get, -1); rb_define_method(cMYSQL_PARAMETERS.klass, "p_net_buffer_length=", _wrap_MYSQL_PARAMETERS_p_net_buffer_length_set, -1); rb_define_method(cMYSQL_PARAMETERS.klass, "p_net_buffer_length", _wrap_MYSQL_PARAMETERS_p_net_buffer_length_get, -1); cMYSQL_PARAMETERS.mark = 0; cMYSQL_PARAMETERS.destroy = (void (*)(void *)) free_MYSQL_PARAMETERS; cMYSQL_PARAMETERS.trackObjects = 0; rb_define_module_function(mMysql_c, "mysql_server_init", _wrap_mysql_server_init, -1); rb_define_module_function(mMysql_c, "mysql_server_end", _wrap_mysql_server_end, -1); rb_define_module_function(mMysql_c, "mysql_get_parameters", _wrap_mysql_get_parameters, -1); rb_define_module_function(mMysql_c, "mysql_thread_init", _wrap_mysql_thread_init, -1); rb_define_module_function(mMysql_c, "mysql_thread_end", _wrap_mysql_thread_end, -1); rb_define_module_function(mMysql_c, "mysql_num_rows", _wrap_mysql_num_rows, -1); rb_define_module_function(mMysql_c, "mysql_num_fields", _wrap_mysql_num_fields, -1); rb_define_module_function(mMysql_c, "mysql_eof", _wrap_mysql_eof, -1); rb_define_module_function(mMysql_c, "mysql_fetch_field_direct", _wrap_mysql_fetch_field_direct, -1); rb_define_module_function(mMysql_c, "mysql_fetch_fields", _wrap_mysql_fetch_fields, -1); rb_define_module_function(mMysql_c, "mysql_row_tell", _wrap_mysql_row_tell, -1); rb_define_module_function(mMysql_c, "mysql_field_tell", _wrap_mysql_field_tell, -1); rb_define_module_function(mMysql_c, "mysql_field_count", _wrap_mysql_field_count, -1); rb_define_module_function(mMysql_c, "mysql_affected_rows", _wrap_mysql_affected_rows, -1); rb_define_module_function(mMysql_c, "mysql_insert_id", _wrap_mysql_insert_id, -1); rb_define_module_function(mMysql_c, "mysql_errno", _wrap_mysql_errno, -1); rb_define_module_function(mMysql_c, "mysql_error", _wrap_mysql_error, -1); rb_define_module_function(mMysql_c, "mysql_sqlstate", _wrap_mysql_sqlstate, -1); rb_define_module_function(mMysql_c, "mysql_warning_count", _wrap_mysql_warning_count, -1); rb_define_module_function(mMysql_c, "mysql_info", _wrap_mysql_info, -1); rb_define_module_function(mMysql_c, "mysql_thread_id", _wrap_mysql_thread_id, -1); rb_define_module_function(mMysql_c, "mysql_character_set_name", _wrap_mysql_character_set_name, -1); rb_define_module_function(mMysql_c, "mysql_set_character_set", _wrap_mysql_set_character_set, -1); rb_define_module_function(mMysql_c, "mysql_init", _wrap_mysql_init, -1); rb_define_module_function(mMysql_c, "mysql_ssl_set", _wrap_mysql_ssl_set, -1); rb_define_module_function(mMysql_c, "mysql_get_ssl_cipher", _wrap_mysql_get_ssl_cipher, -1); rb_define_module_function(mMysql_c, "mysql_change_user", _wrap_mysql_change_user, -1); rb_define_module_function(mMysql_c, "mysql_real_connect", _wrap_mysql_real_connect, -1); rb_define_module_function(mMysql_c, "mysql_select_db", _wrap_mysql_select_db, -1); rb_define_module_function(mMysql_c, "mysql_query", _wrap_mysql_query, -1); rb_define_module_function(mMysql_c, "mysql_send_query", _wrap_mysql_send_query, -1); rb_define_module_function(mMysql_c, "mysql_real_query", _wrap_mysql_real_query, -1); rb_define_module_function(mMysql_c, "mysql_store_result", _wrap_mysql_store_result, -1); rb_define_module_function(mMysql_c, "mysql_use_result", _wrap_mysql_use_result, -1); rb_define_module_function(mMysql_c, "mysql_master_query", _wrap_mysql_master_query, -1); rb_define_module_function(mMysql_c, "mysql_master_send_query", _wrap_mysql_master_send_query, -1); rb_define_module_function(mMysql_c, "mysql_slave_query", _wrap_mysql_slave_query, -1); rb_define_module_function(mMysql_c, "mysql_slave_send_query", _wrap_mysql_slave_send_query, -1); rb_define_module_function(mMysql_c, "mysql_get_character_set_info", _wrap_mysql_get_character_set_info, -1); rb_define_const(mMysql_c, "LOCAL_INFILE_ERROR_LEN", SWIG_From_int((int)(512))); rb_define_module_function(mMysql_c, "mysql_set_local_infile_handler", _wrap_mysql_set_local_infile_handler, -1); rb_define_module_function(mMysql_c, "mysql_set_local_infile_default", _wrap_mysql_set_local_infile_default, -1); rb_define_module_function(mMysql_c, "mysql_enable_rpl_parse", _wrap_mysql_enable_rpl_parse, -1); rb_define_module_function(mMysql_c, "mysql_disable_rpl_parse", _wrap_mysql_disable_rpl_parse, -1); rb_define_module_function(mMysql_c, "mysql_rpl_parse_enabled", _wrap_mysql_rpl_parse_enabled, -1); rb_define_module_function(mMysql_c, "mysql_enable_reads_from_master", _wrap_mysql_enable_reads_from_master, -1); rb_define_module_function(mMysql_c, "mysql_disable_reads_from_master", _wrap_mysql_disable_reads_from_master, -1); rb_define_module_function(mMysql_c, "mysql_reads_from_master_enabled", _wrap_mysql_reads_from_master_enabled, -1); rb_define_module_function(mMysql_c, "mysql_rpl_query_type", _wrap_mysql_rpl_query_type, -1); rb_define_module_function(mMysql_c, "mysql_rpl_probe", _wrap_mysql_rpl_probe, -1); rb_define_module_function(mMysql_c, "mysql_set_master", _wrap_mysql_set_master, -1); rb_define_module_function(mMysql_c, "mysql_add_slave", _wrap_mysql_add_slave, -1); rb_define_module_function(mMysql_c, "mysql_shutdown", _wrap_mysql_shutdown, -1); rb_define_module_function(mMysql_c, "mysql_dump_debug_info", _wrap_mysql_dump_debug_info, -1); rb_define_module_function(mMysql_c, "mysql_refresh", _wrap_mysql_refresh, -1); rb_define_module_function(mMysql_c, "mysql_kill", _wrap_mysql_kill, -1); rb_define_module_function(mMysql_c, "mysql_set_server_option", _wrap_mysql_set_server_option, -1); rb_define_module_function(mMysql_c, "mysql_ping", _wrap_mysql_ping, -1); rb_define_module_function(mMysql_c, "mysql_stat", _wrap_mysql_stat, -1); rb_define_module_function(mMysql_c, "mysql_get_server_info", _wrap_mysql_get_server_info, -1); rb_define_module_function(mMysql_c, "mysql_get_client_info", _wrap_mysql_get_client_info, -1); rb_define_module_function(mMysql_c, "mysql_get_client_version", _wrap_mysql_get_client_version, -1); rb_define_module_function(mMysql_c, "mysql_get_host_info", _wrap_mysql_get_host_info, -1); rb_define_module_function(mMysql_c, "mysql_get_server_version", _wrap_mysql_get_server_version, -1); rb_define_module_function(mMysql_c, "mysql_get_proto_info", _wrap_mysql_get_proto_info, -1); rb_define_module_function(mMysql_c, "mysql_list_dbs", _wrap_mysql_list_dbs, -1); rb_define_module_function(mMysql_c, "mysql_list_tables", _wrap_mysql_list_tables, -1); rb_define_module_function(mMysql_c, "mysql_list_processes", _wrap_mysql_list_processes, -1); rb_define_module_function(mMysql_c, "mysql_options", _wrap_mysql_options, -1); rb_define_module_function(mMysql_c, "mysql_free_result", _wrap_mysql_free_result, -1); rb_define_module_function(mMysql_c, "mysql_data_seek", _wrap_mysql_data_seek, -1); rb_define_module_function(mMysql_c, "mysql_row_seek", _wrap_mysql_row_seek, -1); rb_define_module_function(mMysql_c, "mysql_field_seek", _wrap_mysql_field_seek, -1); rb_define_module_function(mMysql_c, "mysql_fetch_row", _wrap_mysql_fetch_row, -1); rb_define_module_function(mMysql_c, "mysql_fetch_lengths", _wrap_mysql_fetch_lengths, -1); rb_define_module_function(mMysql_c, "mysql_fetch_field", _wrap_mysql_fetch_field, -1); rb_define_module_function(mMysql_c, "mysql_list_fields", _wrap_mysql_list_fields, -1); rb_define_module_function(mMysql_c, "mysql_escape_string", _wrap_mysql_escape_string, -1); rb_define_module_function(mMysql_c, "mysql_hex_string", _wrap_mysql_hex_string, -1); rb_define_module_function(mMysql_c, "mysql_real_escape_string", _wrap_mysql_real_escape_string, -1); rb_define_module_function(mMysql_c, "mysql_debug", _wrap_mysql_debug, -1); rb_define_module_function(mMysql_c, "mysql_odbc_escape_string", _wrap_mysql_odbc_escape_string, -1); rb_define_module_function(mMysql_c, "myodbc_remove_escape", _wrap_myodbc_remove_escape, -1); rb_define_module_function(mMysql_c, "mysql_thread_safe", _wrap_mysql_thread_safe, -1); rb_define_module_function(mMysql_c, "mysql_embedded", _wrap_mysql_embedded, -1); rb_define_module_function(mMysql_c, "mysql_manager_init", _wrap_mysql_manager_init, -1); rb_define_module_function(mMysql_c, "mysql_manager_connect", _wrap_mysql_manager_connect, -1); rb_define_module_function(mMysql_c, "mysql_manager_close", _wrap_mysql_manager_close, -1); rb_define_module_function(mMysql_c, "mysql_manager_command", _wrap_mysql_manager_command, -1); rb_define_module_function(mMysql_c, "mysql_manager_fetch_line", _wrap_mysql_manager_fetch_line, -1); rb_define_module_function(mMysql_c, "mysql_read_query_result", _wrap_mysql_read_query_result, -1); rb_define_const(mMysql_c, "MYSQL_STMT_INIT_DONE", SWIG_From_int((int)(MYSQL_STMT_INIT_DONE))); rb_define_const(mMysql_c, "MYSQL_STMT_PREPARE_DONE", SWIG_From_int((int)(MYSQL_STMT_PREPARE_DONE))); rb_define_const(mMysql_c, "MYSQL_STMT_EXECUTE_DONE", SWIG_From_int((int)(MYSQL_STMT_EXECUTE_DONE))); rb_define_const(mMysql_c, "MYSQL_STMT_FETCH_DONE", SWIG_From_int((int)(MYSQL_STMT_FETCH_DONE))); cMYSQL_BIND.klass = rb_define_class_under(mMysql_c, "MYSQL_BIND", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_bind, (void *) &cMYSQL_BIND); rb_define_alloc_func(cMYSQL_BIND.klass, _wrap_MYSQL_BIND_allocate); rb_define_method(cMYSQL_BIND.klass, "initialize", _wrap_new_MYSQL_BIND, -1); rb_define_method(cMYSQL_BIND.klass, "length=", _wrap_MYSQL_BIND_length_set, -1); rb_define_method(cMYSQL_BIND.klass, "length", _wrap_MYSQL_BIND_length_get, -1); rb_define_method(cMYSQL_BIND.klass, "is_null=", _wrap_MYSQL_BIND_is_null_set, -1); rb_define_method(cMYSQL_BIND.klass, "is_null", _wrap_MYSQL_BIND_is_null_get, -1); rb_define_method(cMYSQL_BIND.klass, "buffer=", _wrap_MYSQL_BIND_buffer_set, -1); rb_define_method(cMYSQL_BIND.klass, "buffer", _wrap_MYSQL_BIND_buffer_get, -1); rb_define_method(cMYSQL_BIND.klass, "error=", _wrap_MYSQL_BIND_error_set, -1); rb_define_method(cMYSQL_BIND.klass, "error", _wrap_MYSQL_BIND_error_get, -1); rb_define_method(cMYSQL_BIND.klass, "buffer_type=", _wrap_MYSQL_BIND_buffer_type_set, -1); rb_define_method(cMYSQL_BIND.klass, "buffer_type", _wrap_MYSQL_BIND_buffer_type_get, -1); rb_define_method(cMYSQL_BIND.klass, "buffer_length=", _wrap_MYSQL_BIND_buffer_length_set, -1); rb_define_method(cMYSQL_BIND.klass, "buffer_length", _wrap_MYSQL_BIND_buffer_length_get, -1); rb_define_method(cMYSQL_BIND.klass, "row_ptr=", _wrap_MYSQL_BIND_row_ptr_set, -1); rb_define_method(cMYSQL_BIND.klass, "row_ptr", _wrap_MYSQL_BIND_row_ptr_get, -1); rb_define_method(cMYSQL_BIND.klass, "offset=", _wrap_MYSQL_BIND_offset_set, -1); rb_define_method(cMYSQL_BIND.klass, "offset", _wrap_MYSQL_BIND_offset_get, -1); rb_define_method(cMYSQL_BIND.klass, "length_value=", _wrap_MYSQL_BIND_length_value_set, -1); rb_define_method(cMYSQL_BIND.klass, "length_value", _wrap_MYSQL_BIND_length_value_get, -1); rb_define_method(cMYSQL_BIND.klass, "param_number=", _wrap_MYSQL_BIND_param_number_set, -1); rb_define_method(cMYSQL_BIND.klass, "param_number", _wrap_MYSQL_BIND_param_number_get, -1); rb_define_method(cMYSQL_BIND.klass, "pack_length=", _wrap_MYSQL_BIND_pack_length_set, -1); rb_define_method(cMYSQL_BIND.klass, "pack_length", _wrap_MYSQL_BIND_pack_length_get, -1); rb_define_method(cMYSQL_BIND.klass, "error_value=", _wrap_MYSQL_BIND_error_value_set, -1); rb_define_method(cMYSQL_BIND.klass, "error_value", _wrap_MYSQL_BIND_error_value_get, -1); rb_define_method(cMYSQL_BIND.klass, "is_unsigned=", _wrap_MYSQL_BIND_is_unsigned_set, -1); rb_define_method(cMYSQL_BIND.klass, "is_unsigned", _wrap_MYSQL_BIND_is_unsigned_get, -1); rb_define_method(cMYSQL_BIND.klass, "long_data_used=", _wrap_MYSQL_BIND_long_data_used_set, -1); rb_define_method(cMYSQL_BIND.klass, "long_data_used", _wrap_MYSQL_BIND_long_data_used_get, -1); rb_define_method(cMYSQL_BIND.klass, "is_null_value=", _wrap_MYSQL_BIND_is_null_value_set, -1); rb_define_method(cMYSQL_BIND.klass, "is_null_value", _wrap_MYSQL_BIND_is_null_value_get, -1); rb_define_method(cMYSQL_BIND.klass, "store_param_func=", _wrap_MYSQL_BIND_store_param_func_set, -1); rb_define_method(cMYSQL_BIND.klass, "store_param_func", _wrap_MYSQL_BIND_store_param_func_get, -1); rb_define_method(cMYSQL_BIND.klass, "fetch_result=", _wrap_MYSQL_BIND_fetch_result_set, -1); rb_define_method(cMYSQL_BIND.klass, "fetch_result", _wrap_MYSQL_BIND_fetch_result_get, -1); rb_define_method(cMYSQL_BIND.klass, "skip_result=", _wrap_MYSQL_BIND_skip_result_set, -1); rb_define_method(cMYSQL_BIND.klass, "skip_result", _wrap_MYSQL_BIND_skip_result_get, -1); cMYSQL_BIND.mark = 0; cMYSQL_BIND.destroy = (void (*)(void *)) free_MYSQL_BIND; cMYSQL_BIND.trackObjects = 0; cMYSQL_STMT.klass = rb_define_class_under(mMysql_c, "MYSQL_STMT", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_stmt, (void *) &cMYSQL_STMT); rb_define_alloc_func(cMYSQL_STMT.klass, _wrap_MYSQL_STMT_allocate); rb_define_method(cMYSQL_STMT.klass, "initialize", _wrap_new_MYSQL_STMT, -1); rb_define_method(cMYSQL_STMT.klass, "mem_root=", _wrap_MYSQL_STMT_mem_root_set, -1); rb_define_method(cMYSQL_STMT.klass, "mem_root", _wrap_MYSQL_STMT_mem_root_get, -1); rb_define_method(cMYSQL_STMT.klass, "list=", _wrap_MYSQL_STMT_list_set, -1); rb_define_method(cMYSQL_STMT.klass, "list", _wrap_MYSQL_STMT_list_get, -1); rb_define_method(cMYSQL_STMT.klass, "mysql=", _wrap_MYSQL_STMT_mysql_set, -1); rb_define_method(cMYSQL_STMT.klass, "mysql", _wrap_MYSQL_STMT_mysql_get, -1); rb_define_method(cMYSQL_STMT.klass, "params=", _wrap_MYSQL_STMT_params_set, -1); rb_define_method(cMYSQL_STMT.klass, "params", _wrap_MYSQL_STMT_params_get, -1); rb_define_method(cMYSQL_STMT.klass, "bind=", _wrap_MYSQL_STMT_bind_set, -1); rb_define_method(cMYSQL_STMT.klass, "bind", _wrap_MYSQL_STMT_bind_get, -1); rb_define_method(cMYSQL_STMT.klass, "fields=", _wrap_MYSQL_STMT_fields_set, -1); rb_define_method(cMYSQL_STMT.klass, "fields", _wrap_MYSQL_STMT_fields_get, -1); rb_define_method(cMYSQL_STMT.klass, "result=", _wrap_MYSQL_STMT_result_set, -1); rb_define_method(cMYSQL_STMT.klass, "result", _wrap_MYSQL_STMT_result_get, -1); rb_define_method(cMYSQL_STMT.klass, "data_cursor=", _wrap_MYSQL_STMT_data_cursor_set, -1); rb_define_method(cMYSQL_STMT.klass, "data_cursor", _wrap_MYSQL_STMT_data_cursor_get, -1); rb_define_method(cMYSQL_STMT.klass, "affected_rows=", _wrap_MYSQL_STMT_affected_rows_set, -1); rb_define_method(cMYSQL_STMT.klass, "affected_rows", _wrap_MYSQL_STMT_affected_rows_get, -1); rb_define_method(cMYSQL_STMT.klass, "insert_id=", _wrap_MYSQL_STMT_insert_id_set, -1); rb_define_method(cMYSQL_STMT.klass, "insert_id", _wrap_MYSQL_STMT_insert_id_get, -1); rb_define_method(cMYSQL_STMT.klass, "read_row_func=", _wrap_MYSQL_STMT_read_row_func_set, -1); rb_define_method(cMYSQL_STMT.klass, "read_row_func", _wrap_MYSQL_STMT_read_row_func_get, -1); rb_define_method(cMYSQL_STMT.klass, "stmt_id=", _wrap_MYSQL_STMT_stmt_id_set, -1); rb_define_method(cMYSQL_STMT.klass, "stmt_id", _wrap_MYSQL_STMT_stmt_id_get, -1); rb_define_method(cMYSQL_STMT.klass, "flags=", _wrap_MYSQL_STMT_flags_set, -1); rb_define_method(cMYSQL_STMT.klass, "flags", _wrap_MYSQL_STMT_flags_get, -1); rb_define_method(cMYSQL_STMT.klass, "prefetch_rows=", _wrap_MYSQL_STMT_prefetch_rows_set, -1); rb_define_method(cMYSQL_STMT.klass, "prefetch_rows", _wrap_MYSQL_STMT_prefetch_rows_get, -1); rb_define_method(cMYSQL_STMT.klass, "server_status=", _wrap_MYSQL_STMT_server_status_set, -1); rb_define_method(cMYSQL_STMT.klass, "server_status", _wrap_MYSQL_STMT_server_status_get, -1); rb_define_method(cMYSQL_STMT.klass, "last_errno=", _wrap_MYSQL_STMT_last_errno_set, -1); rb_define_method(cMYSQL_STMT.klass, "last_errno", _wrap_MYSQL_STMT_last_errno_get, -1); rb_define_method(cMYSQL_STMT.klass, "param_count=", _wrap_MYSQL_STMT_param_count_set, -1); rb_define_method(cMYSQL_STMT.klass, "param_count", _wrap_MYSQL_STMT_param_count_get, -1); rb_define_method(cMYSQL_STMT.klass, "field_count=", _wrap_MYSQL_STMT_field_count_set, -1); rb_define_method(cMYSQL_STMT.klass, "field_count", _wrap_MYSQL_STMT_field_count_get, -1); rb_define_method(cMYSQL_STMT.klass, "state=", _wrap_MYSQL_STMT_state_set, -1); rb_define_method(cMYSQL_STMT.klass, "state", _wrap_MYSQL_STMT_state_get, -1); rb_define_method(cMYSQL_STMT.klass, "last_error=", _wrap_MYSQL_STMT_last_error_set, -1); rb_define_method(cMYSQL_STMT.klass, "last_error", _wrap_MYSQL_STMT_last_error_get, -1); rb_define_method(cMYSQL_STMT.klass, "sqlstate=", _wrap_MYSQL_STMT_sqlstate_set, -1); rb_define_method(cMYSQL_STMT.klass, "sqlstate", _wrap_MYSQL_STMT_sqlstate_get, -1); rb_define_method(cMYSQL_STMT.klass, "send_types_to_server=", _wrap_MYSQL_STMT_send_types_to_server_set, -1); rb_define_method(cMYSQL_STMT.klass, "send_types_to_server", _wrap_MYSQL_STMT_send_types_to_server_get, -1); rb_define_method(cMYSQL_STMT.klass, "bind_param_done=", _wrap_MYSQL_STMT_bind_param_done_set, -1); rb_define_method(cMYSQL_STMT.klass, "bind_param_done", _wrap_MYSQL_STMT_bind_param_done_get, -1); rb_define_method(cMYSQL_STMT.klass, "bind_result_done=", _wrap_MYSQL_STMT_bind_result_done_set, -1); rb_define_method(cMYSQL_STMT.klass, "bind_result_done", _wrap_MYSQL_STMT_bind_result_done_get, -1); rb_define_method(cMYSQL_STMT.klass, "unbuffered_fetch_cancelled=", _wrap_MYSQL_STMT_unbuffered_fetch_cancelled_set, -1); rb_define_method(cMYSQL_STMT.klass, "unbuffered_fetch_cancelled", _wrap_MYSQL_STMT_unbuffered_fetch_cancelled_get, -1); rb_define_method(cMYSQL_STMT.klass, "update_max_length=", _wrap_MYSQL_STMT_update_max_length_set, -1); rb_define_method(cMYSQL_STMT.klass, "update_max_length", _wrap_MYSQL_STMT_update_max_length_get, -1); cMYSQL_STMT.mark = 0; cMYSQL_STMT.destroy = (void (*)(void *)) free_MYSQL_STMT; cMYSQL_STMT.trackObjects = 0; rb_define_const(mMysql_c, "STMT_ATTR_UPDATE_MAX_LENGTH", SWIG_From_int((int)(STMT_ATTR_UPDATE_MAX_LENGTH))); rb_define_const(mMysql_c, "STMT_ATTR_CURSOR_TYPE", SWIG_From_int((int)(STMT_ATTR_CURSOR_TYPE))); rb_define_const(mMysql_c, "STMT_ATTR_PREFETCH_ROWS", SWIG_From_int((int)(STMT_ATTR_PREFETCH_ROWS))); cMYSQL_METHODS.klass = rb_define_class_under(mMysql_c, "MYSQL_METHODS", rb_cObject); SWIG_TypeClientData(SWIGTYPE_p_st_mysql_methods, (void *) &cMYSQL_METHODS); rb_define_alloc_func(cMYSQL_METHODS.klass, _wrap_MYSQL_METHODS_allocate); rb_define_method(cMYSQL_METHODS.klass, "initialize", _wrap_new_MYSQL_METHODS, -1); rb_define_method(cMYSQL_METHODS.klass, "read_query_result=", _wrap_MYSQL_METHODS_read_query_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_query_result", _wrap_MYSQL_METHODS_read_query_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "advanced_command=", _wrap_MYSQL_METHODS_advanced_command_set, -1); rb_define_method(cMYSQL_METHODS.klass, "advanced_command", _wrap_MYSQL_METHODS_advanced_command_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_rows=", _wrap_MYSQL_METHODS_read_rows_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_rows", _wrap_MYSQL_METHODS_read_rows_get, -1); rb_define_method(cMYSQL_METHODS.klass, "use_result=", _wrap_MYSQL_METHODS_use_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "use_result", _wrap_MYSQL_METHODS_use_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "fetch_lengths=", _wrap_MYSQL_METHODS_fetch_lengths_set, -1); rb_define_method(cMYSQL_METHODS.klass, "fetch_lengths", _wrap_MYSQL_METHODS_fetch_lengths_get, -1); rb_define_method(cMYSQL_METHODS.klass, "flush_use_result=", _wrap_MYSQL_METHODS_flush_use_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "flush_use_result", _wrap_MYSQL_METHODS_flush_use_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "list_fields=", _wrap_MYSQL_METHODS_list_fields_set, -1); rb_define_method(cMYSQL_METHODS.klass, "list_fields", _wrap_MYSQL_METHODS_list_fields_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_prepare_result=", _wrap_MYSQL_METHODS_read_prepare_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_prepare_result", _wrap_MYSQL_METHODS_read_prepare_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "stmt_execute=", _wrap_MYSQL_METHODS_stmt_execute_set, -1); rb_define_method(cMYSQL_METHODS.klass, "stmt_execute", _wrap_MYSQL_METHODS_stmt_execute_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_binary_rows=", _wrap_MYSQL_METHODS_read_binary_rows_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_binary_rows", _wrap_MYSQL_METHODS_read_binary_rows_get, -1); rb_define_method(cMYSQL_METHODS.klass, "unbuffered_fetch=", _wrap_MYSQL_METHODS_unbuffered_fetch_set, -1); rb_define_method(cMYSQL_METHODS.klass, "unbuffered_fetch", _wrap_MYSQL_METHODS_unbuffered_fetch_get, -1); rb_define_method(cMYSQL_METHODS.klass, "free_embedded_thd=", _wrap_MYSQL_METHODS_free_embedded_thd_set, -1); rb_define_method(cMYSQL_METHODS.klass, "free_embedded_thd", _wrap_MYSQL_METHODS_free_embedded_thd_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_statistics=", _wrap_MYSQL_METHODS_read_statistics_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_statistics", _wrap_MYSQL_METHODS_read_statistics_get, -1); rb_define_method(cMYSQL_METHODS.klass, "next_result=", _wrap_MYSQL_METHODS_next_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "next_result", _wrap_MYSQL_METHODS_next_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_change_user_result=", _wrap_MYSQL_METHODS_read_change_user_result_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_change_user_result", _wrap_MYSQL_METHODS_read_change_user_result_get, -1); rb_define_method(cMYSQL_METHODS.klass, "read_rows_from_cursor=", _wrap_MYSQL_METHODS_read_rows_from_cursor_set, -1); rb_define_method(cMYSQL_METHODS.klass, "read_rows_from_cursor", _wrap_MYSQL_METHODS_read_rows_from_cursor_get, -1); cMYSQL_METHODS.mark = 0; cMYSQL_METHODS.destroy = (void (*)(void *)) free_MYSQL_METHODS; cMYSQL_METHODS.trackObjects = 0; rb_define_module_function(mMysql_c, "mysql_stmt_init", _wrap_mysql_stmt_init, -1); rb_define_module_function(mMysql_c, "mysql_stmt_prepare", _wrap_mysql_stmt_prepare, -1); rb_define_module_function(mMysql_c, "mysql_stmt_execute", _wrap_mysql_stmt_execute, -1); rb_define_module_function(mMysql_c, "mysql_stmt_fetch", _wrap_mysql_stmt_fetch, -1); rb_define_module_function(mMysql_c, "mysql_stmt_fetch_column", _wrap_mysql_stmt_fetch_column, -1); rb_define_module_function(mMysql_c, "mysql_stmt_store_result", _wrap_mysql_stmt_store_result, -1); rb_define_module_function(mMysql_c, "mysql_stmt_param_count", _wrap_mysql_stmt_param_count, -1); rb_define_module_function(mMysql_c, "mysql_stmt_attr_set", _wrap_mysql_stmt_attr_set, -1); rb_define_module_function(mMysql_c, "mysql_stmt_attr_get", _wrap_mysql_stmt_attr_get, -1); rb_define_module_function(mMysql_c, "mysql_stmt_bind_param", _wrap_mysql_stmt_bind_param, -1); rb_define_module_function(mMysql_c, "mysql_stmt_bind_result", _wrap_mysql_stmt_bind_result, -1); rb_define_module_function(mMysql_c, "mysql_stmt_close", _wrap_mysql_stmt_close, -1); rb_define_module_function(mMysql_c, "mysql_stmt_reset", _wrap_mysql_stmt_reset, -1); rb_define_module_function(mMysql_c, "mysql_stmt_free_result", _wrap_mysql_stmt_free_result, -1); rb_define_module_function(mMysql_c, "mysql_stmt_send_long_data", _wrap_mysql_stmt_send_long_data, -1); rb_define_module_function(mMysql_c, "mysql_stmt_result_metadata", _wrap_mysql_stmt_result_metadata, -1); rb_define_module_function(mMysql_c, "mysql_stmt_param_metadata", _wrap_mysql_stmt_param_metadata, -1); rb_define_module_function(mMysql_c, "mysql_stmt_errno", _wrap_mysql_stmt_errno, -1); rb_define_module_function(mMysql_c, "mysql_stmt_error", _wrap_mysql_stmt_error, -1); rb_define_module_function(mMysql_c, "mysql_stmt_sqlstate", _wrap_mysql_stmt_sqlstate, -1); rb_define_module_function(mMysql_c, "mysql_stmt_row_seek", _wrap_mysql_stmt_row_seek, -1); rb_define_module_function(mMysql_c, "mysql_stmt_row_tell", _wrap_mysql_stmt_row_tell, -1); rb_define_module_function(mMysql_c, "mysql_stmt_data_seek", _wrap_mysql_stmt_data_seek, -1); rb_define_module_function(mMysql_c, "mysql_stmt_num_rows", _wrap_mysql_stmt_num_rows, -1); rb_define_module_function(mMysql_c, "mysql_stmt_affected_rows", _wrap_mysql_stmt_affected_rows, -1); rb_define_module_function(mMysql_c, "mysql_stmt_insert_id", _wrap_mysql_stmt_insert_id, -1); rb_define_module_function(mMysql_c, "mysql_stmt_field_count", _wrap_mysql_stmt_field_count, -1); rb_define_module_function(mMysql_c, "mysql_commit", _wrap_mysql_commit, -1); rb_define_module_function(mMysql_c, "mysql_rollback", _wrap_mysql_rollback, -1); rb_define_module_function(mMysql_c, "mysql_autocommit", _wrap_mysql_autocommit, -1); rb_define_module_function(mMysql_c, "mysql_more_results", _wrap_mysql_more_results, -1); rb_define_module_function(mMysql_c, "mysql_next_result", _wrap_mysql_next_result, -1); rb_define_module_function(mMysql_c, "mysql_close", _wrap_mysql_close, -1); rb_define_const(mMysql_c, "MYSQL_NO_DATA", SWIG_From_int((int)(100))); rb_define_const(mMysql_c, "MYSQL_DATA_TRUNCATED", SWIG_From_int((int)(101))); rb_define_module_function(mMysql_c, "mysql_c_fetch_field_names", _wrap_mysql_c_fetch_field_names, -1); rb_define_module_function(mMysql_c, "mysql_c_fetch_field_types", _wrap_mysql_c_fetch_field_types, -1); rb_define_module_function(mMysql_c, "mysql_c_fetch_row", _wrap_mysql_c_fetch_row, -1); rb_define_const(mMysql_c, "MYSQL_TYPE_DECIMAL", SWIG_From_int((int)(MYSQL_TYPE_DECIMAL))); rb_define_const(mMysql_c, "MYSQL_TYPE_TINY", SWIG_From_int((int)(MYSQL_TYPE_TINY))); rb_define_const(mMysql_c, "MYSQL_TYPE_SHORT", SWIG_From_int((int)(MYSQL_TYPE_SHORT))); rb_define_const(mMysql_c, "MYSQL_TYPE_LONG", SWIG_From_int((int)(MYSQL_TYPE_LONG))); rb_define_const(mMysql_c, "MYSQL_TYPE_FLOAT", SWIG_From_int((int)(MYSQL_TYPE_FLOAT))); rb_define_const(mMysql_c, "MYSQL_TYPE_DOUBLE", SWIG_From_int((int)(MYSQL_TYPE_DOUBLE))); rb_define_const(mMysql_c, "MYSQL_TYPE_NULL", SWIG_From_int((int)(MYSQL_TYPE_NULL))); rb_define_const(mMysql_c, "MYSQL_TYPE_TIMESTAMP", SWIG_From_int((int)(MYSQL_TYPE_TIMESTAMP))); rb_define_const(mMysql_c, "MYSQL_TYPE_LONGLONG", SWIG_From_int((int)(MYSQL_TYPE_LONGLONG))); rb_define_const(mMysql_c, "MYSQL_TYPE_INT24", SWIG_From_int((int)(MYSQL_TYPE_INT24))); rb_define_const(mMysql_c, "MYSQL_TYPE_DATE", SWIG_From_int((int)(MYSQL_TYPE_DATE))); rb_define_const(mMysql_c, "MYSQL_TYPE_TIME", SWIG_From_int((int)(MYSQL_TYPE_TIME))); rb_define_const(mMysql_c, "MYSQL_TYPE_DATETIME", SWIG_From_int((int)(MYSQL_TYPE_DATETIME))); rb_define_const(mMysql_c, "MYSQL_TYPE_YEAR", SWIG_From_int((int)(MYSQL_TYPE_YEAR))); rb_define_const(mMysql_c, "MYSQL_TYPE_NEWDATE", SWIG_From_int((int)(MYSQL_TYPE_NEWDATE))); rb_define_const(mMysql_c, "MYSQL_TYPE_VARCHAR", SWIG_From_int((int)(MYSQL_TYPE_VARCHAR))); rb_define_const(mMysql_c, "MYSQL_TYPE_BIT", SWIG_From_int((int)(MYSQL_TYPE_BIT))); rb_define_const(mMysql_c, "MYSQL_TYPE_NEWDECIMAL", SWIG_From_int((int)(MYSQL_TYPE_NEWDECIMAL))); rb_define_const(mMysql_c, "MYSQL_TYPE_ENUM", SWIG_From_int((int)(MYSQL_TYPE_ENUM))); rb_define_const(mMysql_c, "MYSQL_TYPE_SET", SWIG_From_int((int)(MYSQL_TYPE_SET))); rb_define_const(mMysql_c, "MYSQL_TYPE_TINY_BLOB", SWIG_From_int((int)(MYSQL_TYPE_TINY_BLOB))); rb_define_const(mMysql_c, "MYSQL_TYPE_MEDIUM_BLOB", SWIG_From_int((int)(MYSQL_TYPE_MEDIUM_BLOB))); rb_define_const(mMysql_c, "MYSQL_TYPE_LONG_BLOB", SWIG_From_int((int)(MYSQL_TYPE_LONG_BLOB))); rb_define_const(mMysql_c, "MYSQL_TYPE_BLOB", SWIG_From_int((int)(MYSQL_TYPE_BLOB))); rb_define_const(mMysql_c, "MYSQL_TYPE_VAR_STRING", SWIG_From_int((int)(MYSQL_TYPE_VAR_STRING))); rb_define_const(mMysql_c, "MYSQL_TYPE_STRING", SWIG_From_int((int)(MYSQL_TYPE_STRING))); rb_define_const(mMysql_c, "MYSQL_TYPE_GEOMETRY", SWIG_From_int((int)(MYSQL_TYPE_GEOMETRY))); }