diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2019-03-16 14:47:31 +0100 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2019-03-16 15:17:11 +0100 |
| commit | 106aeaeb988a279102bd23df8ec6abdaf12b61a0 (patch) | |
| tree | 31cb95cca4f3d2dd3414d24c4307857caf324c3e /src/cc4group.h | |
| parent | 32acc923607ee43cf7d2da2f7a8c2fb1d911d5ed (diff) | |
| download | cc4group-106aeaeb988a279102bd23df8ec6abdaf12b61a0.tar.gz cc4group-106aeaeb988a279102bd23df8ec6abdaf12b61a0.zip | |
Use void* instead of uint8_t* for passing data to openMemory and with the readCallback
Diffstat (limited to 'src/cc4group.h')
| -rw-r--r-- | src/cc4group.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc4group.h b/src/cc4group.h index a63d995..5031e95 100644 --- a/src/cc4group.h +++ b/src/cc4group.h @@ -35,7 +35,7 @@ typedef void* (*CC4Group_TmpMemoryStrategy)(CC4Group* const this, const size_t s // the callback has to store a pointer to the newly read data in data, as well as the amount of read data in size // the callback must return true if the end of data is reached or any read error happens and false otherwise // the pointer passed in will be handled as specified with the corresponding MemoryManagement -typedef bool (*CC4Group_ReadCallback)(const uint8_t** const data, size_t* const size, void* const arg); +typedef bool (*CC4Group_ReadCallback)(const void** const data, size_t* const size, void* const arg); typedef struct { CC4Group* (*new)(void); @@ -50,7 +50,7 @@ typedef struct { // only open an in-memory group on a frehsly created group object // see the description of MemoryManagement to know if and when data has to be freed by the caller // if the lazy mode is not used, the data can be freed immediately after this function returns - bool (*openMemory)(CC4Group* const this, const uint8_t* const groupData, size_t const size, int const memoryManagement); + bool (*openMemory)(CC4Group* const this, const void* const groupData, size_t const size, int const memoryManagement); // opens a group through a file descriptor // the file descriptor must have been opened with read access |
