diff --git a/src/liblo.def.in b/src/liblo.def.in index 23a6e13..cbdcb72 100644 --- a/src/liblo.def.in +++ b/src/liblo.def.in @@ -151,4 +151,4 @@ EXPORTS lo_message_clear @148 lo_message_decref @149 lo_bundle_clear @150 - lo_bundle_get_timestamp @151 + lo_bundle_set_timestamp @151 diff --git a/src/testlo.c b/src/testlo.c index c39a574..5d655dd 100644 --- a/src/testlo.c +++ b/src/testlo.c @@ -1582,6 +1582,12 @@ void test_bundle(lo_server_thread st, lo_address a) lo_bundle_add_message(b, "/bundle", m1); TEST(lo_bundle_count(b) == 1); + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 0); + t.sec -= 1; + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 1); + lo_bundle_set_timestamp(b, t); + TEST(lo_timetag_diff(lo_bundle_get_timestamp(b), t) == 0); + lo_message_incref(m1); /* This should be safe for multiple copies of the same message. */