summaryrefslogtreecommitdiff
path: root/src/sstv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sstv.c')
-rw-r--r--src/sstv.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sstv.c b/src/sstv.c
new file mode 100644
index 0000000..a29acd3
--- /dev/null
+++ b/src/sstv.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2018 Vasile Vilvoiu (YO7JBP) <vasi.vilvoiu@gmail.com>
+ *
+ * libsstv is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
+#include "libsstv.h"
+
+sstv_malloc_t sstv_malloc_user = NULL;
+sstv_free_t sstv_free_user = NULL;
+
+sstv_error_t
+sstv_init(sstv_malloc_t alloc_func, sstv_free_t dealloc_func)
+{
+ /* Keep user functions for allocation/deallocation */
+ sstv_malloc_user = alloc_func;
+ sstv_free_user = dealloc_func;
+ return SSTV_OK;
+} \ No newline at end of file