ext/cproton/cproton.c in qpid_proton-0.32.0 vs ext/cproton/cproton.c in qpid_proton-0.33.0
- old
+ new
@@ -7768,10 +7768,42 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connection_set_authorization(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ char *arg2 = (char *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ int res2 ;
+ char *buf2 = 0 ;
+ int alloc2 = 0 ;
+
+ if ((argc < 2) || (argc > 2)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_set_authorization", 1, argv[0] ));
+ }
+ arg1 = (pn_connection_t *)(argp1);
+ res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","pn_connection_set_authorization", 2, argv[1] ));
+ }
+ arg2 = (char *)(buf2);
+ pn_connection_set_authorization(arg1,(char const *)arg2);
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+fail:
+ if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_connection_get_user(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
@@ -7792,10 +7824,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_connection_get_authorization(int argc, VALUE *argv, VALUE self) {
+ pn_connection_t *arg1 = (pn_connection_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 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(argv[0], &argp1,SWIGTYPE_p_pn_connection_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_connection_t *","pn_connection_get_authorization", 1, argv[0] ));
+ }
+ arg1 = (pn_connection_t *)(argp1);
+ result = (char *)pn_connection_get_authorization(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_connection_get_hostname(int argc, VALUE *argv, VALUE self) {
pn_connection_t *arg1 = (pn_connection_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
@@ -15080,10 +15136,34 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_sasl_get_authorization(int argc, VALUE *argv, VALUE self) {
+ pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ char *result = 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(argv[0], &argp1,SWIGTYPE_p_pn_sasl_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_sasl_t *","pn_sasl_get_authorization", 1, argv[0] ));
+ }
+ arg1 = (pn_sasl_t *)(argp1);
+ result = (char *)pn_sasl_get_authorization(arg1);
+ vresult = SWIG_FromCharPtr((const char *)result);
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_sasl_get_mech(int argc, VALUE *argv, VALUE self) {
pn_sasl_t *arg1 = (pn_sasl_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
char *result = 0 ;
@@ -19748,11 +19828,11 @@
rb_define_module_function(mCproton, "pni_connection_driver_transport", _wrap_pni_connection_driver_transport, -1);
rb_define_module_function(mCproton, "pni_connection_driver_read_copy", _wrap_pni_connection_driver_read_copy, -1);
rb_define_module_function(mCproton, "pni_connection_driver", _wrap_pni_connection_driver, -1);
rb_define_const(mCproton, "PROTON_IMPORT_EXPORT_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_VERSION_MAJOR", SWIG_From_int((int)(0)));
- rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(32)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(33)));
rb_define_const(mCproton, "PN_VERSION_POINT", SWIG_From_int((int)(0)));
rb_define_const(mCproton, "PROTON_TYPES_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_MILLIS_MAX", SWIG_From_unsigned_SS_int((unsigned int)((~0U))));
rb_define_module_function(mCproton, "pn_bytes", _wrap_pn_bytes, -1);
rb_define_singleton_method(mCproton, "pn_bytes_null", _wrap_pn_bytes_null_get, 0);
@@ -19915,11 +19995,13 @@
rb_define_module_function(mCproton, "pn_connection_remote_condition", _wrap_pn_connection_remote_condition, -1);
rb_define_module_function(mCproton, "pn_connection_get_container", _wrap_pn_connection_get_container, -1);
rb_define_module_function(mCproton, "pn_connection_set_container", _wrap_pn_connection_set_container, -1);
rb_define_module_function(mCproton, "pn_connection_set_user", _wrap_pn_connection_set_user, -1);
rb_define_module_function(mCproton, "pn_connection_set_password", _wrap_pn_connection_set_password, -1);
+ rb_define_module_function(mCproton, "pn_connection_set_authorization", _wrap_pn_connection_set_authorization, -1);
rb_define_module_function(mCproton, "pn_connection_get_user", _wrap_pn_connection_get_user, -1);
+ rb_define_module_function(mCproton, "pn_connection_get_authorization", _wrap_pn_connection_get_authorization, -1);
rb_define_module_function(mCproton, "pn_connection_get_hostname", _wrap_pn_connection_get_hostname, -1);
rb_define_module_function(mCproton, "pn_connection_set_hostname", _wrap_pn_connection_set_hostname, -1);
rb_define_module_function(mCproton, "pn_connection_remote_container", _wrap_pn_connection_remote_container, -1);
rb_define_module_function(mCproton, "pn_connection_remote_hostname", _wrap_pn_connection_remote_hostname, -1);
rb_define_module_function(mCproton, "pn_connection_offered_capabilities", _wrap_pn_connection_offered_capabilities, -1);
@@ -20285,9 +20367,10 @@
rb_define_module_function(mCproton, "pn_sasl", _wrap_pn_sasl, -1);
rb_define_module_function(mCproton, "pn_sasl_extended", _wrap_pn_sasl_extended, -1);
rb_define_module_function(mCproton, "pn_sasl_done", _wrap_pn_sasl_done, -1);
rb_define_module_function(mCproton, "pn_sasl_outcome", _wrap_pn_sasl_outcome, -1);
rb_define_module_function(mCproton, "pn_sasl_get_user", _wrap_pn_sasl_get_user, -1);
+ rb_define_module_function(mCproton, "pn_sasl_get_authorization", _wrap_pn_sasl_get_authorization, -1);
rb_define_module_function(mCproton, "pn_sasl_get_mech", _wrap_pn_sasl_get_mech, -1);
rb_define_module_function(mCproton, "pn_sasl_allowed_mechs", _wrap_pn_sasl_allowed_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_set_allow_insecure_mechs", _wrap_pn_sasl_set_allow_insecure_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_get_allow_insecure_mechs", _wrap_pn_sasl_get_allow_insecure_mechs, -1);
rb_define_module_function(mCproton, "pn_sasl_config_name", _wrap_pn_sasl_config_name, -1);