summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2020-04-21 01:00:59 +0200
committerMarkus Mittendrein <git@maxmitti.tk>2020-04-21 01:00:59 +0200
commit3addad2cfa45de0252b63adfa8c3f868076c3f40 (patch)
tree58ea79d58c65dda0017c23c207854cd415d0e216 /src/cc4group.c
parent85a1c875782b3ac10020a64a937d660b2b46d3b0 (diff)
downloadcc4group-3addad2cfa45de0252b63adfa8c3f868076c3f40.tar.gz
cc4group-3addad2cfa45de0252b63adfa8c3f868076c3f40.zip
Add cc4group.isPacked
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 1fc0584..da1ead4 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -3316,6 +3316,11 @@ static bool cc4group_isChild(const CC4Group* const this)
return this->parent != NULL;
}
+static bool cc4group_isPacked(const CC4Group* const this)
+{
+ return this->root.path != NULL;
+}
+
static const char* cc4group_getName(const CC4Group* const this)
{
return this->name;
@@ -3511,6 +3516,7 @@ CC4Group_API cc4group = {
.openAsChild = cc4group_openAsChild,
.isChild = cc4group_isChild,
+ .isPacked = cc4group_isPacked,
.getName = cc4group_getName,
.getFullName = cc4group_getFullName