diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-20 22:06:11 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-20 22:06:11 +0200 |
| commit | 830ee22b85f1e91c547354435af2b6a79578f7ce (patch) | |
| tree | 5eb5e9ba8c7d1e76dca5869d50a5b88fc54102a6 /src/cc4group.c | |
| parent | 4ded6e352ee0fb5d96d2e1b9f051aac1f07b4886 (diff) | |
| download | cc4group-830ee22b85f1e91c547354435af2b6a79578f7ce.tar.gz cc4group-830ee22b85f1e91c547354435af2b6a79578f7ce.zip | |
Add cc4group.isChild
Diffstat (limited to 'src/cc4group.c')
| -rw-r--r-- | src/cc4group.c | 8 |
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 }; |
