aboutsummaryrefslogtreecommitdiff
path: root/src/backend.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-01-29 22:18:12 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-01-29 22:26:22 +0000
commit453d70f9b7431e703e9c8e51e2bc16caf35b7382 (patch)
tree44baad8e40a769b418cfa4575363933cda64ccea /src/backend.h
parent5ea3ec05df4d0d39f876e922f4a19022c180e302 (diff)
downloadimv-453d70f9b7431e703e9c8e51e2bc16caf35b7382.tar.gz
backend: Add open_memory function
Diffstat (limited to 'src/backend.h')
-rw-r--r--src/backend.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/backend.h b/src/backend.h
index 714efde..0ec7c01 100644
--- a/src/backend.h
+++ b/src/backend.h
@@ -1,6 +1,8 @@
#ifndef IMV_BACKEND_H
#define IMV_BACKEND_H
+#include <stddef.h>
+
struct imv_source;
enum backend_result {
@@ -31,6 +33,11 @@ struct imv_backend {
* Output: initialises the imv_source instance passed in
*/
enum backend_result (*open_path)(const char *path, struct imv_source **src);
+
+ /* Input: pointer to data and length of data
+ * Output: initialises the imv_source instance passed in
+ */
+ enum backend_result (*open_memory)(void *data, size_t len, struct imv_source **src);
};
#endif