From 2477edba0ae270a337f284ac7862d172f66a0303 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 28 Feb 2018 17:05:56 +0100 Subject: Update ArtNet configuration syntax, add mm_timestamp API --- midimonster.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'midimonster.h') diff --git a/midimonster.h b/midimonster.h index 630399a..9f1a33e 100644 --- a/midimonster.h +++ b/midimonster.h @@ -187,5 +187,15 @@ int mm_channel_event(channel* c, channel_value v); * *i will need to be freed by the caller. */ int mm_backend_instances(char* backend, size_t* n, instance*** i); +/* + * Query an internal timestamp, which is updated every core iteration. + * This timestamp should not be used as a performance counter, but can be + * used for timeouting. Resolution is milliseconds. + */ +uint64_t mm_timestamp(); +/* + * Create a channel-to-channel mapping. This API should not + * be used by backends. It is only exported for core modules. + */ int mm_map_channel(channel* from, channel* to); #endif -- cgit v1.2.3