diff options
Diffstat (limited to 'src/mds-server/interception_condition.c')
-rw-r--r-- | src/mds-server/interception_condition.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/mds-server/interception_condition.c b/src/mds-server/interception_condition.c index 076bc19..47a082a 100644 --- a/src/mds-server/interception_condition.c +++ b/src/mds-server/interception_condition.c @@ -74,3 +74,20 @@ size_t interception_condition_unmarshal(interception_condition_t* restrict this, return sizeof(size_t) + sizeof(int64_t) + sizeof(int) + n; } + +/** + * Pretend to an interception condition + * + * @param data In buffer with the marshalled data + * @return The number of read bytes + */ +size_t interception_condition_unmarshal_skip(char* restrict data) +{ + size_t n = sizeof(size_t) + sizeof(int64_t) + sizeof(int); + buf_next(data, size_t, 1); + buf_next(data, int64_t, 1); + buf_next(data, int, 1); + n += (strlen(data) + 1) * sizeof(char); + return n; +} + |