diff options
| author | Jakub Hrozek <jhrozek@redhat.com> | 2016-09-20 18:46:40 +0200 |
|---|---|---|
| committer | Lukas Slebodnik <lslebodn@redhat.com> | 2017-03-14 13:31:47 +0100 |
| commit | 9a9b5e115b079751422be22fd252c0b283611c62 (patch) | |
| tree | 6ca3c632c78c3428cb76f879bbf58b0320157af7 /src/python | |
| parent | cab319e2db4b3d85dcadbfdf4c88939df103892e (diff) | |
| download | sssd-9a9b5e115b079751422be22fd252c0b283611c62.tar.gz sssd-9a9b5e115b079751422be22fd252c0b283611c62.tar.xz sssd-9a9b5e115b079751422be22fd252c0b283611c62.zip | |
UTIL: Add a generic iobuf module
The KCM responder reads bytes and writes bytes from a buffer of bytes.
Instead of letting the caller deal with low-level handling using the
SAFEALIGN macros, this patch adds a new iobuf.c module with more
high-level functions.
The core is a iobuf struct that keeps track of the buffer, its total
capacity and a current read or write position.
There are helper function to read or write a generic buffer with a set
length. Later, we will also add convenience functions to read C data
types using the SAFEALIGN macros.
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions
