summaryrefslogtreecommitdiffstats
path: root/src/cc4group.h
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2019-03-16 00:58:05 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2019-03-16 00:58:05 +0100
commit7c2cda2544f22add8114828535a397a2d733361d (patch)
tree0660bd6ad220a5171b6a4f5c5e172813afd3d52c /src/cc4group.h
parentb627615a50df6fdbf9bf574f600a5f2b6cc8eb8d (diff)
downloadcc4group-7c2cda2544f22add8114828535a397a2d733361d.tar.gz
cc4group-7c2cda2544f22add8114828535a397a2d733361d.zip
Add openMemory method with an example
Diffstat (limited to 'src/cc4group.h')
-rw-r--r--src/cc4group.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cc4group.h b/src/cc4group.h
index 9c5625b..16c684a 100644
--- a/src/cc4group.h
+++ b/src/cc4group.h
@@ -36,9 +36,14 @@ typedef struct {
bool (*create)(CC4Group* const this);
void (*delete)(CC4Group* const this);
+ // opens a group on the filesystem; path may point to a directory inside a group
// only open an existing group on a frehsly created group object
bool (*openExisting)(CC4Group* const this, const char* const path);
+ // opens a group that is stored entirely in memory
+ // only open an in-memory group on a frehsly created group object
+ bool (*openMemory)(CC4Group* const this, const uint8_t* const groupData, size_t const size);
+
bool (*save)(CC4Group* const this, const char* const path);
bool (*saveOverwrite)(CC4Group* const this, const char* const path);