SWIGINTERN VALUE
_wrap_SCIMStatus_sCIMSerialNumber_set(int argc, VALUE *argv, VALUE self) {
struct SCIMStatus *arg1 = (struct SCIMStatus *) 0 ;
unsigned __int8 *arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_SCIMStatus, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct SCIMStatus *","sCIMSerialNumber", 1, self ));
}
arg1 = (struct SCIMStatus *)(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_unsigned___int8, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "unsigned __int8 [8]","sCIMSerialNumber", 2, argv[0] ));
}
arg2 = (unsigned __int8 *)(argp2);
{
if (arg2) {
size_t ii = 0;
for (; ii < (size_t)8; ++ii) arg1->sCIMSerialNumber[ii] = arg2[ii];
} else {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""sCIMSerialNumber""' of type '""unsigned __int8 [8]""'");
}
}
return Qnil;
fail:
return Qnil;
}
SWIGINTERN VALUE
_wrap_SCIMStatus_sCIMSerialNumber_get(int argc, VALUE *argv, VALUE self) {
struct SCIMStatus *arg1 = (struct SCIMStatus *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned __int8 *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_SCIMStatus, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct SCIMStatus *","sCIMSerialNumber", 1, self ));
}
arg1 = (struct SCIMStatus *)(argp1);
result = (unsigned __int8 *)(unsigned __int8 *) ((arg1)->sCIMSerialNumber);
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned___int8, 0 | 0 );
return vresult;
fail:
return Qnil;
}
|