qmlFrontend/flib.h
branchqmlfrontend
changeset 10416 1c301054694d
child 10418 091d2c0216c3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qmlFrontend/flib.h	Sat Sep 20 00:56:54 2014 +0400
@@ -0,0 +1,30 @@
+#ifndef FLIB_H
+#define FLIB_H
+
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef union string255_
+    {
+        struct {
+            unsigned char s[256];
+        };
+        struct {
+            unsigned char len;
+            unsigned char str[255];
+        };
+    } string255;
+
+typedef void RunEngine_t(int argc, char ** argv);
+typedef void registerIPCCallback_t(void * context, void (*)(void * context, string255 str));
+typedef void ipcToEngine_t(string255 str);
+typedef void flibInit_t();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // FLIB_H