summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cc4group.c b/src/cc4group.c
index 5cbce53..c1c434a 100644
--- a/src/cc4group.c
+++ b/src/cc4group.c
@@ -3289,6 +3289,11 @@ static CC4Group* cc4group_openAsChild(CC4Group* const this, const char* const pa
return child;
}
+static bool cc4group_isChild(const CC4Group* const this)
+{
+ return this->parent != NULL;
+}
+
static void* cc4group_memoryManagementTakeStart(void* const data, size_t const size, void* const arg)
{
(void)size;
@@ -3436,5 +3441,6 @@ CC4Group_API cc4group = {
.getErrorCauser = cc4group_getErrorCauser,
- .openAsChild = cc4group_openAsChild
+ .openAsChild = cc4group_openAsChild,
+ .isChild = cc4group_isChild
};