Class: Notcurses::NcsubprocOptions
- Inherits:
-
Object
- Object
- Notcurses::NcsubprocOptions
- Defined in:
- ext/notcurses/src/notcurses_wrap.c,
ext/notcurses/src/notcurses_wrap.c
Overview
Proxy of C Notcurses::NcsubprocOptions struct
Instance Method Summary collapse
-
#curry(*args) ⇒ Object
call-seq: curry -> void *.
-
#curry=(*args) ⇒ Object
call-seq: curry=(x) -> void *.
-
#flags(*args) ⇒ Object
call-seq: flags -> uint64_t.
-
#flags=(*args) ⇒ Object
call-seq: flags=(x) -> uint64_t.
-
#initialize(*args) ⇒ Object
constructor
call-seq: NcsubprocOptions.new.
-
#restart_period(*args) ⇒ Object
call-seq: restart_period -> uint64_t.
-
#restart_period=(*args) ⇒ Object
call-seq: restart_period=(x) -> uint64_t.
Constructor Details
#initialize(*args) ⇒ Object
65969 65970 65971 65972 65973 65974 65975 65976 65977 65978 65979 65980 65981 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65969
SWIGINTERN VALUE
_wrap_new_NcsubprocOptions(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *result = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
result = (struct ncsubproc_options *)calloc(1, sizeof(struct ncsubproc_options));
DATA_PTR(self) = result;
return self;
fail:
return Qnil;
}
|
Instance Method Details
#curry(*args) ⇒ Object
call-seq:
curry -> void *
Get value of attribute.
65685 65686 65687 65688 65689 65690 65691 65692 65693 65694 65695 65696 65697 65698 65699 65700 65701 65702 65703 65704 65705 65706 65707 65708 65709 65710 65711 65712 65713 65714 65715 65716 65717 65718 65719 65720 65721 65722 65723 65724 65725 65726 65727 65728 65729 65730 65731 65732 65733 65734 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65685
SWIGINTERN VALUE
_wrap_NcsubprocOptions_curry_get(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","curry", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
result = (void *) ((arg1)->curry);
{
VALUE hash = rb_hash_new();
VALUE obj;
if (strcmp("void *", "void") == 0) {
obj = Qnil;
} else {
obj = SWIG_Ruby_NewPointerObj(result, SWIGTYPE_p_void, 0);
}
rb_hash_aset(hash, ID2SYM(rb_intern("return")), obj);
vresult = hash;
}
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#curry=(*args) ⇒ Object
call-seq:
curry=(x) -> void *
Set new value for attribute.
65624 65625 65626 65627 65628 65629 65630 65631 65632 65633 65634 65635 65636 65637 65638 65639 65640 65641 65642 65643 65644 65645 65646 65647 65648 65649 65650 65651 65652 65653 65654 65655 65656 65657 65658 65659 65660 65661 65662 65663 65664 65665 65666 65667 65668 65669 65670 65671 65672 65673 65674 65675 65676 65677 65678 65679 65680 65681 65682 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65624
SWIGINTERN VALUE
_wrap_NcsubprocOptions_curry_set(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
void *arg2 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
VALUE vresult = Qnil;
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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","curry", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","curry", 2, argv[0] ));
}
if (arg1) (arg1)->curry = arg2;
vresult = rb_ary_new();
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("void *");
if (!ty) ty = SWIGTYPE_p_void;
VALUE obj = SWIG_NewPointerObj((void *)arg2, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("curry")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#flags(*args) ⇒ Object
call-seq:
flags -> uint64_t
Get value of attribute.
65905 65906 65907 65908 65909 65910 65911 65912 65913 65914 65915 65916 65917 65918 65919 65920 65921 65922 65923 65924 65925 65926 65927 65928 65929 65930 65931 65932 65933 65934 65935 65936 65937 65938 65939 65940 65941 65942 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65905
SWIGINTERN VALUE
_wrap_NcsubprocOptions_flags_get(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_t 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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","flags", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
result = (uint64_t) ((arg1)->flags);
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#flags=(*args) ⇒ Object
call-seq:
flags=(x) -> uint64_t
Set new value for attribute.
65859 65860 65861 65862 65863 65864 65865 65866 65867 65868 65869 65870 65871 65872 65873 65874 65875 65876 65877 65878 65879 65880 65881 65882 65883 65884 65885 65886 65887 65888 65889 65890 65891 65892 65893 65894 65895 65896 65897 65898 65899 65900 65901 65902 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65859
SWIGINTERN VALUE
_wrap_NcsubprocOptions_flags_set(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
VALUE vresult = Qnil;
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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","flags", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","flags", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->flags = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#restart_period(*args) ⇒ Object
call-seq:
restart_period -> uint64_t
Get value of attribute.
65801 65802 65803 65804 65805 65806 65807 65808 65809 65810 65811 65812 65813 65814 65815 65816 65817 65818 65819 65820 65821 65822 65823 65824 65825 65826 65827 65828 65829 65830 65831 65832 65833 65834 65835 65836 65837 65838 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65801
SWIGINTERN VALUE
_wrap_NcsubprocOptions_restart_period_get(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
uint64_t 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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","restart_period", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
result = (uint64_t) ((arg1)->restart_period);
vresult = SWIG_From_unsigned_SS_long((unsigned long)(result));
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|
#restart_period=(*args) ⇒ Object
call-seq:
restart_period=(x) -> uint64_t
Set new value for attribute.
65755 65756 65757 65758 65759 65760 65761 65762 65763 65764 65765 65766 65767 65768 65769 65770 65771 65772 65773 65774 65775 65776 65777 65778 65779 65780 65781 65782 65783 65784 65785 65786 65787 65788 65789 65790 65791 65792 65793 65794 65795 65796 65797 65798 |
# File 'ext/notcurses/src/notcurses_wrap.c', line 65755
SWIGINTERN VALUE
_wrap_NcsubprocOptions_restart_period_set(int argc, VALUE *argv, VALUE self) {
struct ncsubproc_options *arg1 = (struct ncsubproc_options *) 0 ;
uint64_t arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
unsigned long val2 ;
int ecode2 = 0 ;
VALUE vresult = Qnil;
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_ncsubproc_options, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ncsubproc_options *","restart_period", 1, self ));
}
arg1 = (struct ncsubproc_options *)(argp1);
ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","restart_period", 2, argv[0] ));
}
arg2 = (uint64_t)(val2);
if (arg1) (arg1)->restart_period = arg2;
{
if (vresult == Qnil) {
vresult = rb_hash_new();
}
if (!RB_TYPE_P(vresult, T_HASH)) {
VALUE temp = rb_hash_new();
rb_hash_aset(temp, ID2SYM(rb_intern("return")), vresult);
vresult = temp;
}
swig_type_info *ty = SWIG_TypeQuery("struct ncsubproc_options *");
if (!ty) ty = SWIGTYPE_p_ncsubproc_options;
VALUE obj = SWIG_NewPointerObj((void *)arg1, ty, 0);
rb_hash_aset(vresult, ID2SYM(rb_intern("self")), obj);
}
return vresult;
fail:
return Qnil;
}
|