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
3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 |
# File 'ext/cproton/cproton.c', line 3712
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
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 |
# File 'ext/cproton/cproton.c', line 3673
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
3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 |
# File 'ext/cproton/cproton.c', line 3650
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;
}
|