aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-05 20:34:52 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-05 20:34:52 +0200
commit6ba17a545f3a4df763aa75a31dd42275925e6cef (patch)
treee9fad7e304c408b498391779ca369197957cd466 /common.h
parentbfbbc743fb933409a3ead2af8c744b30c694dc86 (diff)
downloadsherlock.lv2-6ba17a545f3a4df763aa75a31dd42275925e6cef.tar.xz (sig)
redesign sherlock#atom_inspector.0.1.2
* show turtle instead of atom object genlist * fix detection of maximal amount of events
Diffstat (limited to 'common.h')
-rw-r--r--common.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/common.h b/common.h
new file mode 100644
index 0000000..35dc3e9
--- /dev/null
+++ b/common.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2015 Hanspeter Portner (dev@open-music-kontrollers.ch)
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the Artistic License 2.0 as published by
+ * The Perl Foundation.
+ *
+ * This source is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * Artistic License 2.0 for more details.
+ *
+ * You should have received a copy of the Artistic License 2.0
+ * along the source as a COPYING file. If not, obtain it from
+ * http://www.perlfoundation.org/artistic_license_2_0.
+ */
+
+#ifndef _COMMON_H
+#define _COMMON_H
+
+typedef void (*encoder_begin_t)(void *data);
+typedef void (*encoder_append_t)(const char *str, void *data);
+typedef void (*encoder_end_t)(void *data);
+typedef struct _moony_encoder_t moony_encoder_t;
+
+struct _moony_encoder_t {
+ encoder_begin_t begin;
+ encoder_append_t append;
+ encoder_end_t end;
+ void *data;
+};
+extern moony_encoder_t *encoder;
+
+void ttl_to_markup(const char *utf8, FILE *f);
+
+#endif