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
3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 |
# File 'ext/cproton/cproton.c', line 3769
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
3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 |
# File 'ext/cproton/cproton.c', line 3730
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
3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 |
# File 'ext/cproton/cproton.c', line 3707
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;
}
|