diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2009-09-14 23:43:17 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-09-14 23:43:17 +0300 |
commit | 3cec9ac67bd91b02077aab243bfea1ffbf8613f9 (patch) | |
tree | 8c13be6c078a7cdda2098770aa0f10cc663f4cac /gisi/iter.h | |
parent | 6c08fc8e5042fb8f4ea39e6ae73c724b46edd293 (diff) |
Add support for long sub-block header
Diffstat (limited to 'gisi/iter.h')
-rw-r--r-- | gisi/iter.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gisi/iter.h b/gisi/iter.h index 9c439a84..c769c050 100644 --- a/gisi/iter.h +++ b/gisi/iter.h @@ -34,14 +34,17 @@ extern "C" { struct _GIsiSubBlockIter { uint8_t *start; uint8_t *end; + bool longhdr; }; typedef struct _GIsiSubBlockIter GIsiSubBlockIter; +bool g_isi_sb_iter_init(const void restrict *data, size_t len, + GIsiSubBlockIter *iter, bool longhdr); bool g_isi_sb_iter_is_valid(GIsiSubBlockIter *iter); bool g_isi_sb_iter_next(GIsiSubBlockIter *iter); -uint8_t g_isi_sb_iter_get_id(GIsiSubBlockIter *iter); -uint8_t g_isi_sb_iter_get_len(GIsiSubBlockIter *iter); +int g_isi_sb_iter_get_id(GIsiSubBlockIter *iter); +size_t g_isi_sb_iter_get_len(GIsiSubBlockIter *iter); bool g_isi_sb_iter_get_byte(GIsiSubBlockIter *iter, uint8_t *byte, int pos); bool g_isi_sb_iter_get_word(GIsiSubBlockIter *iter, uint16_t *word, int pos); @@ -53,9 +56,6 @@ bool g_isi_sb_iter_get_alpha_tag(GIsiSubBlockIter *iter, char **utf8, bool g_isi_sb_iter_get_latin_tag(GIsiSubBlockIter *iter, char **ascii, size_t len, int pos); -bool g_isi_sb_iter_init(const void restrict *data, size_t len, - GIsiSubBlockIter *iter); - #ifdef __cplusplus } #endif |