ext/cproton/cproton.c in qpid_proton-0.25.0 vs ext/cproton/cproton.c in qpid_proton-0.26.0
- old
+ new
@@ -14813,10 +14813,42 @@
return Qnil;
}
SWIGINTERN VALUE
+_wrap_pn_message_encode2(int argc, VALUE *argv, VALUE self) {
+ pn_message_t *arg1 = (pn_message_t *) 0 ;
+ pn_rwbytes_t *arg2 = (pn_rwbytes_t *) 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ void *argp2 = 0 ;
+ int res2 = 0 ;
+ ssize_t result;
+ VALUE vresult = Qnil;
+
+ 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_message_t, 0 | 0 );
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_message_t *","pn_message_encode2", 1, argv[0] ));
+ }
+ arg1 = (pn_message_t *)(argp1);
+ res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_pn_rwbytes_t, 0 | 0 );
+ if (!SWIG_IsOK(res2)) {
+ SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "pn_rwbytes_t *","pn_message_encode2", 2, argv[1] ));
+ }
+ arg2 = (pn_rwbytes_t *)(argp2);
+ result = (ssize_t)pn_message_encode2(arg1,arg2);
+ vresult = SWIG_From_int((int)(result));
+ return vresult;
+fail:
+ 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 ;
@@ -15183,71 +15215,10 @@
return Qnil;
}
SWIGINTERN VALUE
-_wrap_pn_selectables(int argc, VALUE *argv, VALUE self) {
- pn_selectables_t *result = 0 ;
- VALUE vresult = Qnil;
-
- if ((argc < 0) || (argc > 0)) {
- rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
- }
- result = (pn_selectables_t *)pn_selectables();
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_iterator_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectables_next(int argc, VALUE *argv, VALUE self) {
- pn_selectables_t *arg1 = (pn_selectables_t *) 0 ;
- void *argp1 = 0 ;
- int res1 = 0 ;
- pn_selectable_t *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_iterator_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_next", 1, argv[0] ));
- }
- arg1 = (pn_selectables_t *)(argp1);
- result = (pn_selectable_t *)pn_selectables_next(arg1);
- vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_pn_selectable_t, 0 | 0 );
- return vresult;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
-_wrap_pn_selectables_free(int argc, VALUE *argv, VALUE self) {
- pn_selectables_t *arg1 = (pn_selectables_t *) 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(argv[0], &argp1,SWIGTYPE_p_pn_iterator_t, 0 | 0 );
- if (!SWIG_IsOK(res1)) {
- SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_selectables_t *","pn_selectables_free", 1, argv[0] ));
- }
- arg1 = (pn_selectables_t *)(argp1);
- pn_selectables_free(arg1);
- return Qnil;
-fail:
- return Qnil;
-}
-
-
-SWIGINTERN VALUE
_wrap_pn_selectable(int argc, VALUE *argv, VALUE self) {
pn_selectable_t *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
@@ -21410,11 +21381,11 @@
static swig_type_info _swigt__p_pn_event_t = {"_p_pn_event_t", "struct pn_event_t *|pn_event_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_event_type_t = {"_p_pn_event_type_t", "enum pn_event_type_t *|pn_event_type_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_expiry_policy_t = {"_p_pn_expiry_policy_t", "enum pn_expiry_policy_t *|pn_expiry_policy_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_handler_t = {"_p_pn_handler_t", "pn_handshaker_t *|struct pn_handler_t *|pn_flowcontroller_t *|pn_handler_t *|pn_iohandler_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_hash_t = {"_p_pn_hash_t", "struct pn_hash_t *|pn_hash_t *", 0, 0, (void*)0, 0};
-static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "pn_selectables_t *|struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
+static swig_type_info _swigt__p_pn_iterator_t = {"_p_pn_iterator_t", "struct pn_iterator_t *|pn_iterator_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_link_t = {"_p_pn_link_t", "struct pn_link_t *|pn_link_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_list_t = {"_p_pn_list_t", "struct pn_list_t *|pn_list_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_listener_t = {"_p_pn_listener_t", "struct pn_listener_t *|pn_listener_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_map_t = {"_p_pn_map_t", "struct pn_map_t *|pn_map_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_pn_message_t = {"_p_pn_message_t", "struct pn_message_t *|pn_message_t *", 0, 0, (void*)0, 0};
@@ -21994,11 +21965,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)(25)));
+ rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(26)));
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);
@@ -22505,10 +22476,11 @@
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_encode2", _wrap_pn_message_encode2, -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)));
@@ -22527,12 +22499,9 @@
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);
rb_define_module_function(mCproton, "pn_sasl_config_path", _wrap_pn_sasl_config_path, -1);
rb_define_const(mCproton, "PROTON_SELECTABLE_H", SWIG_From_int((int)(1)));
rb_define_const(mCproton, "PN_INVALID_SOCKET", SWIG_From_int((int)((-1))));
- rb_define_module_function(mCproton, "pn_selectables", _wrap_pn_selectables, -1);
- rb_define_module_function(mCproton, "pn_selectables_next", _wrap_pn_selectables_next, -1);
- rb_define_module_function(mCproton, "pn_selectables_free", _wrap_pn_selectables_free, -1);
rb_define_module_function(mCproton, "pn_selectable", _wrap_pn_selectable, -1);
rb_define_module_function(mCproton, "pn_selectable_on_readable", _wrap_pn_selectable_on_readable, -1);
rb_define_module_function(mCproton, "pn_selectable_on_writable", _wrap_pn_selectable_on_writable, -1);
rb_define_module_function(mCproton, "pn_selectable_on_expired", _wrap_pn_selectable_on_expired, -1);
rb_define_module_function(mCproton, "pn_selectable_on_error", _wrap_pn_selectable_on_error, -1);