Class: Cproton::Pni_rbhandler_t
- Inherits:
-
Object
- Object
- Cproton::Pni_rbhandler_t
- Defined in:
- ext/cproton/cproton.c
Instance Method Summary collapse
Constructor Details
#initialize(*args) ⇒ Object
3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 |
# File 'ext/cproton/cproton.c', line 3792
SWIGINTERN VALUE
_wrap_new_Pni_rbhandler_t(int argc, VALUE *argv, VALUE self) {
Pni_rbhandler_t *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (Pni_rbhandler_t *)calloc(1, sizeof(Pni_rbhandler_t));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#handler_key(*args) ⇒ Object
3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 |
# File 'ext/cproton/cproton.c', line 3753
SWIGINTERN VALUE
_wrap_Pni_rbhandler_t_handler_key_get(int argc, VALUE *argv, VALUE self) {
Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE 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_Pni_rbhandler_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pni_rbhandler_t *","handler_key", 1, self ));
}
arg1 = (Pni_rbhandler_t *)(argp1);
result = (VALUE) ((arg1)->handler_key);
vresult = result;
return vresult;
fail:
return Qnil;
}
|
#handler_key=(*args) ⇒ Object
3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 |
# File 'ext/cproton/cproton.c', line 3730
SWIGINTERN VALUE
_wrap_Pni_rbhandler_t_handler_key_set(int argc, VALUE *argv, VALUE self) {
Pni_rbhandler_t *arg1 = (Pni_rbhandler_t *) 0 ;
VALUE arg2 = (VALUE) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Pni_rbhandler_t, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Pni_rbhandler_t *","handler_key", 1, self ));
}
arg1 = (Pni_rbhandler_t *)(argp1);
arg2 = argv[0];
if (arg1) (arg1)->handler_key = arg2;
return Qnil;
fail:
return Qnil;
}
|