From df66a60b90200b020c3e32a2a6302971b254bbd0 Mon Sep 17 00:00:00 2001 From: rimio Date: Thu, 3 Jan 2019 01:48:50 +0200 Subject: Initial --- src/sstv.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/sstv.c (limited to 'src/sstv.c') 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) + * + * 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 -- cgit v1.2.3