memcached 0.10 → 0.11
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +4 -2
- data/COMPATIBILITY +1 -0
- data/Manifest +1 -1
- data/README +4 -4
- data/Rakefile +30 -0
- data/TODO +3 -3
- data/ext/rlibmemcached.i +20 -37
- data/ext/rlibmemcached_wrap.c +815 -799
- data/lib/memcached.rb +4 -0
- data/lib/memcached/behaviors.rb +8 -7
- data/lib/memcached/memcached.rb +53 -76
- data/lib/memcached/rails.rb +1 -1
- data/memcached.gemspec +103 -56
- data/test/profile/benchmark.rb +1 -1
- data/test/profile/profile.rb +1 -1
- data/test/profile/valgrind.rb +1 -1
- data/test/unit/memcached_test.rb +136 -121
- data/test/unit/rails_test.rb +1 -1
- metadata +17 -8
- metadata.gz.sig +0 -0
- data/test/profile/key.rb +0 -41
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
|
2
|
-
v0.
|
2
|
+
v0.11. Update to libmemcached 0.22. Support hostname lookups. Register %freefunc for MemcachedSt and remove destroy() method. Use new built-in behavior for namespacing. Raise on version mismatch. Remove private hash function. Fix bug related to socket size behavior reset when struct is initialized with missing servers (Jeffrey Hardy). WARNING! If you use a namespace, this version will effectively invalidate your entire cache.
|
3
3
|
|
4
|
-
v0.
|
4
|
+
v0.10. Update to libmemcached 0.20. Failover support. Close consistent hashing bugs.
|
5
|
+
|
6
|
+
v0.9. Update to libmemcached 0.19. Add some failover tests, but we are still waiting on libmemcached's replication branch for them to actually be useful. Fix CAS bug (ktheory).
|
5
7
|
|
6
8
|
v0.8.1. Disable NotFound backtraces for speed (Blaine Cook).
|
7
9
|
|
data/COMPATIBILITY
CHANGED
data/Manifest
CHANGED
data/README
CHANGED
@@ -22,14 +22,14 @@ The <b>memcached</b> library wraps the pure-C libmemcached client via SWIG.
|
|
22
22
|
|
23
23
|
== Installation
|
24
24
|
|
25
|
-
You need Ruby 1.8.6, and {libmemcached 0.
|
25
|
+
You need Ruby 1.8.6, and {libmemcached 0.21}[http://tangent.org/552/libmemcached.html]. Other versions are not supported. You also need {memcached itself}[http://www.danga.com/memcached/] if you want to test against a local server.
|
26
26
|
|
27
|
-
For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.
|
27
|
+
For Linux, download and extract the {libmemcached tarball}[http://download.tangent.org/libmemcached-0.21.tar.gz]. Then run:
|
28
28
|
./configure
|
29
29
|
make && sudo make install
|
30
30
|
|
31
31
|
For OS X, you may be able to install it from MacPorts:
|
32
|
-
sudo port install libmemcached @0.
|
32
|
+
sudo port install libmemcached @0.21
|
33
33
|
|
34
34
|
Now install the gem:
|
35
35
|
sudo gem install memcached --no-rdoc --no-ri
|
@@ -45,7 +45,7 @@ Start a local memcached server:
|
|
45
45
|
Now, in Ruby, require the library and instantiate a Memcached object at a global level:
|
46
46
|
|
47
47
|
require 'memcached'
|
48
|
-
$cache = Memcached.new("
|
48
|
+
$cache = Memcached.new("localhost:11211")
|
49
49
|
|
50
50
|
Now you can set things and get things:
|
51
51
|
|
data/Rakefile
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'echoe'
|
2
|
+
|
3
|
+
Echoe.new("memcached") do |p|
|
4
|
+
p.author = "Evan Weaver"
|
5
|
+
p.project = "fauna"
|
6
|
+
p.summary = "An interface to the libmemcached C client."
|
7
|
+
p.url = "http://blog.evanweaver.com/files/doc/fauna/memcached/"
|
8
|
+
p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
|
9
|
+
p.rdoc_pattern = /README|TODO|LICENSE|CHANGELOG|BENCH|COMPAT|exceptions|behaviors|rails.rb|memcached.rb/
|
10
|
+
end
|
11
|
+
|
12
|
+
task :exceptions do
|
13
|
+
$LOAD_PATH << "lib"
|
14
|
+
require 'memcached'
|
15
|
+
Memcached.constants.sort.each do |const_name|
|
16
|
+
const = Memcached.send(:const_get, const_name)
|
17
|
+
next if const == Memcached::Success or const == Memcached::Stored
|
18
|
+
if const.is_a? Class and const < Memcached::Error
|
19
|
+
puts "* Memcached::#{const_name}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
task :valgrind do
|
25
|
+
exec("valgrind --tool=memcheck --leak-check=yes --show-reachable=no --num-callers=15 --track-fds=yes ruby #{File.dirname(__FILE__)}/test/profile/valgrind.rb")
|
26
|
+
end
|
27
|
+
|
28
|
+
task :profile do
|
29
|
+
exec("ruby #{File.dirname(__FILE__)}/test/profile/profile.rb")
|
30
|
+
end
|
data/TODO
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
|
2
|
-
*
|
3
|
-
*
|
4
|
-
*
|
2
|
+
* Verify that DNS lookups are getting cached
|
3
|
+
* Check for memory leaks in Valgrind after free callback change
|
4
|
+
* Re-run benchmarks
|
data/ext/rlibmemcached.i
CHANGED
@@ -11,6 +11,9 @@
|
|
11
11
|
|
12
12
|
%include "typemaps.i"
|
13
13
|
|
14
|
+
// Register libmemcached's struct free function to prevent memory leaks
|
15
|
+
%freefunc memcached_st "memcached_free";
|
16
|
+
|
14
17
|
//// Input maps
|
15
18
|
|
16
19
|
%apply unsigned short { uint8_t };
|
@@ -26,7 +29,7 @@
|
|
26
29
|
$2 = (size_t *) malloc(($3+1)*sizeof(size_t));
|
27
30
|
$1 = (char **) malloc(($3+1)*sizeof(char *));
|
28
31
|
for(i = 0; i < $3; i ++) {
|
29
|
-
$2[i] =
|
32
|
+
$2[i] = RSTRING(RARRAY_PTR($input)[i])->len;
|
30
33
|
$1[i] = StringValuePtr(RARRAY_PTR($input)[i]);
|
31
34
|
}
|
32
35
|
}
|
@@ -36,20 +39,25 @@
|
|
36
39
|
}
|
37
40
|
|
38
41
|
// Generic strings
|
39
|
-
%typemap(in) (char *str, size_t len) {
|
42
|
+
%typemap(in) (const char *str, size_t len) {
|
40
43
|
$1 = STR2CSTR($input);
|
41
44
|
$2 = (size_t) RSTRING($input)->len;
|
42
45
|
};
|
43
46
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
47
|
+
// Void type strings without lengths for prefix_key callback
|
48
|
+
%typemap(in) (void *data) {
|
49
|
+
$1 = STR2CSTR($input);
|
50
|
+
};
|
51
|
+
|
52
|
+
%apply (const char *str, size_t len) {
|
53
|
+
(const char *namespace, size_t namespace_length),
|
54
|
+
(const char *key, size_t key_length),
|
55
|
+
(const char *value, size_t value_length)
|
48
56
|
};
|
49
57
|
|
50
58
|
// Key strings with same master key
|
51
|
-
//
|
52
|
-
%typemap(in) (char *master_key, size_t master_key_length, char *key, size_t key_length) {
|
59
|
+
// This will have to go if people actually want to set the master key separately
|
60
|
+
%typemap(in) (const char *master_key, size_t master_key_length, const char *key, size_t key_length) {
|
53
61
|
$3 = $1 = STR2CSTR($input);
|
54
62
|
$4 = $2 = (size_t) RSTRING($input)->len;
|
55
63
|
};
|
@@ -67,7 +75,7 @@
|
|
67
75
|
$result = INT2FIX($1);
|
68
76
|
};
|
69
77
|
|
70
|
-
// String
|
78
|
+
// String for memcached_fetch
|
71
79
|
%typemap(in, numinputs=0) (char *key, size_t *key_length) {
|
72
80
|
char string[256];
|
73
81
|
size_t length = 0;
|
@@ -97,42 +105,20 @@
|
|
97
105
|
|
98
106
|
%include "/opt/local/include/libmemcached/memcached.h"
|
99
107
|
%include "/opt/local/include/libmemcached/memcached_constants.h"
|
108
|
+
%include "/opt/local/include/libmemcached/memcached_get.h"
|
100
109
|
%include "/opt/local/include/libmemcached/memcached_storage.h"
|
101
110
|
%include "/opt/local/include/libmemcached/memcached_result.h"
|
102
111
|
%include "/opt/local/include/libmemcached/memcached_server.h"
|
103
112
|
|
104
113
|
//// Custom C functions
|
105
114
|
|
106
|
-
// Namespace and validate key. We could avoid several more dispatches and allocations if we called this from the libmemcached wrappers directly.
|
107
|
-
VALUE ns(char *namespace, size_t namespace_length, char *key, size_t key_length);
|
108
|
-
%{
|
109
|
-
VALUE ns(char *namespace, size_t namespace_length, char *key, size_t key_length) {
|
110
|
-
char namespaced_key[250];
|
111
|
-
size_t namespaced_key_length = namespace_length + key_length;
|
112
|
-
|
113
|
-
if (namespaced_key_length > 250)
|
114
|
-
namespaced_key_length = 250;
|
115
|
-
|
116
|
-
strncpy(namespaced_key, namespace, namespace_length);
|
117
|
-
strncpy(namespaced_key + namespace_length, key, namespaced_key_length - namespace_length);
|
118
|
-
|
119
|
-
int i;
|
120
|
-
for (i = 0; i < namespaced_key_length; i++)
|
121
|
-
if ((namespaced_key[i] < 33) || (namespaced_key[i] > 126))
|
122
|
-
// Outside printable range
|
123
|
-
namespaced_key[i] = '_';
|
124
|
-
|
125
|
-
return rb_str_new(namespaced_key, namespaced_key_length);
|
126
|
-
};
|
127
|
-
%}
|
128
|
-
|
129
115
|
//// Manual wrappers
|
130
116
|
|
131
117
|
// Single get. SWIG likes to use SWIG_FromCharPtr instead of SWIG_FromCharPtrAndSize because
|
132
118
|
// of the retval/argout split, so it truncates return values with \0 in them.
|
133
|
-
VALUE memcached_get_rvalue(memcached_st *ptr, char *key, size_t key_length, uint32_t *flags, memcached_return *error);
|
119
|
+
VALUE memcached_get_rvalue(memcached_st *ptr, const char *key, size_t key_length, uint32_t *flags, memcached_return *error);
|
134
120
|
%{
|
135
|
-
VALUE memcached_get_rvalue(memcached_st *ptr, char *key, size_t key_length, uint32_t *flags, memcached_return *error) {
|
121
|
+
VALUE memcached_get_rvalue(memcached_st *ptr, const char *key, size_t key_length, uint32_t *flags, memcached_return *error) {
|
136
122
|
VALUE ret;
|
137
123
|
size_t value_length;
|
138
124
|
char *value = memcached_get(ptr, key, key_length, &value_length, flags, error);
|
@@ -190,6 +176,3 @@ memcached_stat_st *memcached_select_stat_at(memcached_st *in_ptr, memcached_stat
|
|
190
176
|
return &(stat_ptr[index]);
|
191
177
|
};
|
192
178
|
%}
|
193
|
-
|
194
|
-
// Expose the hash generation function, which is not included in any header
|
195
|
-
unsigned int memcached_generate_hash(memcached_st *ptr, char *key, size_t key_length);
|
data/ext/rlibmemcached_wrap.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 1.3.
|
3
|
+
* Version 1.3.36
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -51,6 +51,12 @@
|
|
51
51
|
# endif
|
52
52
|
#endif
|
53
53
|
|
54
|
+
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
55
|
+
# if defined(_MSC_VER)
|
56
|
+
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
57
|
+
# endif
|
58
|
+
#endif
|
59
|
+
|
54
60
|
#ifndef SWIGUNUSEDPARM
|
55
61
|
# ifdef __cplusplus
|
56
62
|
# define SWIGUNUSEDPARM(p)
|
@@ -154,6 +160,12 @@
|
|
154
160
|
# endif
|
155
161
|
#endif
|
156
162
|
|
163
|
+
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
164
|
+
# if defined(_MSC_VER)
|
165
|
+
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
166
|
+
# endif
|
167
|
+
#endif
|
168
|
+
|
157
169
|
#ifndef SWIGUNUSEDPARM
|
158
170
|
# ifdef __cplusplus
|
159
171
|
# define SWIGUNUSEDPARM(p)
|
@@ -224,7 +236,7 @@
|
|
224
236
|
|
225
237
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
226
238
|
or for whatever reason, the runtime changes incompatibly */
|
227
|
-
#define SWIG_RUNTIME_VERSION "
|
239
|
+
#define SWIG_RUNTIME_VERSION "4"
|
228
240
|
|
229
241
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
230
242
|
#ifdef SWIG_TYPE_TABLE
|
@@ -259,6 +271,7 @@
|
|
259
271
|
|
260
272
|
/* Flags for pointer conversions */
|
261
273
|
#define SWIG_POINTER_DISOWN 0x1
|
274
|
+
#define SWIG_CAST_NEW_MEMORY 0x2
|
262
275
|
|
263
276
|
/* Flags for new pointer objects */
|
264
277
|
#define SWIG_POINTER_OWN 0x1
|
@@ -399,10 +412,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
399
412
|
extern "C" {
|
400
413
|
#endif
|
401
414
|
|
402
|
-
typedef void *(*swig_converter_func)(void *);
|
415
|
+
typedef void *(*swig_converter_func)(void *, int *);
|
403
416
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
404
417
|
|
405
|
-
/* Structure to store
|
418
|
+
/* Structure to store information on one type */
|
406
419
|
typedef struct swig_type_info {
|
407
420
|
const char *name; /* mangled name of this type */
|
408
421
|
const char *str; /* human readable name of this type */
|
@@ -529,8 +542,8 @@ SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
|
|
529
542
|
Cast a pointer up an inheritance hierarchy
|
530
543
|
*/
|
531
544
|
SWIGRUNTIMEINLINE void *
|
532
|
-
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
|
533
|
-
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
|
545
|
+
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
546
|
+
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
534
547
|
}
|
535
548
|
|
536
549
|
/*
|
@@ -840,12 +853,44 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
840
853
|
#ifndef RSTRING_PTR
|
841
854
|
# define RSTRING_PTR(x) RSTRING(x)->ptr
|
842
855
|
#endif
|
856
|
+
#ifndef RSTRING_END
|
857
|
+
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
|
858
|
+
#endif
|
843
859
|
#ifndef RARRAY_LEN
|
844
860
|
# define RARRAY_LEN(x) RARRAY(x)->len
|
845
861
|
#endif
|
846
862
|
#ifndef RARRAY_PTR
|
847
863
|
# define RARRAY_PTR(x) RARRAY(x)->ptr
|
848
864
|
#endif
|
865
|
+
#ifndef RFLOAT_VALUE
|
866
|
+
# define RFLOAT_VALUE(x) RFLOAT(x)->value
|
867
|
+
#endif
|
868
|
+
#ifndef DOUBLE2NUM
|
869
|
+
# define DOUBLE2NUM(x) rb_float_new(x)
|
870
|
+
#endif
|
871
|
+
#ifndef RHASH_TBL
|
872
|
+
# define RHASH_TBL(x) (RHASH(x)->tbl)
|
873
|
+
#endif
|
874
|
+
#ifndef RHASH_ITER_LEV
|
875
|
+
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
|
876
|
+
#endif
|
877
|
+
#ifndef RHASH_IFNONE
|
878
|
+
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
|
879
|
+
#endif
|
880
|
+
#ifndef RHASH_SIZE
|
881
|
+
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
|
882
|
+
#endif
|
883
|
+
#ifndef RHASH_EMPTY_P
|
884
|
+
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
|
885
|
+
#endif
|
886
|
+
#ifndef RSTRUCT_LEN
|
887
|
+
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
|
888
|
+
#endif
|
889
|
+
#ifndef RSTRUCT_PTR
|
890
|
+
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
|
891
|
+
#endif
|
892
|
+
|
893
|
+
|
849
894
|
|
850
895
|
/*
|
851
896
|
* Need to be very careful about how these macros are defined, especially
|
@@ -1321,6 +1366,7 @@ SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
|
|
1321
1366
|
#define SWIG_MangleStr(value) SWIG_Ruby_MangleStr(value)
|
1322
1367
|
#define SWIG_CheckConvert(value, ty) SWIG_Ruby_CheckConvert(value, ty)
|
1323
1368
|
|
1369
|
+
#include "assert.h"
|
1324
1370
|
|
1325
1371
|
/* -----------------------------------------------------------------------------
|
1326
1372
|
* pointers/data manipulation
|
@@ -1582,8 +1628,11 @@ SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags,
|
|
1582
1628
|
tc = SWIG_TypeCheck(c, ty);
|
1583
1629
|
if (!tc) {
|
1584
1630
|
return SWIG_ERROR;
|
1631
|
+
} else {
|
1632
|
+
int newmemory = 0;
|
1633
|
+
*ptr = SWIG_TypeCast(tc, vptr, &newmemory);
|
1634
|
+
assert(!newmemory); /* newmemory handling not yet implemented */
|
1585
1635
|
}
|
1586
|
-
*ptr = SWIG_TypeCast(tc, vptr);
|
1587
1636
|
} else {
|
1588
1637
|
*ptr = vptr;
|
1589
1638
|
}
|
@@ -1761,7 +1810,7 @@ static VALUE mRlibmemcached;
|
|
1761
1810
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1762
1811
|
|
1763
1812
|
|
1764
|
-
#define SWIGVERSION
|
1813
|
+
#define SWIGVERSION 0x010336
|
1765
1814
|
#define SWIG_VERSION SWIGVERSION
|
1766
1815
|
|
1767
1816
|
|
@@ -1919,7 +1968,7 @@ SWIG_ruby_failed(void)
|
|
1919
1968
|
}
|
1920
1969
|
|
1921
1970
|
|
1922
|
-
/*@SWIG:/opt/local/share/swig/1.3.
|
1971
|
+
/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
1923
1972
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
1924
1973
|
{
|
1925
1974
|
VALUE obj = args[0];
|
@@ -1964,7 +2013,7 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
1964
2013
|
}
|
1965
2014
|
|
1966
2015
|
|
1967
|
-
/*@SWIG:/opt/local/share/swig/1.3.
|
2016
|
+
/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
1968
2017
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
1969
2018
|
{
|
1970
2019
|
VALUE obj = args[0];
|
@@ -2023,9 +2072,6 @@ SWIG_From_unsigned_SS_int (unsigned int value)
|
|
2023
2072
|
}
|
2024
2073
|
|
2025
2074
|
|
2026
|
-
|
2027
|
-
|
2028
|
-
|
2029
2075
|
SWIGINTERNINLINE int
|
2030
2076
|
SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
2031
2077
|
{
|
@@ -2036,6 +2082,16 @@ SWIG_AsVal_size_t (VALUE obj, size_t *val)
|
|
2036
2082
|
}
|
2037
2083
|
|
2038
2084
|
|
2085
|
+
SWIGINTERNINLINE VALUE
|
2086
|
+
SWIG_From_size_t (size_t value)
|
2087
|
+
{
|
2088
|
+
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
2089
|
+
}
|
2090
|
+
|
2091
|
+
|
2092
|
+
|
2093
|
+
|
2094
|
+
|
2039
2095
|
SWIGINTERNINLINE VALUE
|
2040
2096
|
SWIG_From_long_SS_long (long long value)
|
2041
2097
|
{
|
@@ -2057,7 +2113,7 @@ SWIG_From_unsigned_SS_short (unsigned short value)
|
|
2057
2113
|
}
|
2058
2114
|
|
2059
2115
|
|
2060
|
-
/*@SWIG:/opt/local/share/swig/1.3.
|
2116
|
+
/*@SWIG:/opt/local/share/swig/1.3.36/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
2061
2117
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
|
2062
2118
|
{
|
2063
2119
|
VALUE obj = args[0];
|
@@ -2086,13 +2142,6 @@ SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
|
|
2086
2142
|
}
|
2087
2143
|
|
2088
2144
|
|
2089
|
-
SWIGINTERNINLINE VALUE
|
2090
|
-
SWIG_From_size_t (size_t value)
|
2091
|
-
{
|
2092
|
-
return SWIG_From_unsigned_SS_long ((unsigned long)(value));
|
2093
|
-
}
|
2094
|
-
|
2095
|
-
|
2096
2145
|
SWIGINTERN int
|
2097
2146
|
SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
2098
2147
|
{
|
@@ -2109,27 +2158,7 @@ SWIG_AsVal_unsigned_SS_short (VALUE obj, unsigned short *val)
|
|
2109
2158
|
}
|
2110
2159
|
|
2111
2160
|
|
2112
|
-
VALUE
|
2113
|
-
char namespaced_key[250];
|
2114
|
-
size_t namespaced_key_length = namespace_length + key_length;
|
2115
|
-
|
2116
|
-
if (namespaced_key_length > 250)
|
2117
|
-
namespaced_key_length = 250;
|
2118
|
-
|
2119
|
-
strncpy(namespaced_key, namespace, namespace_length);
|
2120
|
-
strncpy(namespaced_key + namespace_length, key, namespaced_key_length - namespace_length);
|
2121
|
-
|
2122
|
-
int i;
|
2123
|
-
for (i = 0; i < namespaced_key_length; i++)
|
2124
|
-
if ((namespaced_key[i] < 33) || (namespaced_key[i] > 126))
|
2125
|
-
// Outside printable range
|
2126
|
-
namespaced_key[i] = '_';
|
2127
|
-
|
2128
|
-
return rb_str_new(namespaced_key, namespaced_key_length);
|
2129
|
-
};
|
2130
|
-
|
2131
|
-
|
2132
|
-
VALUE memcached_get_rvalue(memcached_st *ptr, char *key, size_t key_length, uint32_t *flags, memcached_return *error) {
|
2161
|
+
VALUE memcached_get_rvalue(memcached_st *ptr, const char *key, size_t key_length, uint32_t *flags, memcached_return *error) {
|
2133
2162
|
VALUE ret;
|
2134
2163
|
size_t value_length;
|
2135
2164
|
char *value = memcached_get(ptr, key, key_length, &value_length, flags, error);
|
@@ -2205,7 +2234,6 @@ _wrap_MemcachedContinuumItemSt_index_set(int argc, VALUE *argv, VALUE self) {
|
|
2205
2234
|
}
|
2206
2235
|
}
|
2207
2236
|
if (arg1) (arg1)->index = arg2;
|
2208
|
-
|
2209
2237
|
return Qnil;
|
2210
2238
|
fail:
|
2211
2239
|
return Qnil;
|
@@ -2215,9 +2243,9 @@ fail:
|
|
2215
2243
|
SWIGINTERN VALUE
|
2216
2244
|
_wrap_MemcachedContinuumItemSt_index_get(int argc, VALUE *argv, VALUE self) {
|
2217
2245
|
struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
|
2218
|
-
uint32_t result;
|
2219
2246
|
void *argp1 = 0 ;
|
2220
2247
|
int res1 = 0 ;
|
2248
|
+
uint32_t result;
|
2221
2249
|
VALUE vresult = Qnil;
|
2222
2250
|
|
2223
2251
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2265,7 +2293,6 @@ _wrap_MemcachedContinuumItemSt_value_set(int argc, VALUE *argv, VALUE self) {
|
|
2265
2293
|
}
|
2266
2294
|
}
|
2267
2295
|
if (arg1) (arg1)->value = arg2;
|
2268
|
-
|
2269
2296
|
return Qnil;
|
2270
2297
|
fail:
|
2271
2298
|
return Qnil;
|
@@ -2275,9 +2302,9 @@ fail:
|
|
2275
2302
|
SWIGINTERN VALUE
|
2276
2303
|
_wrap_MemcachedContinuumItemSt_value_get(int argc, VALUE *argv, VALUE self) {
|
2277
2304
|
struct memcached_continuum_item_st *arg1 = (struct memcached_continuum_item_st *) 0 ;
|
2278
|
-
uint32_t result;
|
2279
2305
|
void *argp1 = 0 ;
|
2280
2306
|
int res1 = 0 ;
|
2307
|
+
uint32_t result;
|
2281
2308
|
VALUE vresult = Qnil;
|
2282
2309
|
|
2283
2310
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2320,8 +2347,8 @@ _wrap_new_MemcachedContinuumItemSt(int argc, VALUE *argv, VALUE self) {
|
|
2320
2347
|
if ((argc < 0) || (argc > 0)) {
|
2321
2348
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
2322
2349
|
}
|
2323
|
-
result = (struct memcached_continuum_item_st *)
|
2324
|
-
|
2350
|
+
result = (struct memcached_continuum_item_st *)calloc(1, sizeof(struct memcached_continuum_item_st));
|
2351
|
+
DATA_PTR(self) = result;
|
2325
2352
|
return self;
|
2326
2353
|
fail:
|
2327
2354
|
return Qnil;
|
@@ -2364,7 +2391,6 @@ _wrap_MemcachedStatSt_pid_set(int argc, VALUE *argv, VALUE self) {
|
|
2364
2391
|
}
|
2365
2392
|
}
|
2366
2393
|
if (arg1) (arg1)->pid = arg2;
|
2367
|
-
|
2368
2394
|
return Qnil;
|
2369
2395
|
fail:
|
2370
2396
|
return Qnil;
|
@@ -2374,9 +2400,9 @@ fail:
|
|
2374
2400
|
SWIGINTERN VALUE
|
2375
2401
|
_wrap_MemcachedStatSt_pid_get(int argc, VALUE *argv, VALUE self) {
|
2376
2402
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2377
|
-
uint32_t result;
|
2378
2403
|
void *argp1 = 0 ;
|
2379
2404
|
int res1 = 0 ;
|
2405
|
+
uint32_t result;
|
2380
2406
|
VALUE vresult = Qnil;
|
2381
2407
|
|
2382
2408
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2424,7 +2450,6 @@ _wrap_MemcachedStatSt_uptime_set(int argc, VALUE *argv, VALUE self) {
|
|
2424
2450
|
}
|
2425
2451
|
}
|
2426
2452
|
if (arg1) (arg1)->uptime = arg2;
|
2427
|
-
|
2428
2453
|
return Qnil;
|
2429
2454
|
fail:
|
2430
2455
|
return Qnil;
|
@@ -2434,9 +2459,9 @@ fail:
|
|
2434
2459
|
SWIGINTERN VALUE
|
2435
2460
|
_wrap_MemcachedStatSt_uptime_get(int argc, VALUE *argv, VALUE self) {
|
2436
2461
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2437
|
-
uint32_t result;
|
2438
2462
|
void *argp1 = 0 ;
|
2439
2463
|
int res1 = 0 ;
|
2464
|
+
uint32_t result;
|
2440
2465
|
VALUE vresult = Qnil;
|
2441
2466
|
|
2442
2467
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2484,7 +2509,6 @@ _wrap_MemcachedStatSt_threads_set(int argc, VALUE *argv, VALUE self) {
|
|
2484
2509
|
}
|
2485
2510
|
}
|
2486
2511
|
if (arg1) (arg1)->threads = arg2;
|
2487
|
-
|
2488
2512
|
return Qnil;
|
2489
2513
|
fail:
|
2490
2514
|
return Qnil;
|
@@ -2494,9 +2518,9 @@ fail:
|
|
2494
2518
|
SWIGINTERN VALUE
|
2495
2519
|
_wrap_MemcachedStatSt_threads_get(int argc, VALUE *argv, VALUE self) {
|
2496
2520
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2497
|
-
uint32_t result;
|
2498
2521
|
void *argp1 = 0 ;
|
2499
2522
|
int res1 = 0 ;
|
2523
|
+
uint32_t result;
|
2500
2524
|
VALUE vresult = Qnil;
|
2501
2525
|
|
2502
2526
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2544,7 +2568,6 @@ _wrap_MemcachedStatSt_time_set(int argc, VALUE *argv, VALUE self) {
|
|
2544
2568
|
}
|
2545
2569
|
}
|
2546
2570
|
if (arg1) (arg1)->time = arg2;
|
2547
|
-
|
2548
2571
|
return Qnil;
|
2549
2572
|
fail:
|
2550
2573
|
return Qnil;
|
@@ -2554,9 +2577,9 @@ fail:
|
|
2554
2577
|
SWIGINTERN VALUE
|
2555
2578
|
_wrap_MemcachedStatSt_time_get(int argc, VALUE *argv, VALUE self) {
|
2556
2579
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2557
|
-
uint32_t result;
|
2558
2580
|
void *argp1 = 0 ;
|
2559
2581
|
int res1 = 0 ;
|
2582
|
+
uint32_t result;
|
2560
2583
|
VALUE vresult = Qnil;
|
2561
2584
|
|
2562
2585
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2604,7 +2627,6 @@ _wrap_MemcachedStatSt_pointer_size_set(int argc, VALUE *argv, VALUE self) {
|
|
2604
2627
|
}
|
2605
2628
|
}
|
2606
2629
|
if (arg1) (arg1)->pointer_size = arg2;
|
2607
|
-
|
2608
2630
|
return Qnil;
|
2609
2631
|
fail:
|
2610
2632
|
return Qnil;
|
@@ -2614,9 +2636,9 @@ fail:
|
|
2614
2636
|
SWIGINTERN VALUE
|
2615
2637
|
_wrap_MemcachedStatSt_pointer_size_get(int argc, VALUE *argv, VALUE self) {
|
2616
2638
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2617
|
-
uint32_t result;
|
2618
2639
|
void *argp1 = 0 ;
|
2619
2640
|
int res1 = 0 ;
|
2641
|
+
uint32_t result;
|
2620
2642
|
VALUE vresult = Qnil;
|
2621
2643
|
|
2622
2644
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2664,7 +2686,6 @@ _wrap_MemcachedStatSt_rusage_user_seconds_set(int argc, VALUE *argv, VALUE self)
|
|
2664
2686
|
}
|
2665
2687
|
}
|
2666
2688
|
if (arg1) (arg1)->rusage_user_seconds = arg2;
|
2667
|
-
|
2668
2689
|
return Qnil;
|
2669
2690
|
fail:
|
2670
2691
|
return Qnil;
|
@@ -2674,9 +2695,9 @@ fail:
|
|
2674
2695
|
SWIGINTERN VALUE
|
2675
2696
|
_wrap_MemcachedStatSt_rusage_user_seconds_get(int argc, VALUE *argv, VALUE self) {
|
2676
2697
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2677
|
-
uint32_t result;
|
2678
2698
|
void *argp1 = 0 ;
|
2679
2699
|
int res1 = 0 ;
|
2700
|
+
uint32_t result;
|
2680
2701
|
VALUE vresult = Qnil;
|
2681
2702
|
|
2682
2703
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2724,7 +2745,6 @@ _wrap_MemcachedStatSt_rusage_user_microseconds_set(int argc, VALUE *argv, VALUE
|
|
2724
2745
|
}
|
2725
2746
|
}
|
2726
2747
|
if (arg1) (arg1)->rusage_user_microseconds = arg2;
|
2727
|
-
|
2728
2748
|
return Qnil;
|
2729
2749
|
fail:
|
2730
2750
|
return Qnil;
|
@@ -2734,9 +2754,9 @@ fail:
|
|
2734
2754
|
SWIGINTERN VALUE
|
2735
2755
|
_wrap_MemcachedStatSt_rusage_user_microseconds_get(int argc, VALUE *argv, VALUE self) {
|
2736
2756
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2737
|
-
uint32_t result;
|
2738
2757
|
void *argp1 = 0 ;
|
2739
2758
|
int res1 = 0 ;
|
2759
|
+
uint32_t result;
|
2740
2760
|
VALUE vresult = Qnil;
|
2741
2761
|
|
2742
2762
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2784,7 +2804,6 @@ _wrap_MemcachedStatSt_rusage_system_seconds_set(int argc, VALUE *argv, VALUE sel
|
|
2784
2804
|
}
|
2785
2805
|
}
|
2786
2806
|
if (arg1) (arg1)->rusage_system_seconds = arg2;
|
2787
|
-
|
2788
2807
|
return Qnil;
|
2789
2808
|
fail:
|
2790
2809
|
return Qnil;
|
@@ -2794,9 +2813,9 @@ fail:
|
|
2794
2813
|
SWIGINTERN VALUE
|
2795
2814
|
_wrap_MemcachedStatSt_rusage_system_seconds_get(int argc, VALUE *argv, VALUE self) {
|
2796
2815
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2797
|
-
uint32_t result;
|
2798
2816
|
void *argp1 = 0 ;
|
2799
2817
|
int res1 = 0 ;
|
2818
|
+
uint32_t result;
|
2800
2819
|
VALUE vresult = Qnil;
|
2801
2820
|
|
2802
2821
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2844,7 +2863,6 @@ _wrap_MemcachedStatSt_rusage_system_microseconds_set(int argc, VALUE *argv, VALU
|
|
2844
2863
|
}
|
2845
2864
|
}
|
2846
2865
|
if (arg1) (arg1)->rusage_system_microseconds = arg2;
|
2847
|
-
|
2848
2866
|
return Qnil;
|
2849
2867
|
fail:
|
2850
2868
|
return Qnil;
|
@@ -2854,9 +2872,9 @@ fail:
|
|
2854
2872
|
SWIGINTERN VALUE
|
2855
2873
|
_wrap_MemcachedStatSt_rusage_system_microseconds_get(int argc, VALUE *argv, VALUE self) {
|
2856
2874
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2857
|
-
uint32_t result;
|
2858
2875
|
void *argp1 = 0 ;
|
2859
2876
|
int res1 = 0 ;
|
2877
|
+
uint32_t result;
|
2860
2878
|
VALUE vresult = Qnil;
|
2861
2879
|
|
2862
2880
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2904,7 +2922,6 @@ _wrap_MemcachedStatSt_curr_items_set(int argc, VALUE *argv, VALUE self) {
|
|
2904
2922
|
}
|
2905
2923
|
}
|
2906
2924
|
if (arg1) (arg1)->curr_items = arg2;
|
2907
|
-
|
2908
2925
|
return Qnil;
|
2909
2926
|
fail:
|
2910
2927
|
return Qnil;
|
@@ -2914,9 +2931,9 @@ fail:
|
|
2914
2931
|
SWIGINTERN VALUE
|
2915
2932
|
_wrap_MemcachedStatSt_curr_items_get(int argc, VALUE *argv, VALUE self) {
|
2916
2933
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2917
|
-
uint32_t result;
|
2918
2934
|
void *argp1 = 0 ;
|
2919
2935
|
int res1 = 0 ;
|
2936
|
+
uint32_t result;
|
2920
2937
|
VALUE vresult = Qnil;
|
2921
2938
|
|
2922
2939
|
if ((argc < 0) || (argc > 0)) {
|
@@ -2964,7 +2981,6 @@ _wrap_MemcachedStatSt_total_items_set(int argc, VALUE *argv, VALUE self) {
|
|
2964
2981
|
}
|
2965
2982
|
}
|
2966
2983
|
if (arg1) (arg1)->total_items = arg2;
|
2967
|
-
|
2968
2984
|
return Qnil;
|
2969
2985
|
fail:
|
2970
2986
|
return Qnil;
|
@@ -2974,9 +2990,9 @@ fail:
|
|
2974
2990
|
SWIGINTERN VALUE
|
2975
2991
|
_wrap_MemcachedStatSt_total_items_get(int argc, VALUE *argv, VALUE self) {
|
2976
2992
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
2977
|
-
uint32_t result;
|
2978
2993
|
void *argp1 = 0 ;
|
2979
2994
|
int res1 = 0 ;
|
2995
|
+
uint32_t result;
|
2980
2996
|
VALUE vresult = Qnil;
|
2981
2997
|
|
2982
2998
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3024,7 +3040,6 @@ _wrap_MemcachedStatSt_limit_maxbytes_set(int argc, VALUE *argv, VALUE self) {
|
|
3024
3040
|
}
|
3025
3041
|
}
|
3026
3042
|
if (arg1) (arg1)->limit_maxbytes = arg2;
|
3027
|
-
|
3028
3043
|
return Qnil;
|
3029
3044
|
fail:
|
3030
3045
|
return Qnil;
|
@@ -3034,9 +3049,9 @@ fail:
|
|
3034
3049
|
SWIGINTERN VALUE
|
3035
3050
|
_wrap_MemcachedStatSt_limit_maxbytes_get(int argc, VALUE *argv, VALUE self) {
|
3036
3051
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3037
|
-
uint64_t result;
|
3038
3052
|
void *argp1 = 0 ;
|
3039
3053
|
int res1 = 0 ;
|
3054
|
+
uint64_t result;
|
3040
3055
|
VALUE vresult = Qnil;
|
3041
3056
|
|
3042
3057
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3086,7 +3101,6 @@ _wrap_MemcachedStatSt_curr_connections_set(int argc, VALUE *argv, VALUE self) {
|
|
3086
3101
|
}
|
3087
3102
|
}
|
3088
3103
|
if (arg1) (arg1)->curr_connections = arg2;
|
3089
|
-
|
3090
3104
|
return Qnil;
|
3091
3105
|
fail:
|
3092
3106
|
return Qnil;
|
@@ -3096,9 +3110,9 @@ fail:
|
|
3096
3110
|
SWIGINTERN VALUE
|
3097
3111
|
_wrap_MemcachedStatSt_curr_connections_get(int argc, VALUE *argv, VALUE self) {
|
3098
3112
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3099
|
-
uint32_t result;
|
3100
3113
|
void *argp1 = 0 ;
|
3101
3114
|
int res1 = 0 ;
|
3115
|
+
uint32_t result;
|
3102
3116
|
VALUE vresult = Qnil;
|
3103
3117
|
|
3104
3118
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3146,7 +3160,6 @@ _wrap_MemcachedStatSt_total_connections_set(int argc, VALUE *argv, VALUE self) {
|
|
3146
3160
|
}
|
3147
3161
|
}
|
3148
3162
|
if (arg1) (arg1)->total_connections = arg2;
|
3149
|
-
|
3150
3163
|
return Qnil;
|
3151
3164
|
fail:
|
3152
3165
|
return Qnil;
|
@@ -3156,9 +3169,9 @@ fail:
|
|
3156
3169
|
SWIGINTERN VALUE
|
3157
3170
|
_wrap_MemcachedStatSt_total_connections_get(int argc, VALUE *argv, VALUE self) {
|
3158
3171
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3159
|
-
uint32_t result;
|
3160
3172
|
void *argp1 = 0 ;
|
3161
3173
|
int res1 = 0 ;
|
3174
|
+
uint32_t result;
|
3162
3175
|
VALUE vresult = Qnil;
|
3163
3176
|
|
3164
3177
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3206,7 +3219,6 @@ _wrap_MemcachedStatSt_connection_structures_set(int argc, VALUE *argv, VALUE sel
|
|
3206
3219
|
}
|
3207
3220
|
}
|
3208
3221
|
if (arg1) (arg1)->connection_structures = arg2;
|
3209
|
-
|
3210
3222
|
return Qnil;
|
3211
3223
|
fail:
|
3212
3224
|
return Qnil;
|
@@ -3216,9 +3228,9 @@ fail:
|
|
3216
3228
|
SWIGINTERN VALUE
|
3217
3229
|
_wrap_MemcachedStatSt_connection_structures_get(int argc, VALUE *argv, VALUE self) {
|
3218
3230
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3219
|
-
uint32_t result;
|
3220
3231
|
void *argp1 = 0 ;
|
3221
3232
|
int res1 = 0 ;
|
3233
|
+
uint32_t result;
|
3222
3234
|
VALUE vresult = Qnil;
|
3223
3235
|
|
3224
3236
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3266,7 +3278,6 @@ _wrap_MemcachedStatSt_bytes_set(int argc, VALUE *argv, VALUE self) {
|
|
3266
3278
|
}
|
3267
3279
|
}
|
3268
3280
|
if (arg1) (arg1)->bytes = arg2;
|
3269
|
-
|
3270
3281
|
return Qnil;
|
3271
3282
|
fail:
|
3272
3283
|
return Qnil;
|
@@ -3276,9 +3287,9 @@ fail:
|
|
3276
3287
|
SWIGINTERN VALUE
|
3277
3288
|
_wrap_MemcachedStatSt_bytes_get(int argc, VALUE *argv, VALUE self) {
|
3278
3289
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3279
|
-
uint64_t result;
|
3280
3290
|
void *argp1 = 0 ;
|
3281
3291
|
int res1 = 0 ;
|
3292
|
+
uint64_t result;
|
3282
3293
|
VALUE vresult = Qnil;
|
3283
3294
|
|
3284
3295
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3328,7 +3339,6 @@ _wrap_MemcachedStatSt_cmd_get_set(int argc, VALUE *argv, VALUE self) {
|
|
3328
3339
|
}
|
3329
3340
|
}
|
3330
3341
|
if (arg1) (arg1)->cmd_get = arg2;
|
3331
|
-
|
3332
3342
|
return Qnil;
|
3333
3343
|
fail:
|
3334
3344
|
return Qnil;
|
@@ -3338,9 +3348,9 @@ fail:
|
|
3338
3348
|
SWIGINTERN VALUE
|
3339
3349
|
_wrap_MemcachedStatSt_cmd_get_get(int argc, VALUE *argv, VALUE self) {
|
3340
3350
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3341
|
-
uint64_t result;
|
3342
3351
|
void *argp1 = 0 ;
|
3343
3352
|
int res1 = 0 ;
|
3353
|
+
uint64_t result;
|
3344
3354
|
VALUE vresult = Qnil;
|
3345
3355
|
|
3346
3356
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3390,7 +3400,6 @@ _wrap_MemcachedStatSt_cmd_set_set(int argc, VALUE *argv, VALUE self) {
|
|
3390
3400
|
}
|
3391
3401
|
}
|
3392
3402
|
if (arg1) (arg1)->cmd_set = arg2;
|
3393
|
-
|
3394
3403
|
return Qnil;
|
3395
3404
|
fail:
|
3396
3405
|
return Qnil;
|
@@ -3400,9 +3409,9 @@ fail:
|
|
3400
3409
|
SWIGINTERN VALUE
|
3401
3410
|
_wrap_MemcachedStatSt_cmd_set_get(int argc, VALUE *argv, VALUE self) {
|
3402
3411
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3403
|
-
uint64_t result;
|
3404
3412
|
void *argp1 = 0 ;
|
3405
3413
|
int res1 = 0 ;
|
3414
|
+
uint64_t result;
|
3406
3415
|
VALUE vresult = Qnil;
|
3407
3416
|
|
3408
3417
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3452,7 +3461,6 @@ _wrap_MemcachedStatSt_get_hits_set(int argc, VALUE *argv, VALUE self) {
|
|
3452
3461
|
}
|
3453
3462
|
}
|
3454
3463
|
if (arg1) (arg1)->get_hits = arg2;
|
3455
|
-
|
3456
3464
|
return Qnil;
|
3457
3465
|
fail:
|
3458
3466
|
return Qnil;
|
@@ -3462,9 +3470,9 @@ fail:
|
|
3462
3470
|
SWIGINTERN VALUE
|
3463
3471
|
_wrap_MemcachedStatSt_get_hits_get(int argc, VALUE *argv, VALUE self) {
|
3464
3472
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3465
|
-
uint64_t result;
|
3466
3473
|
void *argp1 = 0 ;
|
3467
3474
|
int res1 = 0 ;
|
3475
|
+
uint64_t result;
|
3468
3476
|
VALUE vresult = Qnil;
|
3469
3477
|
|
3470
3478
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3514,7 +3522,6 @@ _wrap_MemcachedStatSt_get_misses_set(int argc, VALUE *argv, VALUE self) {
|
|
3514
3522
|
}
|
3515
3523
|
}
|
3516
3524
|
if (arg1) (arg1)->get_misses = arg2;
|
3517
|
-
|
3518
3525
|
return Qnil;
|
3519
3526
|
fail:
|
3520
3527
|
return Qnil;
|
@@ -3524,9 +3531,9 @@ fail:
|
|
3524
3531
|
SWIGINTERN VALUE
|
3525
3532
|
_wrap_MemcachedStatSt_get_misses_get(int argc, VALUE *argv, VALUE self) {
|
3526
3533
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3527
|
-
uint64_t result;
|
3528
3534
|
void *argp1 = 0 ;
|
3529
3535
|
int res1 = 0 ;
|
3536
|
+
uint64_t result;
|
3530
3537
|
VALUE vresult = Qnil;
|
3531
3538
|
|
3532
3539
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3576,7 +3583,6 @@ _wrap_MemcachedStatSt_evictions_set(int argc, VALUE *argv, VALUE self) {
|
|
3576
3583
|
}
|
3577
3584
|
}
|
3578
3585
|
if (arg1) (arg1)->evictions = arg2;
|
3579
|
-
|
3580
3586
|
return Qnil;
|
3581
3587
|
fail:
|
3582
3588
|
return Qnil;
|
@@ -3586,9 +3592,9 @@ fail:
|
|
3586
3592
|
SWIGINTERN VALUE
|
3587
3593
|
_wrap_MemcachedStatSt_evictions_get(int argc, VALUE *argv, VALUE self) {
|
3588
3594
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3589
|
-
uint64_t result;
|
3590
3595
|
void *argp1 = 0 ;
|
3591
3596
|
int res1 = 0 ;
|
3597
|
+
uint64_t result;
|
3592
3598
|
VALUE vresult = Qnil;
|
3593
3599
|
|
3594
3600
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3638,7 +3644,6 @@ _wrap_MemcachedStatSt_bytes_read_set(int argc, VALUE *argv, VALUE self) {
|
|
3638
3644
|
}
|
3639
3645
|
}
|
3640
3646
|
if (arg1) (arg1)->bytes_read = arg2;
|
3641
|
-
|
3642
3647
|
return Qnil;
|
3643
3648
|
fail:
|
3644
3649
|
return Qnil;
|
@@ -3648,9 +3653,9 @@ fail:
|
|
3648
3653
|
SWIGINTERN VALUE
|
3649
3654
|
_wrap_MemcachedStatSt_bytes_read_get(int argc, VALUE *argv, VALUE self) {
|
3650
3655
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3651
|
-
uint64_t result;
|
3652
3656
|
void *argp1 = 0 ;
|
3653
3657
|
int res1 = 0 ;
|
3658
|
+
uint64_t result;
|
3654
3659
|
VALUE vresult = Qnil;
|
3655
3660
|
|
3656
3661
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3700,7 +3705,6 @@ _wrap_MemcachedStatSt_bytes_written_set(int argc, VALUE *argv, VALUE self) {
|
|
3700
3705
|
}
|
3701
3706
|
}
|
3702
3707
|
if (arg1) (arg1)->bytes_written = arg2;
|
3703
|
-
|
3704
3708
|
return Qnil;
|
3705
3709
|
fail:
|
3706
3710
|
return Qnil;
|
@@ -3710,9 +3714,9 @@ fail:
|
|
3710
3714
|
SWIGINTERN VALUE
|
3711
3715
|
_wrap_MemcachedStatSt_bytes_written_get(int argc, VALUE *argv, VALUE self) {
|
3712
3716
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3713
|
-
uint64_t result;
|
3714
3717
|
void *argp1 = 0 ;
|
3715
3718
|
int res1 = 0 ;
|
3719
|
+
uint64_t result;
|
3716
3720
|
VALUE vresult = Qnil;
|
3717
3721
|
|
3718
3722
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3766,9 +3770,9 @@ fail:
|
|
3766
3770
|
SWIGINTERN VALUE
|
3767
3771
|
_wrap_MemcachedStatSt_version_get(int argc, VALUE *argv, VALUE self) {
|
3768
3772
|
struct memcached_stat_st *arg1 = (struct memcached_stat_st *) 0 ;
|
3769
|
-
char *result = 0 ;
|
3770
3773
|
void *argp1 = 0 ;
|
3771
3774
|
int res1 = 0 ;
|
3775
|
+
char *result = 0 ;
|
3772
3776
|
VALUE vresult = Qnil;
|
3773
3777
|
|
3774
3778
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3817,8 +3821,8 @@ _wrap_new_MemcachedStatSt(int argc, VALUE *argv, VALUE self) {
|
|
3817
3821
|
if ((argc < 0) || (argc > 0)) {
|
3818
3822
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
3819
3823
|
}
|
3820
|
-
result = (struct memcached_stat_st *)
|
3821
|
-
|
3824
|
+
result = (struct memcached_stat_st *)calloc(1, sizeof(struct memcached_stat_st));
|
3825
|
+
DATA_PTR(self) = result;
|
3822
3826
|
return self;
|
3823
3827
|
fail:
|
3824
3828
|
return Qnil;
|
@@ -3855,7 +3859,6 @@ _wrap_MemcachedSt_is_allocated_set(int argc, VALUE *argv, VALUE self) {
|
|
3855
3859
|
}
|
3856
3860
|
arg2 = (memcached_allocated)(val2);
|
3857
3861
|
if (arg1) (arg1)->is_allocated = arg2;
|
3858
|
-
|
3859
3862
|
return Qnil;
|
3860
3863
|
fail:
|
3861
3864
|
return Qnil;
|
@@ -3865,9 +3868,9 @@ fail:
|
|
3865
3868
|
SWIGINTERN VALUE
|
3866
3869
|
_wrap_MemcachedSt_is_allocated_get(int argc, VALUE *argv, VALUE self) {
|
3867
3870
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
3868
|
-
memcached_allocated result;
|
3869
3871
|
void *argp1 = 0 ;
|
3870
3872
|
int res1 = 0 ;
|
3873
|
+
memcached_allocated result;
|
3871
3874
|
VALUE vresult = Qnil;
|
3872
3875
|
|
3873
3876
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3909,7 +3912,6 @@ _wrap_MemcachedSt_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
3909
3912
|
}
|
3910
3913
|
arg2 = (memcached_server_st *)(argp2);
|
3911
3914
|
if (arg1) (arg1)->hosts = arg2;
|
3912
|
-
|
3913
3915
|
return Qnil;
|
3914
3916
|
fail:
|
3915
3917
|
return Qnil;
|
@@ -3919,9 +3921,9 @@ fail:
|
|
3919
3921
|
SWIGINTERN VALUE
|
3920
3922
|
_wrap_MemcachedSt_hosts_get(int argc, VALUE *argv, VALUE self) {
|
3921
3923
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
3922
|
-
memcached_server_st *result = 0 ;
|
3923
3924
|
void *argp1 = 0 ;
|
3924
3925
|
int res1 = 0 ;
|
3926
|
+
memcached_server_st *result = 0 ;
|
3925
3927
|
VALUE vresult = Qnil;
|
3926
3928
|
|
3927
3929
|
if ((argc < 0) || (argc > 0)) {
|
@@ -3963,7 +3965,6 @@ _wrap_MemcachedSt_number_of_hosts_set(int argc, VALUE *argv, VALUE self) {
|
|
3963
3965
|
}
|
3964
3966
|
arg2 = (unsigned int)(val2);
|
3965
3967
|
if (arg1) (arg1)->number_of_hosts = arg2;
|
3966
|
-
|
3967
3968
|
return Qnil;
|
3968
3969
|
fail:
|
3969
3970
|
return Qnil;
|
@@ -3973,9 +3974,9 @@ fail:
|
|
3973
3974
|
SWIGINTERN VALUE
|
3974
3975
|
_wrap_MemcachedSt_number_of_hosts_get(int argc, VALUE *argv, VALUE self) {
|
3975
3976
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
3976
|
-
unsigned int result;
|
3977
3977
|
void *argp1 = 0 ;
|
3978
3978
|
int res1 = 0 ;
|
3979
|
+
unsigned int result;
|
3979
3980
|
VALUE vresult = Qnil;
|
3980
3981
|
|
3981
3982
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4017,7 +4018,6 @@ _wrap_MemcachedSt_cursor_server_set(int argc, VALUE *argv, VALUE self) {
|
|
4017
4018
|
}
|
4018
4019
|
arg2 = (unsigned int)(val2);
|
4019
4020
|
if (arg1) (arg1)->cursor_server = arg2;
|
4020
|
-
|
4021
4021
|
return Qnil;
|
4022
4022
|
fail:
|
4023
4023
|
return Qnil;
|
@@ -4027,9 +4027,9 @@ fail:
|
|
4027
4027
|
SWIGINTERN VALUE
|
4028
4028
|
_wrap_MemcachedSt_cursor_server_get(int argc, VALUE *argv, VALUE self) {
|
4029
4029
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4030
|
-
unsigned int result;
|
4031
4030
|
void *argp1 = 0 ;
|
4032
4031
|
int res1 = 0 ;
|
4032
|
+
unsigned int result;
|
4033
4033
|
VALUE vresult = Qnil;
|
4034
4034
|
|
4035
4035
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4071,7 +4071,6 @@ _wrap_MemcachedSt_cached_errno_set(int argc, VALUE *argv, VALUE self) {
|
|
4071
4071
|
}
|
4072
4072
|
arg2 = (int)(val2);
|
4073
4073
|
if (arg1) (arg1)->cached_errno = arg2;
|
4074
|
-
|
4075
4074
|
return Qnil;
|
4076
4075
|
fail:
|
4077
4076
|
return Qnil;
|
@@ -4081,9 +4080,9 @@ fail:
|
|
4081
4080
|
SWIGINTERN VALUE
|
4082
4081
|
_wrap_MemcachedSt_cached_errno_get(int argc, VALUE *argv, VALUE self) {
|
4083
4082
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4084
|
-
int result;
|
4085
4083
|
void *argp1 = 0 ;
|
4086
4084
|
int res1 = 0 ;
|
4085
|
+
int result;
|
4087
4086
|
VALUE vresult = Qnil;
|
4088
4087
|
|
4089
4088
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4125,7 +4124,6 @@ _wrap_MemcachedSt_flags_set(int argc, VALUE *argv, VALUE self) {
|
|
4125
4124
|
}
|
4126
4125
|
arg2 = (uint32_t)(val2);
|
4127
4126
|
if (arg1) (arg1)->flags = arg2;
|
4128
|
-
|
4129
4127
|
return Qnil;
|
4130
4128
|
fail:
|
4131
4129
|
return Qnil;
|
@@ -4135,9 +4133,9 @@ fail:
|
|
4135
4133
|
SWIGINTERN VALUE
|
4136
4134
|
_wrap_MemcachedSt_flags_get(int argc, VALUE *argv, VALUE self) {
|
4137
4135
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4138
|
-
uint32_t result;
|
4139
4136
|
void *argp1 = 0 ;
|
4140
4137
|
int res1 = 0 ;
|
4138
|
+
uint32_t result;
|
4141
4139
|
VALUE vresult = Qnil;
|
4142
4140
|
|
4143
4141
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4179,7 +4177,6 @@ _wrap_MemcachedSt_send_size_set(int argc, VALUE *argv, VALUE self) {
|
|
4179
4177
|
}
|
4180
4178
|
arg2 = (int)(val2);
|
4181
4179
|
if (arg1) (arg1)->send_size = arg2;
|
4182
|
-
|
4183
4180
|
return Qnil;
|
4184
4181
|
fail:
|
4185
4182
|
return Qnil;
|
@@ -4189,9 +4186,9 @@ fail:
|
|
4189
4186
|
SWIGINTERN VALUE
|
4190
4187
|
_wrap_MemcachedSt_send_size_get(int argc, VALUE *argv, VALUE self) {
|
4191
4188
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4192
|
-
int result;
|
4193
4189
|
void *argp1 = 0 ;
|
4194
4190
|
int res1 = 0 ;
|
4191
|
+
int result;
|
4195
4192
|
VALUE vresult = Qnil;
|
4196
4193
|
|
4197
4194
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4233,7 +4230,6 @@ _wrap_MemcachedSt_recv_size_set(int argc, VALUE *argv, VALUE self) {
|
|
4233
4230
|
}
|
4234
4231
|
arg2 = (int)(val2);
|
4235
4232
|
if (arg1) (arg1)->recv_size = arg2;
|
4236
|
-
|
4237
4233
|
return Qnil;
|
4238
4234
|
fail:
|
4239
4235
|
return Qnil;
|
@@ -4243,9 +4239,9 @@ fail:
|
|
4243
4239
|
SWIGINTERN VALUE
|
4244
4240
|
_wrap_MemcachedSt_recv_size_get(int argc, VALUE *argv, VALUE self) {
|
4245
4241
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4246
|
-
int result;
|
4247
4242
|
void *argp1 = 0 ;
|
4248
4243
|
int res1 = 0 ;
|
4244
|
+
int result;
|
4249
4245
|
VALUE vresult = Qnil;
|
4250
4246
|
|
4251
4247
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4293,7 +4289,6 @@ _wrap_MemcachedSt_poll_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
4293
4289
|
}
|
4294
4290
|
}
|
4295
4291
|
if (arg1) (arg1)->poll_timeout = arg2;
|
4296
|
-
|
4297
4292
|
return Qnil;
|
4298
4293
|
fail:
|
4299
4294
|
return Qnil;
|
@@ -4303,9 +4298,9 @@ fail:
|
|
4303
4298
|
SWIGINTERN VALUE
|
4304
4299
|
_wrap_MemcachedSt_poll_timeout_get(int argc, VALUE *argv, VALUE self) {
|
4305
4300
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4306
|
-
int32_t result;
|
4307
4301
|
void *argp1 = 0 ;
|
4308
4302
|
int res1 = 0 ;
|
4303
|
+
int32_t result;
|
4309
4304
|
VALUE vresult = Qnil;
|
4310
4305
|
|
4311
4306
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4353,7 +4348,6 @@ _wrap_MemcachedSt_connect_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
4353
4348
|
}
|
4354
4349
|
}
|
4355
4350
|
if (arg1) (arg1)->connect_timeout = arg2;
|
4356
|
-
|
4357
4351
|
return Qnil;
|
4358
4352
|
fail:
|
4359
4353
|
return Qnil;
|
@@ -4363,9 +4357,9 @@ fail:
|
|
4363
4357
|
SWIGINTERN VALUE
|
4364
4358
|
_wrap_MemcachedSt_connect_timeout_get(int argc, VALUE *argv, VALUE self) {
|
4365
4359
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4366
|
-
int32_t result;
|
4367
4360
|
void *argp1 = 0 ;
|
4368
4361
|
int res1 = 0 ;
|
4362
|
+
int32_t result;
|
4369
4363
|
VALUE vresult = Qnil;
|
4370
4364
|
|
4371
4365
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4413,7 +4407,6 @@ _wrap_MemcachedSt_retry_timeout_set(int argc, VALUE *argv, VALUE self) {
|
|
4413
4407
|
}
|
4414
4408
|
}
|
4415
4409
|
if (arg1) (arg1)->retry_timeout = arg2;
|
4416
|
-
|
4417
4410
|
return Qnil;
|
4418
4411
|
fail:
|
4419
4412
|
return Qnil;
|
@@ -4423,9 +4416,9 @@ fail:
|
|
4423
4416
|
SWIGINTERN VALUE
|
4424
4417
|
_wrap_MemcachedSt_retry_timeout_get(int argc, VALUE *argv, VALUE self) {
|
4425
4418
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4426
|
-
int32_t result;
|
4427
4419
|
void *argp1 = 0 ;
|
4428
4420
|
int res1 = 0 ;
|
4421
|
+
int32_t result;
|
4429
4422
|
VALUE vresult = Qnil;
|
4430
4423
|
|
4431
4424
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4473,7 +4466,6 @@ _wrap_MemcachedSt_result_set(int argc, VALUE *argv, VALUE self) {
|
|
4473
4466
|
}
|
4474
4467
|
}
|
4475
4468
|
if (arg1) (arg1)->result = arg2;
|
4476
|
-
|
4477
4469
|
return Qnil;
|
4478
4470
|
fail:
|
4479
4471
|
return Qnil;
|
@@ -4483,9 +4475,9 @@ fail:
|
|
4483
4475
|
SWIGINTERN VALUE
|
4484
4476
|
_wrap_MemcachedSt_result_get(int argc, VALUE *argv, VALUE self) {
|
4485
4477
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4486
|
-
memcached_result_st result;
|
4487
4478
|
void *argp1 = 0 ;
|
4488
4479
|
int res1 = 0 ;
|
4480
|
+
memcached_result_st result;
|
4489
4481
|
VALUE vresult = Qnil;
|
4490
4482
|
|
4491
4483
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4545,7 +4537,6 @@ _wrap_MemcachedSt_hash_set(int argc, VALUE *argv, VALUE self) {
|
|
4545
4537
|
}
|
4546
4538
|
arg2 = (memcached_hash)(val2);
|
4547
4539
|
if (arg1) (arg1)->hash = arg2;
|
4548
|
-
|
4549
4540
|
return Qnil;
|
4550
4541
|
fail:
|
4551
4542
|
return Qnil;
|
@@ -4555,9 +4546,9 @@ fail:
|
|
4555
4546
|
SWIGINTERN VALUE
|
4556
4547
|
_wrap_MemcachedSt_hash_get(int argc, VALUE *argv, VALUE self) {
|
4557
4548
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4558
|
-
memcached_hash result;
|
4559
4549
|
void *argp1 = 0 ;
|
4560
4550
|
int res1 = 0 ;
|
4551
|
+
memcached_hash result;
|
4561
4552
|
VALUE vresult = Qnil;
|
4562
4553
|
|
4563
4554
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4599,7 +4590,6 @@ _wrap_MemcachedSt_distribution_set(int argc, VALUE *argv, VALUE self) {
|
|
4599
4590
|
}
|
4600
4591
|
arg2 = (memcached_server_distribution)(val2);
|
4601
4592
|
if (arg1) (arg1)->distribution = arg2;
|
4602
|
-
|
4603
4593
|
return Qnil;
|
4604
4594
|
fail:
|
4605
4595
|
return Qnil;
|
@@ -4609,9 +4599,9 @@ fail:
|
|
4609
4599
|
SWIGINTERN VALUE
|
4610
4600
|
_wrap_MemcachedSt_distribution_get(int argc, VALUE *argv, VALUE self) {
|
4611
4601
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4612
|
-
memcached_server_distribution result;
|
4613
4602
|
void *argp1 = 0 ;
|
4614
4603
|
int res1 = 0 ;
|
4604
|
+
memcached_server_distribution result;
|
4615
4605
|
VALUE vresult = Qnil;
|
4616
4606
|
|
4617
4607
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4651,7 +4641,6 @@ _wrap_MemcachedSt_user_data_set(int argc, VALUE *argv, VALUE self) {
|
|
4651
4641
|
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","user_data", 2, argv[0] ));
|
4652
4642
|
}
|
4653
4643
|
if (arg1) (arg1)->user_data = arg2;
|
4654
|
-
|
4655
4644
|
return Qnil;
|
4656
4645
|
fail:
|
4657
4646
|
return Qnil;
|
@@ -4661,9 +4650,9 @@ fail:
|
|
4661
4650
|
SWIGINTERN VALUE
|
4662
4651
|
_wrap_MemcachedSt_user_data_get(int argc, VALUE *argv, VALUE self) {
|
4663
4652
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4664
|
-
void *result = 0 ;
|
4665
4653
|
void *argp1 = 0 ;
|
4666
4654
|
int res1 = 0 ;
|
4655
|
+
void *result = 0 ;
|
4667
4656
|
VALUE vresult = Qnil;
|
4668
4657
|
|
4669
4658
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4705,7 +4694,6 @@ _wrap_MemcachedSt_wheel_set(int argc, VALUE *argv, VALUE self) {
|
|
4705
4694
|
}
|
4706
4695
|
arg2 = (unsigned int *)(argp2);
|
4707
4696
|
if (arg1) (arg1)->wheel = arg2;
|
4708
|
-
|
4709
4697
|
return Qnil;
|
4710
4698
|
fail:
|
4711
4699
|
return Qnil;
|
@@ -4715,9 +4703,9 @@ fail:
|
|
4715
4703
|
SWIGINTERN VALUE
|
4716
4704
|
_wrap_MemcachedSt_wheel_get(int argc, VALUE *argv, VALUE self) {
|
4717
4705
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4718
|
-
unsigned int *result = 0 ;
|
4719
4706
|
void *argp1 = 0 ;
|
4720
4707
|
int res1 = 0 ;
|
4708
|
+
unsigned int *result = 0 ;
|
4721
4709
|
VALUE vresult = Qnil;
|
4722
4710
|
|
4723
4711
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4765,7 +4753,6 @@ _wrap_MemcachedSt_wheel_count_set(int argc, VALUE *argv, VALUE self) {
|
|
4765
4753
|
}
|
4766
4754
|
}
|
4767
4755
|
if (arg1) (arg1)->wheel_count = arg2;
|
4768
|
-
|
4769
4756
|
return Qnil;
|
4770
4757
|
fail:
|
4771
4758
|
return Qnil;
|
@@ -4775,9 +4762,9 @@ fail:
|
|
4775
4762
|
SWIGINTERN VALUE
|
4776
4763
|
_wrap_MemcachedSt_wheel_count_get(int argc, VALUE *argv, VALUE self) {
|
4777
4764
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4778
|
-
uint32_t result;
|
4779
4765
|
void *argp1 = 0 ;
|
4780
4766
|
int res1 = 0 ;
|
4767
|
+
uint32_t result;
|
4781
4768
|
VALUE vresult = Qnil;
|
4782
4769
|
|
4783
4770
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4825,7 +4812,6 @@ _wrap_MemcachedSt_continuum_count_set(int argc, VALUE *argv, VALUE self) {
|
|
4825
4812
|
}
|
4826
4813
|
}
|
4827
4814
|
if (arg1) (arg1)->continuum_count = arg2;
|
4828
|
-
|
4829
4815
|
return Qnil;
|
4830
4816
|
fail:
|
4831
4817
|
return Qnil;
|
@@ -4835,9 +4821,9 @@ fail:
|
|
4835
4821
|
SWIGINTERN VALUE
|
4836
4822
|
_wrap_MemcachedSt_continuum_count_get(int argc, VALUE *argv, VALUE self) {
|
4837
4823
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4838
|
-
uint32_t result;
|
4839
4824
|
void *argp1 = 0 ;
|
4840
4825
|
int res1 = 0 ;
|
4826
|
+
uint32_t result;
|
4841
4827
|
VALUE vresult = Qnil;
|
4842
4828
|
|
4843
4829
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4879,7 +4865,6 @@ _wrap_MemcachedSt_continuum_set(int argc, VALUE *argv, VALUE self) {
|
|
4879
4865
|
}
|
4880
4866
|
arg2 = (memcached_continuum_item_st *)(argp2);
|
4881
4867
|
if (arg1) (arg1)->continuum = arg2;
|
4882
|
-
|
4883
4868
|
return Qnil;
|
4884
4869
|
fail:
|
4885
4870
|
return Qnil;
|
@@ -4889,9 +4874,9 @@ fail:
|
|
4889
4874
|
SWIGINTERN VALUE
|
4890
4875
|
_wrap_MemcachedSt_continuum_get(int argc, VALUE *argv, VALUE self) {
|
4891
4876
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4892
|
-
memcached_continuum_item_st *result = 0 ;
|
4893
4877
|
void *argp1 = 0 ;
|
4894
4878
|
int res1 = 0 ;
|
4879
|
+
memcached_continuum_item_st *result = 0 ;
|
4895
4880
|
VALUE vresult = Qnil;
|
4896
4881
|
|
4897
4882
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4939,7 +4924,6 @@ _wrap_MemcachedSt_on_clone_set(int argc, VALUE *argv, VALUE self) {
|
|
4939
4924
|
}
|
4940
4925
|
}
|
4941
4926
|
if (arg1) (arg1)->on_clone = arg2;
|
4942
|
-
|
4943
4927
|
return Qnil;
|
4944
4928
|
fail:
|
4945
4929
|
return Qnil;
|
@@ -4949,9 +4933,9 @@ fail:
|
|
4949
4933
|
SWIGINTERN VALUE
|
4950
4934
|
_wrap_MemcachedSt_on_clone_get(int argc, VALUE *argv, VALUE self) {
|
4951
4935
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
4952
|
-
memcached_clone_func result;
|
4953
4936
|
void *argp1 = 0 ;
|
4954
4937
|
int res1 = 0 ;
|
4938
|
+
memcached_clone_func result;
|
4955
4939
|
VALUE vresult = Qnil;
|
4956
4940
|
|
4957
4941
|
if ((argc < 0) || (argc > 0)) {
|
@@ -4999,7 +4983,6 @@ _wrap_MemcachedSt_on_cleanup_set(int argc, VALUE *argv, VALUE self) {
|
|
4999
4983
|
}
|
5000
4984
|
}
|
5001
4985
|
if (arg1) (arg1)->on_cleanup = arg2;
|
5002
|
-
|
5003
4986
|
return Qnil;
|
5004
4987
|
fail:
|
5005
4988
|
return Qnil;
|
@@ -5009,9 +4992,9 @@ fail:
|
|
5009
4992
|
SWIGINTERN VALUE
|
5010
4993
|
_wrap_MemcachedSt_on_cleanup_get(int argc, VALUE *argv, VALUE self) {
|
5011
4994
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5012
|
-
memcached_cleanup_func result;
|
5013
4995
|
void *argp1 = 0 ;
|
5014
4996
|
int res1 = 0 ;
|
4997
|
+
memcached_cleanup_func result;
|
5015
4998
|
VALUE vresult = Qnil;
|
5016
4999
|
|
5017
5000
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5059,7 +5042,6 @@ _wrap_MemcachedSt_call_free_set(int argc, VALUE *argv, VALUE self) {
|
|
5059
5042
|
}
|
5060
5043
|
}
|
5061
5044
|
if (arg1) (arg1)->call_free = arg2;
|
5062
|
-
|
5063
5045
|
return Qnil;
|
5064
5046
|
fail:
|
5065
5047
|
return Qnil;
|
@@ -5069,9 +5051,9 @@ fail:
|
|
5069
5051
|
SWIGINTERN VALUE
|
5070
5052
|
_wrap_MemcachedSt_call_free_get(int argc, VALUE *argv, VALUE self) {
|
5071
5053
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5072
|
-
memcached_free_function result;
|
5073
5054
|
void *argp1 = 0 ;
|
5074
5055
|
int res1 = 0 ;
|
5056
|
+
memcached_free_function result;
|
5075
5057
|
VALUE vresult = Qnil;
|
5076
5058
|
|
5077
5059
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5119,7 +5101,6 @@ _wrap_MemcachedSt_call_malloc_set(int argc, VALUE *argv, VALUE self) {
|
|
5119
5101
|
}
|
5120
5102
|
}
|
5121
5103
|
if (arg1) (arg1)->call_malloc = arg2;
|
5122
|
-
|
5123
5104
|
return Qnil;
|
5124
5105
|
fail:
|
5125
5106
|
return Qnil;
|
@@ -5129,9 +5110,9 @@ fail:
|
|
5129
5110
|
SWIGINTERN VALUE
|
5130
5111
|
_wrap_MemcachedSt_call_malloc_get(int argc, VALUE *argv, VALUE self) {
|
5131
5112
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5132
|
-
memcached_malloc_function result;
|
5133
5113
|
void *argp1 = 0 ;
|
5134
5114
|
int res1 = 0 ;
|
5115
|
+
memcached_malloc_function result;
|
5135
5116
|
VALUE vresult = Qnil;
|
5136
5117
|
|
5137
5118
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5179,7 +5160,6 @@ _wrap_MemcachedSt_call_realloc_set(int argc, VALUE *argv, VALUE self) {
|
|
5179
5160
|
}
|
5180
5161
|
}
|
5181
5162
|
if (arg1) (arg1)->call_realloc = arg2;
|
5182
|
-
|
5183
5163
|
return Qnil;
|
5184
5164
|
fail:
|
5185
5165
|
return Qnil;
|
@@ -5189,9 +5169,9 @@ fail:
|
|
5189
5169
|
SWIGINTERN VALUE
|
5190
5170
|
_wrap_MemcachedSt_call_realloc_get(int argc, VALUE *argv, VALUE self) {
|
5191
5171
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5192
|
-
memcached_realloc_function result;
|
5193
5172
|
void *argp1 = 0 ;
|
5194
5173
|
int res1 = 0 ;
|
5174
|
+
memcached_realloc_function result;
|
5195
5175
|
VALUE vresult = Qnil;
|
5196
5176
|
|
5197
5177
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5239,7 +5219,6 @@ _wrap_MemcachedSt_get_key_failure_set(int argc, VALUE *argv, VALUE self) {
|
|
5239
5219
|
}
|
5240
5220
|
}
|
5241
5221
|
if (arg1) (arg1)->get_key_failure = arg2;
|
5242
|
-
|
5243
5222
|
return Qnil;
|
5244
5223
|
fail:
|
5245
5224
|
return Qnil;
|
@@ -5249,9 +5228,9 @@ fail:
|
|
5249
5228
|
SWIGINTERN VALUE
|
5250
5229
|
_wrap_MemcachedSt_get_key_failure_get(int argc, VALUE *argv, VALUE self) {
|
5251
5230
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5252
|
-
memcached_trigger_key result;
|
5253
5231
|
void *argp1 = 0 ;
|
5254
5232
|
int res1 = 0 ;
|
5233
|
+
memcached_trigger_key result;
|
5255
5234
|
VALUE vresult = Qnil;
|
5256
5235
|
|
5257
5236
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5299,7 +5278,6 @@ _wrap_MemcachedSt_delete_trigger_set(int argc, VALUE *argv, VALUE self) {
|
|
5299
5278
|
}
|
5300
5279
|
}
|
5301
5280
|
if (arg1) (arg1)->delete_trigger = arg2;
|
5302
|
-
|
5303
5281
|
return Qnil;
|
5304
5282
|
fail:
|
5305
5283
|
return Qnil;
|
@@ -5309,9 +5287,9 @@ fail:
|
|
5309
5287
|
SWIGINTERN VALUE
|
5310
5288
|
_wrap_MemcachedSt_delete_trigger_get(int argc, VALUE *argv, VALUE self) {
|
5311
5289
|
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5312
|
-
memcached_trigger_delete_key result;
|
5313
5290
|
void *argp1 = 0 ;
|
5314
5291
|
int res1 = 0 ;
|
5292
|
+
memcached_trigger_delete_key result;
|
5315
5293
|
VALUE vresult = Qnil;
|
5316
5294
|
|
5317
5295
|
if ((argc < 0) || (argc > 0)) {
|
@@ -5330,65 +5308,173 @@ fail:
|
|
5330
5308
|
}
|
5331
5309
|
|
5332
5310
|
|
5333
|
-
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5334
|
-
SWIGINTERN VALUE
|
5335
|
-
_wrap_MemcachedSt_allocate(VALUE self) {
|
5336
|
-
#else
|
5337
|
-
SWIGINTERN VALUE
|
5338
|
-
_wrap_MemcachedSt_allocate(int argc, VALUE *argv, VALUE self) {
|
5339
|
-
#endif
|
5340
|
-
|
5341
|
-
|
5342
|
-
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st);
|
5343
|
-
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
5344
|
-
rb_obj_call_init(vresult, argc, argv);
|
5345
|
-
#endif
|
5346
|
-
return vresult;
|
5347
|
-
}
|
5348
|
-
|
5349
|
-
|
5350
5311
|
SWIGINTERN VALUE
|
5351
|
-
|
5352
|
-
struct memcached_st *
|
5312
|
+
_wrap_MemcachedSt_prefix_key_set(int argc, VALUE *argv, VALUE self) {
|
5313
|
+
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5314
|
+
char *arg2 ;
|
5315
|
+
void *argp1 = 0 ;
|
5316
|
+
int res1 = 0 ;
|
5317
|
+
char temp2[MEMCACHED_PREFIX_KEY_MAX_SIZE] ;
|
5318
|
+
int res2 ;
|
5353
5319
|
|
5354
|
-
if ((argc <
|
5355
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for
|
5320
|
+
if ((argc < 1) || (argc > 1)) {
|
5321
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5356
5322
|
}
|
5357
|
-
|
5358
|
-
|
5359
|
-
|
5323
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5324
|
+
if (!SWIG_IsOK(res1)) {
|
5325
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self ));
|
5326
|
+
}
|
5327
|
+
arg1 = (struct memcached_st *)(argp1);
|
5328
|
+
res2 = SWIG_AsCharArray(argv[0], temp2, MEMCACHED_PREFIX_KEY_MAX_SIZE);
|
5329
|
+
if (!SWIG_IsOK(res2)) {
|
5330
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char [MEMCACHED_PREFIX_KEY_MAX_SIZE]","prefix_key", 2, argv[0] ));
|
5331
|
+
}
|
5332
|
+
arg2 = (char *)(temp2);
|
5333
|
+
if (arg2) memcpy(arg1->prefix_key,arg2,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
|
5334
|
+
else memset(arg1->prefix_key,0,MEMCACHED_PREFIX_KEY_MAX_SIZE*sizeof(char));
|
5335
|
+
return Qnil;
|
5360
5336
|
fail:
|
5361
5337
|
return Qnil;
|
5362
5338
|
}
|
5363
5339
|
|
5364
5340
|
|
5365
|
-
SWIGINTERN void
|
5366
|
-
free_memcached_st(struct memcached_st *arg1) {
|
5367
|
-
free((char *) arg1);
|
5368
|
-
}
|
5369
|
-
|
5370
5341
|
SWIGINTERN VALUE
|
5371
|
-
|
5342
|
+
_wrap_MemcachedSt_prefix_key_get(int argc, VALUE *argv, VALUE self) {
|
5343
|
+
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5344
|
+
void *argp1 = 0 ;
|
5345
|
+
int res1 = 0 ;
|
5372
5346
|
char *result = 0 ;
|
5373
5347
|
VALUE vresult = Qnil;
|
5374
5348
|
|
5375
5349
|
if ((argc < 0) || (argc > 0)) {
|
5376
5350
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5377
5351
|
}
|
5378
|
-
|
5379
|
-
|
5380
|
-
|
5381
|
-
|
5382
|
-
|
5383
|
-
|
5384
|
-
|
5352
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5353
|
+
if (!SWIG_IsOK(res1)) {
|
5354
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key", 1, self ));
|
5355
|
+
}
|
5356
|
+
arg1 = (struct memcached_st *)(argp1);
|
5357
|
+
result = (char *)(char *) ((arg1)->prefix_key);
|
5358
|
+
{
|
5359
|
+
size_t size = MEMCACHED_PREFIX_KEY_MAX_SIZE;
|
5360
|
+
|
5361
|
+
while (size && (result[size - 1] == '\0')) --size;
|
5362
|
+
|
5363
|
+
vresult = SWIG_FromCharPtrAndSize(result, size);
|
5364
|
+
}
|
5365
|
+
return vresult;
|
5366
|
+
fail:
|
5367
|
+
return Qnil;
|
5368
|
+
}
|
5369
|
+
|
5370
|
+
|
5371
|
+
SWIGINTERN VALUE
|
5372
|
+
_wrap_MemcachedSt_prefix_key_length_set(int argc, VALUE *argv, VALUE self) {
|
5373
|
+
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5374
|
+
size_t arg2 ;
|
5375
|
+
void *argp1 = 0 ;
|
5376
|
+
int res1 = 0 ;
|
5377
|
+
size_t val2 ;
|
5378
|
+
int ecode2 = 0 ;
|
5379
|
+
|
5380
|
+
if ((argc < 1) || (argc > 1)) {
|
5381
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
5382
|
+
}
|
5383
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5384
|
+
if (!SWIG_IsOK(res1)) {
|
5385
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self ));
|
5386
|
+
}
|
5387
|
+
arg1 = (struct memcached_st *)(argp1);
|
5388
|
+
ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
|
5389
|
+
if (!SWIG_IsOK(ecode2)) {
|
5390
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","prefix_key_length", 2, argv[0] ));
|
5391
|
+
}
|
5392
|
+
arg2 = (size_t)(val2);
|
5393
|
+
if (arg1) (arg1)->prefix_key_length = arg2;
|
5394
|
+
return Qnil;
|
5395
|
+
fail:
|
5396
|
+
return Qnil;
|
5397
|
+
}
|
5398
|
+
|
5399
|
+
|
5400
|
+
SWIGINTERN VALUE
|
5401
|
+
_wrap_MemcachedSt_prefix_key_length_get(int argc, VALUE *argv, VALUE self) {
|
5402
|
+
struct memcached_st *arg1 = (struct memcached_st *) 0 ;
|
5403
|
+
void *argp1 = 0 ;
|
5404
|
+
int res1 = 0 ;
|
5405
|
+
size_t result;
|
5406
|
+
VALUE vresult = Qnil;
|
5407
|
+
|
5408
|
+
if ((argc < 0) || (argc > 0)) {
|
5409
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5410
|
+
}
|
5411
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5412
|
+
if (!SWIG_IsOK(res1)) {
|
5413
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct memcached_st *","prefix_key_length", 1, self ));
|
5414
|
+
}
|
5415
|
+
arg1 = (struct memcached_st *)(argp1);
|
5416
|
+
result = ((arg1)->prefix_key_length);
|
5417
|
+
vresult = SWIG_From_size_t((size_t)(result));
|
5418
|
+
return vresult;
|
5419
|
+
fail:
|
5420
|
+
return Qnil;
|
5421
|
+
}
|
5422
|
+
|
5423
|
+
|
5424
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
5425
|
+
SWIGINTERN VALUE
|
5426
|
+
_wrap_MemcachedSt_allocate(VALUE self) {
|
5427
|
+
#else
|
5428
|
+
SWIGINTERN VALUE
|
5429
|
+
_wrap_MemcachedSt_allocate(int argc, VALUE *argv, VALUE self) {
|
5430
|
+
#endif
|
5431
|
+
|
5432
|
+
|
5433
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_memcached_st);
|
5434
|
+
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
5435
|
+
rb_obj_call_init(vresult, argc, argv);
|
5436
|
+
#endif
|
5437
|
+
return vresult;
|
5438
|
+
}
|
5439
|
+
|
5440
|
+
|
5441
|
+
SWIGINTERN VALUE
|
5442
|
+
_wrap_new_MemcachedSt(int argc, VALUE *argv, VALUE self) {
|
5443
|
+
struct memcached_st *result = 0 ;
|
5444
|
+
|
5445
|
+
if ((argc < 0) || (argc > 0)) {
|
5446
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5447
|
+
}
|
5448
|
+
result = (struct memcached_st *)calloc(1, sizeof(struct memcached_st));
|
5449
|
+
DATA_PTR(self) = result;
|
5450
|
+
return self;
|
5451
|
+
fail:
|
5452
|
+
return Qnil;
|
5453
|
+
}
|
5454
|
+
|
5455
|
+
|
5456
|
+
SWIGINTERN VALUE
|
5457
|
+
_wrap_memcached_lib_version(int argc, VALUE *argv, VALUE self) {
|
5458
|
+
char *result = 0 ;
|
5459
|
+
VALUE vresult = Qnil;
|
5460
|
+
|
5461
|
+
if ((argc < 0) || (argc > 0)) {
|
5462
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
5463
|
+
}
|
5464
|
+
result = (char *)memcached_lib_version();
|
5465
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
5466
|
+
return vresult;
|
5467
|
+
fail:
|
5468
|
+
return Qnil;
|
5469
|
+
}
|
5470
|
+
|
5385
5471
|
|
5386
5472
|
SWIGINTERN VALUE
|
5387
5473
|
_wrap_memcached_create(int argc, VALUE *argv, VALUE self) {
|
5388
5474
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5389
|
-
memcached_st *result = 0 ;
|
5390
5475
|
void *argp1 = 0 ;
|
5391
5476
|
int res1 = 0 ;
|
5477
|
+
memcached_st *result = 0 ;
|
5392
5478
|
VALUE vresult = Qnil;
|
5393
5479
|
|
5394
5480
|
if ((argc < 1) || (argc > 1)) {
|
@@ -5432,11 +5518,11 @@ SWIGINTERN VALUE
|
|
5432
5518
|
_wrap_memcached_clone(int argc, VALUE *argv, VALUE self) {
|
5433
5519
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5434
5520
|
memcached_st *arg2 = (memcached_st *) 0 ;
|
5435
|
-
memcached_st *result = 0 ;
|
5436
5521
|
void *argp1 = 0 ;
|
5437
5522
|
int res1 = 0 ;
|
5438
5523
|
void *argp2 = 0 ;
|
5439
5524
|
int res2 = 0 ;
|
5525
|
+
memcached_st *result = 0 ;
|
5440
5526
|
VALUE vresult = Qnil;
|
5441
5527
|
|
5442
5528
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5466,9 +5552,9 @@ _wrap_memcached_delete(int argc, VALUE *argv, VALUE self) {
|
|
5466
5552
|
char *arg2 = (char *) 0 ;
|
5467
5553
|
size_t arg3 ;
|
5468
5554
|
time_t arg4 ;
|
5469
|
-
memcached_return result;
|
5470
5555
|
void *argp1 = 0 ;
|
5471
5556
|
int res1 = 0 ;
|
5557
|
+
memcached_return result;
|
5472
5558
|
VALUE vresult = Qnil;
|
5473
5559
|
|
5474
5560
|
if ((argc < 3) || (argc > 3)) {
|
@@ -5489,7 +5575,7 @@ _wrap_memcached_delete(int argc, VALUE *argv, VALUE self) {
|
|
5489
5575
|
else
|
5490
5576
|
arg4 = NUM2LONG(rb_funcall(argv[2], rb_intern("tv_sec"), 0));
|
5491
5577
|
}
|
5492
|
-
result = (memcached_return)memcached_delete(arg1,arg2,arg3,arg4);
|
5578
|
+
result = (memcached_return)memcached_delete(arg1,(char const *)arg2,arg3,arg4);
|
5493
5579
|
vresult = SWIG_From_int((int)(result));
|
5494
5580
|
return vresult;
|
5495
5581
|
fail:
|
@@ -5504,13 +5590,13 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
|
|
5504
5590
|
size_t arg3 ;
|
5505
5591
|
uint32_t arg4 ;
|
5506
5592
|
uint64_t *arg5 = (uint64_t *) 0 ;
|
5507
|
-
memcached_return result;
|
5508
5593
|
void *argp1 = 0 ;
|
5509
5594
|
int res1 = 0 ;
|
5510
5595
|
unsigned long val4 ;
|
5511
5596
|
int ecode4 = 0 ;
|
5512
5597
|
uint64_t temp5 ;
|
5513
5598
|
int res5 = SWIG_TMPOBJ ;
|
5599
|
+
memcached_return result;
|
5514
5600
|
VALUE vresult = Qnil;
|
5515
5601
|
|
5516
5602
|
arg5 = &temp5;
|
@@ -5531,7 +5617,7 @@ _wrap_memcached_increment(int argc, VALUE *argv, VALUE self) {
|
|
5531
5617
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_increment", 4, argv[2] ));
|
5532
5618
|
}
|
5533
5619
|
arg4 = (uint32_t)(val4);
|
5534
|
-
result = (memcached_return)memcached_increment(arg1,arg2,arg3,arg4,arg5);
|
5620
|
+
result = (memcached_return)memcached_increment(arg1,(char const *)arg2,arg3,arg4,arg5);
|
5535
5621
|
vresult = SWIG_From_int((int)(result));
|
5536
5622
|
if (SWIG_IsTmpObj(res5)) {
|
5537
5623
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
|
@@ -5552,13 +5638,13 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
|
|
5552
5638
|
size_t arg3 ;
|
5553
5639
|
uint32_t arg4 ;
|
5554
5640
|
uint64_t *arg5 = (uint64_t *) 0 ;
|
5555
|
-
memcached_return result;
|
5556
5641
|
void *argp1 = 0 ;
|
5557
5642
|
int res1 = 0 ;
|
5558
5643
|
unsigned long val4 ;
|
5559
5644
|
int ecode4 = 0 ;
|
5560
5645
|
uint64_t temp5 ;
|
5561
5646
|
int res5 = SWIG_TMPOBJ ;
|
5647
|
+
memcached_return result;
|
5562
5648
|
VALUE vresult = Qnil;
|
5563
5649
|
|
5564
5650
|
arg5 = &temp5;
|
@@ -5579,7 +5665,7 @@ _wrap_memcached_decrement(int argc, VALUE *argv, VALUE self) {
|
|
5579
5665
|
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","memcached_decrement", 4, argv[2] ));
|
5580
5666
|
}
|
5581
5667
|
arg4 = (uint32_t)(val4);
|
5582
|
-
result = (memcached_return)memcached_decrement(arg1,arg2,arg3,arg4,arg5);
|
5668
|
+
result = (memcached_return)memcached_decrement(arg1,(char const *)arg2,arg3,arg4,arg5);
|
5583
5669
|
vresult = SWIG_From_int((int)(result));
|
5584
5670
|
if (SWIG_IsTmpObj(res5)) {
|
5585
5671
|
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_long_SS_long((*arg5)));
|
@@ -5627,7 +5713,6 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) {
|
|
5627
5713
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5628
5714
|
char *arg2 = (char *) 0 ;
|
5629
5715
|
memcached_return *arg3 = (memcached_return *) 0 ;
|
5630
|
-
memcached_stat_st *result = 0 ;
|
5631
5716
|
void *argp1 = 0 ;
|
5632
5717
|
int res1 = 0 ;
|
5633
5718
|
int res2 ;
|
@@ -5635,6 +5720,7 @@ _wrap_memcached_stat(int argc, VALUE *argv, VALUE self) {
|
|
5635
5720
|
int alloc2 = 0 ;
|
5636
5721
|
memcached_return temp3 ;
|
5637
5722
|
int res3 = SWIG_TMPOBJ ;
|
5723
|
+
memcached_stat_st *result = 0 ;
|
5638
5724
|
VALUE vresult = Qnil;
|
5639
5725
|
|
5640
5726
|
arg3 = &temp3;
|
@@ -5673,7 +5759,6 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) {
|
|
5673
5759
|
char *arg2 = (char *) 0 ;
|
5674
5760
|
char *arg3 = (char *) 0 ;
|
5675
5761
|
unsigned int arg4 ;
|
5676
|
-
memcached_return result;
|
5677
5762
|
void *argp1 = 0 ;
|
5678
5763
|
int res1 = 0 ;
|
5679
5764
|
int res2 ;
|
@@ -5684,6 +5769,7 @@ _wrap_memcached_stat_servername(int argc, VALUE *argv, VALUE self) {
|
|
5684
5769
|
int alloc3 = 0 ;
|
5685
5770
|
unsigned int val4 ;
|
5686
5771
|
int ecode4 = 0 ;
|
5772
|
+
memcached_return result;
|
5687
5773
|
VALUE vresult = Qnil;
|
5688
5774
|
|
5689
5775
|
if ((argc < 4) || (argc > 4)) {
|
@@ -5725,9 +5811,9 @@ SWIGINTERN VALUE
|
|
5725
5811
|
_wrap_memcached_flush(int argc, VALUE *argv, VALUE self) {
|
5726
5812
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5727
5813
|
time_t arg2 ;
|
5728
|
-
memcached_return result;
|
5729
5814
|
void *argp1 = 0 ;
|
5730
5815
|
int res1 = 0 ;
|
5816
|
+
memcached_return result;
|
5731
5817
|
VALUE vresult = Qnil;
|
5732
5818
|
|
5733
5819
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5756,11 +5842,11 @@ SWIGINTERN VALUE
|
|
5756
5842
|
_wrap_memcached_verbosity(int argc, VALUE *argv, VALUE self) {
|
5757
5843
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5758
5844
|
unsigned int arg2 ;
|
5759
|
-
memcached_return result;
|
5760
5845
|
void *argp1 = 0 ;
|
5761
5846
|
int res1 = 0 ;
|
5762
5847
|
unsigned int val2 ;
|
5763
5848
|
int ecode2 = 0 ;
|
5849
|
+
memcached_return result;
|
5764
5850
|
VALUE vresult = Qnil;
|
5765
5851
|
|
5766
5852
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5809,11 +5895,11 @@ SWIGINTERN VALUE
|
|
5809
5895
|
_wrap_memcached_strerror(int argc, VALUE *argv, VALUE self) {
|
5810
5896
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5811
5897
|
memcached_return arg2 ;
|
5812
|
-
char *result = 0 ;
|
5813
5898
|
void *argp1 = 0 ;
|
5814
5899
|
int res1 = 0 ;
|
5815
5900
|
int val2 ;
|
5816
5901
|
int ecode2 = 0 ;
|
5902
|
+
char *result = 0 ;
|
5817
5903
|
VALUE vresult = Qnil;
|
5818
5904
|
|
5819
5905
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5842,13 +5928,13 @@ _wrap_memcached_behavior_set(int argc, VALUE *argv, VALUE self) {
|
|
5842
5928
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5843
5929
|
memcached_behavior arg2 ;
|
5844
5930
|
uint64_t arg3 ;
|
5845
|
-
memcached_return result;
|
5846
5931
|
void *argp1 = 0 ;
|
5847
5932
|
int res1 = 0 ;
|
5848
5933
|
int val2 ;
|
5849
5934
|
int ecode2 = 0 ;
|
5850
5935
|
unsigned long long val3 ;
|
5851
5936
|
int ecode3 = 0 ;
|
5937
|
+
memcached_return result;
|
5852
5938
|
VALUE vresult = Qnil;
|
5853
5939
|
|
5854
5940
|
if ((argc < 3) || (argc > 3)) {
|
@@ -5881,11 +5967,11 @@ SWIGINTERN VALUE
|
|
5881
5967
|
_wrap_memcached_behavior_get(int argc, VALUE *argv, VALUE self) {
|
5882
5968
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5883
5969
|
memcached_behavior arg2 ;
|
5884
|
-
uint64_t result;
|
5885
5970
|
void *argp1 = 0 ;
|
5886
5971
|
int res1 = 0 ;
|
5887
5972
|
int val2 ;
|
5888
5973
|
int ecode2 = 0 ;
|
5974
|
+
uint64_t result;
|
5889
5975
|
VALUE vresult = Qnil;
|
5890
5976
|
|
5891
5977
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5912,74 +5998,58 @@ fail:
|
|
5912
5998
|
|
5913
5999
|
|
5914
6000
|
SWIGINTERN VALUE
|
5915
|
-
|
6001
|
+
_wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) {
|
5916
6002
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5917
6003
|
char *arg2 = (char *) 0 ;
|
5918
|
-
|
5919
|
-
size_t *arg4 = (size_t *) 0 ;
|
5920
|
-
uint32_t *arg5 = (uint32_t *) 0 ;
|
5921
|
-
memcached_return *arg6 = (memcached_return *) 0 ;
|
5922
|
-
char *result = 0 ;
|
6004
|
+
unsigned int arg3 ;
|
5923
6005
|
void *argp1 = 0 ;
|
5924
6006
|
int res1 = 0 ;
|
5925
|
-
|
5926
|
-
|
5927
|
-
|
5928
|
-
int
|
5929
|
-
|
5930
|
-
|
6007
|
+
int res2 ;
|
6008
|
+
char *buf2 = 0 ;
|
6009
|
+
int alloc2 = 0 ;
|
6010
|
+
unsigned int val3 ;
|
6011
|
+
int ecode3 = 0 ;
|
6012
|
+
memcached_return result;
|
5931
6013
|
VALUE vresult = Qnil;
|
5932
6014
|
|
5933
|
-
|
5934
|
-
|
5935
|
-
arg6 = &temp6;
|
5936
|
-
if ((argc < 2) || (argc > 2)) {
|
5937
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6015
|
+
if ((argc < 3) || (argc > 3)) {
|
6016
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
5938
6017
|
}
|
5939
6018
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5940
6019
|
if (!SWIG_IsOK(res1)) {
|
5941
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","
|
6020
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] ));
|
5942
6021
|
}
|
5943
6022
|
arg1 = (memcached_st *)(argp1);
|
5944
|
-
|
5945
|
-
|
5946
|
-
|
5947
|
-
}
|
5948
|
-
result = (char *)memcached_get(arg1,arg2,arg3,arg4,arg5,arg6);
|
5949
|
-
vresult = SWIG_FromCharPtr((const char *)result);
|
5950
|
-
if (SWIG_IsTmpObj(res4)) {
|
5951
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
|
5952
|
-
} else {
|
5953
|
-
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
5954
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
|
5955
|
-
}
|
5956
|
-
if (SWIG_IsTmpObj(res5)) {
|
5957
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
|
5958
|
-
} else {
|
5959
|
-
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
5960
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
|
5961
|
-
}
|
5962
|
-
if (SWIG_IsTmpObj(res6)) {
|
5963
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg6)));
|
5964
|
-
} else {
|
5965
|
-
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
5966
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_memcached_return, new_flags));
|
6023
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6024
|
+
if (!SWIG_IsOK(res2)) {
|
6025
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_udp", 2, argv[1] ));
|
5967
6026
|
}
|
6027
|
+
arg2 = (char *)(buf2);
|
6028
|
+
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
6029
|
+
if (!SWIG_IsOK(ecode3)) {
|
6030
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp", 3, argv[2] ));
|
6031
|
+
}
|
6032
|
+
arg3 = (unsigned int)(val3);
|
6033
|
+
result = (memcached_return)memcached_server_add_udp(arg1,arg2,arg3);
|
6034
|
+
vresult = SWIG_From_int((int)(result));
|
6035
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
5968
6036
|
return vresult;
|
5969
6037
|
fail:
|
6038
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
5970
6039
|
return Qnil;
|
5971
6040
|
}
|
5972
6041
|
|
5973
6042
|
|
5974
6043
|
SWIGINTERN VALUE
|
5975
|
-
|
6044
|
+
_wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) {
|
5976
6045
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
5977
|
-
char
|
5978
|
-
size_t *arg3 = (size_t *) 0 ;
|
5979
|
-
unsigned int arg4 ;
|
5980
|
-
memcached_return result;
|
6046
|
+
char *arg2 = (char *) 0 ;
|
5981
6047
|
void *argp1 = 0 ;
|
5982
6048
|
int res1 = 0 ;
|
6049
|
+
int res2 ;
|
6050
|
+
char *buf2 = 0 ;
|
6051
|
+
int alloc2 = 0 ;
|
6052
|
+
memcached_return result;
|
5983
6053
|
VALUE vresult = Qnil;
|
5984
6054
|
|
5985
6055
|
if ((argc < 2) || (argc > 2)) {
|
@@ -5987,235 +6057,37 @@ _wrap_memcached_mget(int argc, VALUE *argv, VALUE self) {
|
|
5987
6057
|
}
|
5988
6058
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
5989
6059
|
if (!SWIG_IsOK(res1)) {
|
5990
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","
|
6060
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] ));
|
5991
6061
|
}
|
5992
6062
|
arg1 = (memcached_st *)(argp1);
|
5993
|
-
|
5994
|
-
|
5995
|
-
|
5996
|
-
arg4 = (unsigned int) RARRAY_LEN(argv[1]);
|
5997
|
-
arg3 = (size_t *) malloc((arg4+1)*sizeof(size_t));
|
5998
|
-
arg2 = (char **) malloc((arg4+1)*sizeof(char *));
|
5999
|
-
for(i = 0; i < arg4; i ++) {
|
6000
|
-
arg3[i] = strlen(StringValuePtr(RARRAY_PTR(argv[1])[i]));
|
6001
|
-
arg2[i] = StringValuePtr(RARRAY_PTR(argv[1])[i]);
|
6002
|
-
}
|
6063
|
+
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6064
|
+
if (!SWIG_IsOK(res2)) {
|
6065
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_unix_socket", 2, argv[1] ));
|
6003
6066
|
}
|
6004
|
-
|
6067
|
+
arg2 = (char *)(buf2);
|
6068
|
+
result = (memcached_return)memcached_server_add_unix_socket(arg1,arg2);
|
6005
6069
|
vresult = SWIG_From_int((int)(result));
|
6006
|
-
|
6007
|
-
free(arg2);
|
6008
|
-
free(arg3);
|
6009
|
-
}
|
6070
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6010
6071
|
return vresult;
|
6011
6072
|
fail:
|
6012
|
-
|
6013
|
-
free(arg2);
|
6014
|
-
free(arg3);
|
6015
|
-
}
|
6073
|
+
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6016
6074
|
return Qnil;
|
6017
6075
|
}
|
6018
6076
|
|
6019
6077
|
|
6020
6078
|
SWIGINTERN VALUE
|
6021
|
-
|
6079
|
+
_wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) {
|
6022
6080
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6023
6081
|
char *arg2 = (char *) 0 ;
|
6024
|
-
|
6025
|
-
size_t *arg4 = (size_t *) 0 ;
|
6026
|
-
uint32_t *arg5 = (uint32_t *) 0 ;
|
6027
|
-
memcached_return *arg6 = (memcached_return *) 0 ;
|
6028
|
-
char *result = 0 ;
|
6082
|
+
unsigned int arg3 ;
|
6029
6083
|
void *argp1 = 0 ;
|
6030
6084
|
int res1 = 0 ;
|
6031
|
-
|
6032
|
-
|
6033
|
-
|
6034
|
-
int
|
6035
|
-
|
6036
|
-
|
6037
|
-
VALUE vresult = Qnil;
|
6038
|
-
|
6039
|
-
{
|
6040
|
-
char string[256];
|
6041
|
-
size_t length = 0;
|
6042
|
-
arg2 = string;
|
6043
|
-
arg3 = &length;
|
6044
|
-
}
|
6045
|
-
arg4 = &temp4;
|
6046
|
-
arg5 = &temp5;
|
6047
|
-
arg6 = &temp6;
|
6048
|
-
if ((argc < 1) || (argc > 1)) {
|
6049
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
6050
|
-
}
|
6051
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6052
|
-
if (!SWIG_IsOK(res1)) {
|
6053
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch", 1, argv[0] ));
|
6054
|
-
}
|
6055
|
-
arg1 = (memcached_st *)(argp1);
|
6056
|
-
result = (char *)memcached_fetch(arg1,arg2,arg3,arg4,arg5,arg6);
|
6057
|
-
vresult = SWIG_FromCharPtr((const char *)result);
|
6058
|
-
{
|
6059
|
-
// Pushes an empty string when *key_length == 0
|
6060
|
-
rb_ary_push(vresult, rb_str_new(arg2, *arg3));
|
6061
|
-
}
|
6062
|
-
if (SWIG_IsTmpObj(res4)) {
|
6063
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_size_t((*arg4)));
|
6064
|
-
} else {
|
6065
|
-
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6066
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_size_t, new_flags));
|
6067
|
-
}
|
6068
|
-
if (SWIG_IsTmpObj(res5)) {
|
6069
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg5)));
|
6070
|
-
} else {
|
6071
|
-
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6072
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_uint32_t, new_flags));
|
6073
|
-
}
|
6074
|
-
if (SWIG_IsTmpObj(res6)) {
|
6075
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg6)));
|
6076
|
-
} else {
|
6077
|
-
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6078
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_memcached_return, new_flags));
|
6079
|
-
}
|
6080
|
-
return vresult;
|
6081
|
-
fail:
|
6082
|
-
return Qnil;
|
6083
|
-
}
|
6084
|
-
|
6085
|
-
|
6086
|
-
SWIGINTERN VALUE
|
6087
|
-
_wrap_memcached_fetch_result(int argc, VALUE *argv, VALUE self) {
|
6088
|
-
memcached_st *arg1 = (memcached_st *) 0 ;
|
6089
|
-
memcached_result_st *arg2 = (memcached_result_st *) 0 ;
|
6090
|
-
memcached_return *arg3 = (memcached_return *) 0 ;
|
6091
|
-
memcached_result_st *result = 0 ;
|
6092
|
-
void *argp1 = 0 ;
|
6093
|
-
int res1 = 0 ;
|
6094
|
-
void *argp2 = 0 ;
|
6095
|
-
int res2 = 0 ;
|
6096
|
-
memcached_return temp3 ;
|
6097
|
-
int res3 = SWIG_TMPOBJ ;
|
6098
|
-
VALUE vresult = Qnil;
|
6099
|
-
|
6100
|
-
arg3 = &temp3;
|
6101
|
-
if ((argc < 2) || (argc > 2)) {
|
6102
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6103
|
-
}
|
6104
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6105
|
-
if (!SWIG_IsOK(res1)) {
|
6106
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_result", 1, argv[0] ));
|
6107
|
-
}
|
6108
|
-
arg1 = (memcached_st *)(argp1);
|
6109
|
-
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
6110
|
-
if (!SWIG_IsOK(res2)) {
|
6111
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_result_st *","memcached_fetch_result", 2, argv[1] ));
|
6112
|
-
}
|
6113
|
-
arg2 = (memcached_result_st *)(argp2);
|
6114
|
-
result = (memcached_result_st *)memcached_fetch_result(arg1,arg2,arg3);
|
6115
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_memcached_result_st, 0 | 0 );
|
6116
|
-
if (SWIG_IsTmpObj(res3)) {
|
6117
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg3)));
|
6118
|
-
} else {
|
6119
|
-
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6120
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_memcached_return, new_flags));
|
6121
|
-
}
|
6122
|
-
return vresult;
|
6123
|
-
fail:
|
6124
|
-
return Qnil;
|
6125
|
-
}
|
6126
|
-
|
6127
|
-
|
6128
|
-
SWIGINTERN VALUE
|
6129
|
-
_wrap_memcached_server_add_udp(int argc, VALUE *argv, VALUE self) {
|
6130
|
-
memcached_st *arg1 = (memcached_st *) 0 ;
|
6131
|
-
char *arg2 = (char *) 0 ;
|
6132
|
-
unsigned int arg3 ;
|
6133
|
-
memcached_return result;
|
6134
|
-
void *argp1 = 0 ;
|
6135
|
-
int res1 = 0 ;
|
6136
|
-
int res2 ;
|
6137
|
-
char *buf2 = 0 ;
|
6138
|
-
int alloc2 = 0 ;
|
6139
|
-
unsigned int val3 ;
|
6140
|
-
int ecode3 = 0 ;
|
6141
|
-
VALUE vresult = Qnil;
|
6142
|
-
|
6143
|
-
if ((argc < 3) || (argc > 3)) {
|
6144
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6145
|
-
}
|
6146
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6147
|
-
if (!SWIG_IsOK(res1)) {
|
6148
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_udp", 1, argv[0] ));
|
6149
|
-
}
|
6150
|
-
arg1 = (memcached_st *)(argp1);
|
6151
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6152
|
-
if (!SWIG_IsOK(res2)) {
|
6153
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_udp", 2, argv[1] ));
|
6154
|
-
}
|
6155
|
-
arg2 = (char *)(buf2);
|
6156
|
-
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[2], &val3);
|
6157
|
-
if (!SWIG_IsOK(ecode3)) {
|
6158
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","memcached_server_add_udp", 3, argv[2] ));
|
6159
|
-
}
|
6160
|
-
arg3 = (unsigned int)(val3);
|
6161
|
-
result = (memcached_return)memcached_server_add_udp(arg1,arg2,arg3);
|
6162
|
-
vresult = SWIG_From_int((int)(result));
|
6163
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6164
|
-
return vresult;
|
6165
|
-
fail:
|
6166
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6167
|
-
return Qnil;
|
6168
|
-
}
|
6169
|
-
|
6170
|
-
|
6171
|
-
SWIGINTERN VALUE
|
6172
|
-
_wrap_memcached_server_add_unix_socket(int argc, VALUE *argv, VALUE self) {
|
6173
|
-
memcached_st *arg1 = (memcached_st *) 0 ;
|
6174
|
-
char *arg2 = (char *) 0 ;
|
6175
|
-
memcached_return result;
|
6176
|
-
void *argp1 = 0 ;
|
6177
|
-
int res1 = 0 ;
|
6178
|
-
int res2 ;
|
6179
|
-
char *buf2 = 0 ;
|
6180
|
-
int alloc2 = 0 ;
|
6181
|
-
VALUE vresult = Qnil;
|
6182
|
-
|
6183
|
-
if ((argc < 2) || (argc > 2)) {
|
6184
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6185
|
-
}
|
6186
|
-
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6187
|
-
if (!SWIG_IsOK(res1)) {
|
6188
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_server_add_unix_socket", 1, argv[0] ));
|
6189
|
-
}
|
6190
|
-
arg1 = (memcached_st *)(argp1);
|
6191
|
-
res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
|
6192
|
-
if (!SWIG_IsOK(res2)) {
|
6193
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char *","memcached_server_add_unix_socket", 2, argv[1] ));
|
6194
|
-
}
|
6195
|
-
arg2 = (char *)(buf2);
|
6196
|
-
result = (memcached_return)memcached_server_add_unix_socket(arg1,arg2);
|
6197
|
-
vresult = SWIG_From_int((int)(result));
|
6198
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6199
|
-
return vresult;
|
6200
|
-
fail:
|
6201
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6202
|
-
return Qnil;
|
6203
|
-
}
|
6204
|
-
|
6205
|
-
|
6206
|
-
SWIGINTERN VALUE
|
6207
|
-
_wrap_memcached_server_add(int argc, VALUE *argv, VALUE self) {
|
6208
|
-
memcached_st *arg1 = (memcached_st *) 0 ;
|
6209
|
-
char *arg2 = (char *) 0 ;
|
6210
|
-
unsigned int arg3 ;
|
6211
|
-
memcached_return result;
|
6212
|
-
void *argp1 = 0 ;
|
6213
|
-
int res1 = 0 ;
|
6214
|
-
int res2 ;
|
6215
|
-
char *buf2 = 0 ;
|
6216
|
-
int alloc2 = 0 ;
|
6217
|
-
unsigned int val3 ;
|
6218
|
-
int ecode3 = 0 ;
|
6085
|
+
int res2 ;
|
6086
|
+
char *buf2 = 0 ;
|
6087
|
+
int alloc2 = 0 ;
|
6088
|
+
unsigned int val3 ;
|
6089
|
+
int ecode3 = 0 ;
|
6090
|
+
memcached_return result;
|
6219
6091
|
VALUE vresult = Qnil;
|
6220
6092
|
|
6221
6093
|
if ((argc < 3) || (argc > 3)) {
|
@@ -6271,11 +6143,11 @@ SWIGINTERN VALUE
|
|
6271
6143
|
_wrap_memcached_server_push(int argc, VALUE *argv, VALUE self) {
|
6272
6144
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6273
6145
|
memcached_server_st *arg2 = (memcached_server_st *) 0 ;
|
6274
|
-
memcached_return result;
|
6275
6146
|
void *argp1 = 0 ;
|
6276
6147
|
int res1 = 0 ;
|
6277
6148
|
void *argp2 = 0 ;
|
6278
6149
|
int res2 = 0 ;
|
6150
|
+
memcached_return result;
|
6279
6151
|
VALUE vresult = Qnil;
|
6280
6152
|
|
6281
6153
|
if ((argc < 2) || (argc > 2)) {
|
@@ -6305,7 +6177,6 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) {
|
|
6305
6177
|
char *arg2 = (char *) 0 ;
|
6306
6178
|
unsigned int arg3 ;
|
6307
6179
|
memcached_return *arg4 = (memcached_return *) 0 ;
|
6308
|
-
memcached_server_st *result = 0 ;
|
6309
6180
|
void *argp1 = 0 ;
|
6310
6181
|
int res1 = 0 ;
|
6311
6182
|
int res2 ;
|
@@ -6315,6 +6186,7 @@ _wrap_memcached_server_list_append(int argc, VALUE *argv, VALUE self) {
|
|
6315
6186
|
int ecode3 = 0 ;
|
6316
6187
|
memcached_return temp4 ;
|
6317
6188
|
int res4 = SWIG_TMPOBJ ;
|
6189
|
+
memcached_server_st *result = 0 ;
|
6318
6190
|
VALUE vresult = Qnil;
|
6319
6191
|
|
6320
6192
|
arg4 = &temp4;
|
@@ -6355,9 +6227,9 @@ fail:
|
|
6355
6227
|
SWIGINTERN VALUE
|
6356
6228
|
_wrap_memcached_server_list_count(int argc, VALUE *argv, VALUE self) {
|
6357
6229
|
memcached_server_st *arg1 = (memcached_server_st *) 0 ;
|
6358
|
-
unsigned int result;
|
6359
6230
|
void *argp1 = 0 ;
|
6360
6231
|
int res1 = 0 ;
|
6232
|
+
unsigned int result;
|
6361
6233
|
VALUE vresult = Qnil;
|
6362
6234
|
|
6363
6235
|
if ((argc < 1) || (argc > 1)) {
|
@@ -6379,10 +6251,10 @@ fail:
|
|
6379
6251
|
SWIGINTERN VALUE
|
6380
6252
|
_wrap_memcached_servers_parse(int argc, VALUE *argv, VALUE self) {
|
6381
6253
|
char *arg1 = (char *) 0 ;
|
6382
|
-
memcached_server_st *result = 0 ;
|
6383
6254
|
int res1 ;
|
6384
6255
|
char *buf1 = 0 ;
|
6385
6256
|
int alloc1 = 0 ;
|
6257
|
+
memcached_server_st *result = 0 ;
|
6386
6258
|
VALUE vresult = Qnil;
|
6387
6259
|
|
6388
6260
|
if ((argc < 1) || (argc > 1)) {
|
@@ -6409,7 +6281,6 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) {
|
|
6409
6281
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
6410
6282
|
char *arg3 = (char *) 0 ;
|
6411
6283
|
memcached_return *arg4 = (memcached_return *) 0 ;
|
6412
|
-
char *result = 0 ;
|
6413
6284
|
void *argp1 = 0 ;
|
6414
6285
|
int res1 = 0 ;
|
6415
6286
|
void *argp2 = 0 ;
|
@@ -6419,6 +6290,7 @@ _wrap_memcached_stat_get_value(int argc, VALUE *argv, VALUE self) {
|
|
6419
6290
|
int alloc3 = 0 ;
|
6420
6291
|
memcached_return temp4 ;
|
6421
6292
|
int res4 = SWIG_TMPOBJ ;
|
6293
|
+
char *result = 0 ;
|
6422
6294
|
VALUE vresult = Qnil;
|
6423
6295
|
|
6424
6296
|
arg4 = &temp4;
|
@@ -6461,13 +6333,13 @@ _wrap_memcached_stat_get_keys(int argc, VALUE *argv, VALUE self) {
|
|
6461
6333
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6462
6334
|
memcached_stat_st *arg2 = (memcached_stat_st *) 0 ;
|
6463
6335
|
memcached_return *arg3 = (memcached_return *) 0 ;
|
6464
|
-
char **result = 0 ;
|
6465
6336
|
void *argp1 = 0 ;
|
6466
6337
|
int res1 = 0 ;
|
6467
6338
|
void *argp2 = 0 ;
|
6468
6339
|
int res2 = 0 ;
|
6469
6340
|
memcached_return temp3 ;
|
6470
6341
|
int res3 = SWIG_TMPOBJ ;
|
6342
|
+
char **result = 0 ;
|
6471
6343
|
VALUE vresult = Qnil;
|
6472
6344
|
|
6473
6345
|
arg3 = &temp3;
|
@@ -6509,61 +6381,38 @@ fail:
|
|
6509
6381
|
|
6510
6382
|
|
6511
6383
|
SWIGINTERN VALUE
|
6512
|
-
|
6384
|
+
_wrap_memcached_delete_by_key(int argc, VALUE *argv, VALUE self) {
|
6513
6385
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6514
6386
|
char *arg2 = (char *) 0 ;
|
6515
6387
|
size_t arg3 ;
|
6516
6388
|
char *arg4 = (char *) 0 ;
|
6517
6389
|
size_t arg5 ;
|
6518
|
-
|
6519
|
-
uint32_t *arg7 = (uint32_t *) 0 ;
|
6520
|
-
memcached_return *arg8 = (memcached_return *) 0 ;
|
6521
|
-
char *result = 0 ;
|
6390
|
+
time_t arg6 ;
|
6522
6391
|
void *argp1 = 0 ;
|
6523
6392
|
int res1 = 0 ;
|
6524
|
-
|
6525
|
-
int res6 = SWIG_TMPOBJ ;
|
6526
|
-
uint32_t temp7 ;
|
6527
|
-
int res7 = SWIG_TMPOBJ ;
|
6528
|
-
memcached_return temp8 ;
|
6529
|
-
int res8 = SWIG_TMPOBJ ;
|
6393
|
+
memcached_return result;
|
6530
6394
|
VALUE vresult = Qnil;
|
6531
6395
|
|
6532
|
-
|
6533
|
-
|
6534
|
-
arg8 = &temp8;
|
6535
|
-
if ((argc < 2) || (argc > 2)) {
|
6536
|
-
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
6396
|
+
if ((argc < 3) || (argc > 3)) {
|
6397
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
|
6537
6398
|
}
|
6538
6399
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6539
6400
|
if (!SWIG_IsOK(res1)) {
|
6540
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","
|
6401
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_delete_by_key", 1, argv[0] ));
|
6541
6402
|
}
|
6542
6403
|
arg1 = (memcached_st *)(argp1);
|
6543
6404
|
{
|
6544
6405
|
arg4 = arg2 = STR2CSTR(argv[1]);
|
6545
6406
|
arg5 = arg3 = (size_t) RSTRING(argv[1])->len;
|
6546
6407
|
}
|
6547
|
-
|
6548
|
-
|
6549
|
-
|
6550
|
-
|
6551
|
-
|
6552
|
-
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6553
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_size_t, new_flags));
|
6554
|
-
}
|
6555
|
-
if (SWIG_IsTmpObj(res7)) {
|
6556
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_int((*arg7)));
|
6557
|
-
} else {
|
6558
|
-
int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6559
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_uint32_t, new_flags));
|
6560
|
-
}
|
6561
|
-
if (SWIG_IsTmpObj(res8)) {
|
6562
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_From_unsigned_SS_short((*arg8)));
|
6563
|
-
} else {
|
6564
|
-
int new_flags = SWIG_IsNewObj(res8) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
6565
|
-
vresult = SWIG_Ruby_AppendOutput(vresult, SWIG_NewPointerObj((void*)(arg8), SWIGTYPE_p_memcached_return, new_flags));
|
6408
|
+
{
|
6409
|
+
if (NIL_P(argv[2]))
|
6410
|
+
arg6 = (time_t)-1;
|
6411
|
+
else
|
6412
|
+
arg6 = NUM2LONG(rb_funcall(argv[2], rb_intern("tv_sec"), 0));
|
6566
6413
|
}
|
6414
|
+
result = (memcached_return)memcached_delete_by_key(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5,arg6);
|
6415
|
+
vresult = SWIG_From_int((int)(result));
|
6567
6416
|
return vresult;
|
6568
6417
|
fail:
|
6569
6418
|
return Qnil;
|
@@ -6571,81 +6420,61 @@ fail:
|
|
6571
6420
|
|
6572
6421
|
|
6573
6422
|
SWIGINTERN VALUE
|
6574
|
-
|
6423
|
+
_wrap_memcached_fetch_execute(int argc, VALUE *argv, VALUE self) {
|
6575
6424
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6576
|
-
|
6577
|
-
|
6578
|
-
|
6579
|
-
size_t *arg5 = (size_t *) 0 ;
|
6580
|
-
unsigned int arg6 ;
|
6581
|
-
memcached_return result;
|
6425
|
+
memcached_execute_function *arg2 = (memcached_execute_function *) 0 ;
|
6426
|
+
void *arg3 = (void *) 0 ;
|
6427
|
+
unsigned int arg4 ;
|
6582
6428
|
void *argp1 = 0 ;
|
6583
6429
|
int res1 = 0 ;
|
6584
|
-
|
6585
|
-
|
6586
|
-
int
|
6587
|
-
|
6588
|
-
int
|
6589
|
-
|
6590
|
-
|
6430
|
+
void *argp2 = 0 ;
|
6431
|
+
int res2 = 0 ;
|
6432
|
+
int res3 ;
|
6433
|
+
unsigned int val4 ;
|
6434
|
+
int ecode4 = 0 ;
|
6435
|
+
memcached_return result;
|
6436
|
+
VALUE vresult = Qnil;
|
6437
|
+
|
6591
6438
|
if ((argc < 4) || (argc > 4)) {
|
6592
6439
|
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
|
6593
6440
|
}
|
6594
6441
|
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_memcached_st, 0 | 0 );
|
6595
6442
|
if (!SWIG_IsOK(res1)) {
|
6596
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","
|
6443
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "memcached_st *","memcached_fetch_execute", 1, argv[0] ));
|
6597
6444
|
}
|
6598
6445
|
arg1 = (memcached_st *)(argp1);
|
6599
|
-
res2 =
|
6446
|
+
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_memcached_execute_function, 0 | 0 );
|
6600
6447
|
if (!SWIG_IsOK(res2)) {
|
6601
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "
|
6448
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "memcached_execute_function *","memcached_fetch_execute", 2, argv[1] ));
|
6602
6449
|
}
|
6603
|
-
arg2 = (
|
6604
|
-
|
6605
|
-
if (!SWIG_IsOK(
|
6606
|
-
SWIG_exception_fail(SWIG_ArgError(
|
6607
|
-
}
|
6608
|
-
arg3 = (size_t)(val3);
|
6609
|
-
{
|
6610
|
-
int i;
|
6611
|
-
Check_Type(argv[3], T_ARRAY);
|
6612
|
-
arg6 = (unsigned int) RARRAY_LEN(argv[3]);
|
6613
|
-
arg5 = (size_t *) malloc((arg6+1)*sizeof(size_t));
|
6614
|
-
arg4 = (char **) malloc((arg6+1)*sizeof(char *));
|
6615
|
-
for(i = 0; i < arg6; i ++) {
|
6616
|
-
arg5[i] = strlen(StringValuePtr(RARRAY_PTR(argv[3])[i]));
|
6617
|
-
arg4[i] = StringValuePtr(RARRAY_PTR(argv[3])[i]);
|
6618
|
-
}
|
6450
|
+
arg2 = (memcached_execute_function *)(argp2);
|
6451
|
+
res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0);
|
6452
|
+
if (!SWIG_IsOK(res3)) {
|
6453
|
+
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "void *","memcached_fetch_execute", 3, argv[2] ));
|
6619
6454
|
}
|
6620
|
-
|
6455
|
+
ecode4 = SWIG_AsVal_unsigned_SS_int(argv[3], &val4);
|
6456
|
+
if (!SWIG_IsOK(ecode4)) {
|
6457
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "unsigned int","memcached_fetch_execute", 4, argv[3] ));
|
6458
|
+
}
|
6459
|
+
arg4 = (unsigned int)(val4);
|
6460
|
+
result = (memcached_return)memcached_fetch_execute(arg1,arg2,arg3,arg4);
|
6621
6461
|
vresult = SWIG_From_int((int)(result));
|
6622
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6623
|
-
{
|
6624
|
-
free(arg4);
|
6625
|
-
free(arg5);
|
6626
|
-
}
|
6627
6462
|
return vresult;
|
6628
6463
|
fail:
|
6629
|
-
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
6630
|
-
{
|
6631
|
-
free(arg4);
|
6632
|
-
free(arg5);
|
6633
|
-
}
|
6634
6464
|
return Qnil;
|
6635
6465
|
}
|
6636
6466
|
|
6637
6467
|
|
6638
6468
|
SWIGINTERN VALUE
|
6639
|
-
|
6469
|
+
_wrap_memcached_callback_set(int argc, VALUE *argv, VALUE self) {
|
6640
6470
|
memcached_st *arg1 = (memcached_st *) 0 ;
|
6641
|
-
|
6642
|
-
|
6643
|
-
char *arg4 = (char *) 0 ;
|
6644
|
-
size_t arg5 ;
|
6645
|
-
time_t arg6 ;
|
6646
|
-
memcached_return result;
|
6471
|
+
memcached_callback arg2 ;
|
6472
|
+
void *arg3 = (void *) 0 ;
|
6647
6473
|
void *argp1 = 0 ;
|
6648
6474
|
int res1 = 0 ;
|
6475
|
+
int val2 ;
|
6476
|
+
int ecode2 = 0 ;
|
6477
|
+
memcached_return result;
|
6649
6478
|
VALUE vresult = Qnil;
|