From 453d70f9b7431e703e9c8e51e2bc16caf35b7382 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Tue, 29 Jan 2019 22:18:12 +0000 Subject: backend: Add open_memory function --- src/backend.h | 7 +++++++ 1 file changed, 7 insertions(+) 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 + 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 -- cgit v1.2.3