Class: Cproton::Pni_rbhandler_t

Inherits:
Object
  • Object
show all
Defined in:
ext/cproton/cproton.c

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Object



3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
# File 'ext/cproton/cproton.c', line 3835

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



3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
# File 'ext/cproton/cproton.c', line 3796

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



3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
# File 'ext/cproton/cproton.c', line 3773

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;
}