/* * Document-method: critical= * * call-seq: * ctrl.critical=(val) => val * ctrl.iscritical=(val) => val * * Set the criticality of the control. +val+ should be *true* or *false*. */ static VALUE rb_ldap_control_critical (int argc, VALUE argv[], VALUE self) { VALUE val; LDAPControl *ctl; Data_Get_Struct (self, LDAPControl, ctl); if (rb_scan_args (argc, argv, "01", &val) == 1) { val = rb_ldap_control_set_critical (self, val); } else { val = rb_ldap_control_get_critical (self); } return val; }