diff options
author | cbdev <cb@cbcdn.com> | 2018-02-28 17:05:56 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-02-28 17:05:56 +0100 |
commit | 2477edba0ae270a337f284ac7862d172f66a0303 (patch) | |
tree | e03418eb4127e796a13910686e4309669e247b00 /midimonster.h | |
parent | a16094253ba19f2e7123029eb80fba52b0d192b6 (diff) | |
download | midimonster-2477edba0ae270a337f284ac7862d172f66a0303.tar.gz midimonster-2477edba0ae270a337f284ac7862d172f66a0303.tar.bz2 midimonster-2477edba0ae270a337f284ac7862d172f66a0303.zip |
Update ArtNet configuration syntax, add mm_timestamp API
Diffstat (limited to 'midimonster.h')
-rw-r--r-- | midimonster.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |