class Openwsman::Context
Public Instance Methods
action(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_action(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","action", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","action", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (char *)_WS_CONTEXT_action(arg1,arg2);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
classname(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_classname(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","classname", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
result = (char *)_WS_CONTEXT_classname(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
enum_idle_timeout=(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_enum_idle_timeoute___(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
unsigned long arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","set_enumIdleTimeout", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned long","set_enumIdleTimeout", 2, argv[0] ));
}
arg2 = (unsigned long)(val2);
_WS_CONTEXT_set_enumIdleTimeout(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
fragment_string(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_fragment_string(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","fragment_string", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","fragment_string", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (char *)_WS_CONTEXT_fragment_string(arg1,arg2);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
indoc(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_indoc(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
WsXmlDocH result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","indoc", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
result = (WsXmlDocH)_WS_CONTEXT_indoc(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__WsXmlDoc, 0 | 0 );
return vresult;
fail:
return Qnil;
}
max_elements(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_max_elements(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","max_elements", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","max_elements", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (int)_WS_CONTEXT_max_elements(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
max_envelope_size(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_max_envelope_size(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
unsigned long result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","max_envelope_size", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","max_envelope_size", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (unsigned long)_WS_CONTEXT_max_envelope_size(arg1,arg2);
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
return vresult;
fail:
return Qnil;
}
method(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_method(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","method", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
result = (char *)_WS_CONTEXT_method(arg1);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
method_args(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_method_args(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
hash_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","method_args", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","method_args", 2, argv[0] ));
}
arg2 = (char *)(buf2);
result = (hash_t *)_WS_CONTEXT_method_args(arg1,(char const *)arg2);
{
vresult = hash2value(result);
}
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return vresult;
fail:
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
return Qnil;
}
option_set(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_option_set(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) 0 ;
char *arg3 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int res3 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","option_set", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","option_set", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","option_set", 3, argv[1] ));
}
arg3 = (char *)(buf3);
result = (char *)_WS_CONTEXT_option_set(arg1,arg2,(char const *)arg3);
vresult = SWIG_FromCharPtr((const char *)result);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
fail:
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return Qnil;
}
parse_enum_request(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_parse_enum_request(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsEnumerateInfo *arg2 = (WsEnumerateInfo *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","parse_enum_request", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_WsEnumerateInfo, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsEnumerateInfo *","parse_enum_request", 2, argv[0] ));
}
arg2 = (WsEnumerateInfo *)(argp2);
result = (int)_WS_CONTEXT_parse_enum_request(arg1,arg2);
vresult = SWIG_From_int((int)(result));
return vresult;
fail:
return Qnil;
}
resource_uri(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_resource_uri(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","resource_uri", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","resource_uri", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (char *)_WS_CONTEXT_resource_uri(arg1,arg2);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
runtime(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_runtime(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
struct __Soap *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","runtime", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
result = (struct __Soap *)_WS_CONTEXT_runtime(arg1);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p___Soap, 0 | 0 );
return vresult;
fail:
return Qnil;
}
selector(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_selector(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) 0 ;
char *arg3 = (char *) 0 ;
int arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
int res3 ;
char *buf3 = 0 ;
int alloc3 = 0 ;
int val4 ;
int ecode4 = 0 ;
char *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","selector", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","selector", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
res3 = SWIG_AsCharPtrAndSize(argv[1], &buf3, NULL, &alloc3);
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","selector", 3, argv[1] ));
}
arg3 = (char *)(buf3);
ecode4 = SWIG_AsVal_int(argv[2], &val4);
if (!SWIG_IsOK(ecode4)) {
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","selector", 4, argv[2] ));
}
arg4 = (int)(val4);
result = (char *)_WS_CONTEXT_selector(arg1,arg2,(char const *)arg3,arg4);
vresult = SWIG_FromCharPtr((const char *)result);
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return vresult;
fail:
if (alloc3 == SWIG_NEWOBJ) free((char*)buf3);
return Qnil;
}
selectors(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_selectors(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
hash_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","selectors", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","selectors", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (hash_t *)_WS_CONTEXT_selectors(arg1,arg2);
{
vresult = hash2value(result);
}
return vresult;
fail:
return Qnil;
}
selectors_from_epr(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_selectors_from_epr(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlNodeH arg2 = (WsXmlNodeH) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
hash_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","selectors_from_epr", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p___WsXmlNode, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlNodeH","selectors_from_epr", 2, argv[0] ));
}
arg2 = (WsXmlNodeH)(argp2);
result = (hash_t *)_WS_CONTEXT_selectors_from_epr(arg1,arg2);
{
vresult = hash2value(result);
}
return vresult;
fail:
return Qnil;
}
selectors_from_filter(*args)
click to toggle source
SWIGINTERN VALUE
_wrap_Context_selectors_from_filter(int argc, VALUE *argv, VALUE self) {
struct _WS_CONTEXT *arg1 = (struct _WS_CONTEXT *) 0 ;
WsXmlDocH arg2 = (WsXmlDocH) NULL ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
hash_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p__WS_CONTEXT, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct _WS_CONTEXT *","selectors_from_filter", 1, self ));
}
arg1 = (struct _WS_CONTEXT *)(argp1);
if (argc > 0) {
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p__WsXmlDoc, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "WsXmlDocH","selectors_from_filter", 2, argv[0] ));
}
arg2 = (WsXmlDocH)(argp2);
}
result = (hash_t *)_WS_CONTEXT_selectors_from_filter(arg1,arg2);
{
vresult = hash2value(result);
}
return vresult;
fail:
return Qnil;
}