ext/cproton/cproton.c in qpid_proton-0.22.0 vs ext/cproton/cproton.c in qpid_proton-0.23.0
- old
+ new
@@ -14789,10 +14789,50 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_send(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_t *) 0 ;
+ pn_link_t *arg2 = (pn_link_t *) 0 ;
+ pn_rwbytes_t *arg3 = (pn_rwbytes_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ void *argp3 = 0 ;
+ int res3 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ if ((argc < 3) || (argc > 3)) {
+ rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
+ }
+ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_send", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_link_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_link_t *","pn_message_send", 2, argv[1] ));
+ }
+ arg2 = (pn_link_t *)(argp2);
+ res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_rwbytes_t, 0 | 0 );
+ if (!SWIG_IsOK(res3)) {
+ SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_send", 3, argv[2] ));
+ }
+ arg3 = (pn_rwbytes_t *)(argp3);
+ result = (ssize_t)pn_message_send(arg1,arg2,arg3);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ return Qnil;
+}
+
+
+SWIGINTERN VALUE
_wrap_pn_message_data(int argc, VALUE *argv, VALUE self) {
pn_message_t *arg1 = (pn_message_t *) 0 ;
pn_data_t *arg2 = (pn_data_t *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
@@ -23709,11 +23749,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)(22)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(23)));
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);
@@ -24219,9 +24259,10 @@
rb_define_module_function(mCproton, "pn_message_instructions", _wrap_pn_message_instructions, -1);
rb_define_module_function(mCproton, "pn_message_annotations", _wrap_pn_message_annotations, -1);
rb_define_module_function(mCproton, "pn_message_properties", _wrap_pn_message_properties, -1);
rb_define_module_function(mCproton, "pn_message_body", _wrap_pn_message_body, -1);
rb_define_module_function(mCproton, "pn_message_decode", _wrap_pn_message_decode, -1);
+ rb_define_module_function(mCproton, "pn_message_send", _wrap_pn_message_send, -1);
rb_define_module_function(mCproton, "pn_message_data", _wrap_pn_message_data, -1);
rb_define_const(mCproton, "PROTON_SASL_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_SASL_NONE", SWIG_From_int((int)(PN_SASL_NONE)));
rb_define_const(mCproton, "PN_SASL_OK", SWIG_From_int((int)(PN_SASL_OK)));
rb_define_const(mCproton, "PN_SASL_AUTH", SWIG_From_int((int)(PN_SASL_AUTH)));