ext/cproton/cproton.c in qpid_proton-0.23.0 vs ext/cproton/cproton.c in qpid_proton-0.24.0

- old
+ new

@@ -4402,11 +4402,11 @@ res2 = SWIG_ConvertPtr(argv[1],SWIG_as_voidptrptr(&arg2), 0, 0); if (!SWIG_IsOK(res2)) { SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","pn_class_hashcode", 2, argv[1] )); } result = (uintptr_t)pn_class_hashcode((struct pn_class_t const *)arg1,arg2); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -4626,11 +4626,11 @@ res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_void_hashcode", 1, argv[0] )); } result = (uintptr_t)pn_void_hashcode(arg1); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -4946,11 +4946,11 @@ res1 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg1), 0, 0); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "void *","pn_hashcode", 1, argv[0] )); } result = (uintptr_t)pn_hashcode(arg1); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5596,11 +5596,11 @@ if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_head", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); result = (pn_handle_t)pn_map_head(arg1); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5609,11 +5609,11 @@ _wrap_pn_map_next(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5622,17 +5622,17 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_next", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (pn_handle_t)pn_map_next(arg1,(void const *)arg2); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5641,11 +5641,11 @@ _wrap_pn_map_key(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5654,11 +5654,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_key", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_map_key(arg1,(void const *)arg2); @@ -5673,11 +5673,11 @@ _wrap_pn_map_value(int argc, VALUE *argv, VALUE self) { pn_map_t *arg1 = (pn_map_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5686,11 +5686,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_map_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_map_t *","pn_map_value", 1, argv[0] )); } arg1 = (pn_map_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_map_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_map_value(arg1,(void const *)arg2); @@ -5770,11 +5770,11 @@ pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; int res3 ; int result; VALUE vresult = Qnil; @@ -5784,11 +5784,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_put", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_put", 2, argv[1] )); } arg2 = (uintptr_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); @@ -5807,11 +5807,11 @@ _wrap_pn_hash_get(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5820,11 +5820,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_get", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_get", 2, argv[1] )); } arg2 = (uintptr_t)(val2); result = (void *)pn_hash_get(arg1,arg2); @@ -5839,22 +5839,22 @@ _wrap_pn_hash_del(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; uintptr_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 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_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_del", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uintptr_t","pn_hash_del", 2, argv[1] )); } arg2 = (uintptr_t)(val2); pn_hash_del(arg1,arg2); @@ -5879,11 +5879,11 @@ if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_head", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); result = (pn_handle_t)pn_hash_head(arg1); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5892,11 +5892,11 @@ _wrap_pn_hash_next(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; pn_handle_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5905,17 +5905,17 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_next", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_next", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (pn_handle_t)pn_hash_next(arg1,(void const *)arg2); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5924,11 +5924,11 @@ _wrap_pn_hash_key(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; uintptr_t result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5937,17 +5937,17 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_key", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_key", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (uintptr_t)pn_hash_key(arg1,(void const *)arg2); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -5956,11 +5956,11 @@ _wrap_pn_hash_value(int argc, VALUE *argv, VALUE self) { pn_hash_t *arg1 = (pn_hash_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -5969,11 +5969,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_hash_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_hash_t *","pn_hash_value", 1, argv[0] )); } arg1 = (pn_hash_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_hash_value", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_hash_value(arg1,(void const *)arg2); @@ -6544,11 +6544,11 @@ pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; pn_class_t *arg3 = (pn_class_t *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *argp3 = 0 ; int res3 = 0 ; if ((argc < 3) || (argc > 3)) { @@ -6557,11 +6557,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_def", 1, argv[0] )); } arg1 = (pn_record_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_def", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_pn_class_t, 0 | 0 ); @@ -6580,11 +6580,11 @@ _wrap_pn_record_has(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -6593,11 +6593,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_has", 1, argv[0] )); } arg1 = (pn_record_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_has", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (bool)pn_record_has(arg1,(void const *)arg2); @@ -6612,11 +6612,11 @@ _wrap_pn_record_get(int argc, VALUE *argv, VALUE self) { pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; void *result = 0 ; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -6625,11 +6625,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_get", 1, argv[0] )); } arg1 = (pn_record_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_get", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (void *)pn_record_get(arg1,(void const *)arg2); @@ -6645,11 +6645,11 @@ pn_record_t *arg1 = (pn_record_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *arg3 = (void *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; int res3 ; if ((argc < 3) || (argc > 3)) { rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail; @@ -6657,11 +6657,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_record_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_record_t *","pn_record_set", 1, argv[0] )); } arg1 = (pn_record_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_record_set", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); res3 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg3), 0, 0); @@ -10123,10 +10123,34 @@ return Qnil; } SWIGINTERN VALUE +_wrap_pn_terminus_has_expiry_policy(int argc, VALUE *argv, VALUE self) { + pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + bool result; + 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_terminus_t, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_terminus_t const *","pn_terminus_has_expiry_policy", 1, argv[0] )); + } + arg1 = (pn_terminus_t *)(argp1); + result = (bool)pn_terminus_has_expiry_policy((struct pn_terminus_t const *)arg1); + vresult = SWIG_From_bool((bool)(result)); + return vresult; +fail: + return Qnil; +} + + +SWIGINTERN VALUE _wrap_pn_terminus_set_expiry_policy(int argc, VALUE *argv, VALUE self) { pn_terminus_t *arg1 = (pn_terminus_t *) 0 ; pn_expiry_policy_t arg2 ; void *argp1 = 0 ; int res1 = 0 ; @@ -20447,11 +20471,11 @@ if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_point", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); result = (pn_handle_t)pn_data_point(arg1); - vresult = SWIG_From_unsigned_SS_long((unsigned long)(result)); + vresult = SWIG_From_unsigned_SS_long_SS_long((unsigned long long)(result)); return vresult; fail: return Qnil; } @@ -20460,11 +20484,11 @@ _wrap_pn_data_restore(int argc, VALUE *argv, VALUE self) { pn_data_t *arg1 = (pn_data_t *) 0 ; pn_handle_t arg2 = (pn_handle_t) 0 ; void *argp1 = 0 ; int res1 = 0 ; - unsigned long val2 ; + unsigned long long val2 ; int ecode2 = 0 ; bool result; VALUE vresult = Qnil; if ((argc < 2) || (argc > 2)) { @@ -20473,11 +20497,11 @@ res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_pn_data_t, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "pn_data_t *","pn_data_restore", 1, argv[0] )); } arg1 = (pn_data_t *)(argp1); - ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2); + ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val2); if (!SWIG_IsOK(ecode2)) { SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pn_handle_t","pn_data_restore", 2, argv[1] )); } arg2 = (pn_handle_t)(val2); result = (bool)pn_data_restore(arg1,(void const *)arg2); @@ -23196,12 +23220,12 @@ static swig_type_info _swigt__p_pn_uuid_t = {"_p_pn_uuid_t", "pn_uuid_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "signed char *|int8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "size_t *|unsigned int *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_seconds_t *|uintptr_t *|pn_decimal32_t *|uint32_t *|unsigned long *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "pn_seconds_t *|pn_decimal32_t *|uint32_t *|unsigned long *|pn_millis_t *|pn_char_t *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uintptr_t *|pn_decimal64_t *|uint64_t *|unsigned long long *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; static swig_type_info *swig_type_initial[] = { &_swigt__p_Pn_rbkey_t, @@ -23749,11 +23773,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)(23))); + rb_define_const(mCproton, "PN_VERSION_MINOR", SWIG_From_int((int)(24))); 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); @@ -24027,9 +24051,10 @@ rb_define_module_function(mCproton, "pn_terminus_get_distribution_mode", _wrap_pn_terminus_get_distribution_mode, -1); rb_define_module_function(mCproton, "pn_terminus_set_distribution_mode", _wrap_pn_terminus_set_distribution_mode, -1); rb_define_module_function(mCproton, "pn_terminus_get_durability", _wrap_pn_terminus_get_durability, -1); rb_define_module_function(mCproton, "pn_terminus_set_durability", _wrap_pn_terminus_set_durability, -1); rb_define_module_function(mCproton, "pn_terminus_get_expiry_policy", _wrap_pn_terminus_get_expiry_policy, -1); + rb_define_module_function(mCproton, "pn_terminus_has_expiry_policy", _wrap_pn_terminus_has_expiry_policy, -1); rb_define_module_function(mCproton, "pn_terminus_set_expiry_policy", _wrap_pn_terminus_set_expiry_policy, -1); rb_define_module_function(mCproton, "pn_terminus_get_timeout", _wrap_pn_terminus_get_timeout, -1); rb_define_module_function(mCproton, "pn_terminus_set_timeout", _wrap_pn_terminus_set_timeout, -1); rb_define_module_function(mCproton, "pn_terminus_is_dynamic", _wrap_pn_terminus_is_dynamic, -1); rb_define_module_function(mCproton, "pn_terminus_set_dynamic", _wrap_pn_terminus_set_dynamic, -1);