diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2009-09-30 23:12:17 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-10-07 23:21:15 +0300 |
commit | bc8031e2d7c87f7267f917994f38a3eb4721c4ab (patch) | |
tree | e18a17ab9428e1f78e5a6ac752f9f7736f96ac4e /gisi/iter.h | |
parent | 74c15989c92532a1ca5e03ff14701727f5a74f92 (diff) |
gisi: use const and restrict in iter
Diffstat (limited to 'gisi/iter.h')
-rw-r--r-- | gisi/iter.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/gisi/iter.h b/gisi/iter.h index 7a854172..7596af04 100644 --- a/gisi/iter.h +++ b/gisi/iter.h @@ -40,21 +40,24 @@ 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_is_valid(const GIsiSubBlockIter *iter); bool g_isi_sb_iter_next(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); -bool g_isi_sb_iter_get_dword(GIsiSubBlockIter *iter, uint32_t *dword, int pos); -bool g_isi_sb_iter_get_oper_code(GIsiSubBlockIter *iter, char *mcc, - char *mnc, int pos); -bool g_isi_sb_iter_get_alpha_tag(GIsiSubBlockIter *iter, char **utf8, - size_t len, int pos); -bool g_isi_sb_iter_get_latin_tag(GIsiSubBlockIter *iter, char **ascii, - size_t len, int pos); +int g_isi_sb_iter_get_id(const GIsiSubBlockIter *iter); +size_t g_isi_sb_iter_get_len(const GIsiSubBlockIter *iter); + +bool g_isi_sb_iter_get_byte(const GIsiSubBlockIter *restrict iter, + uint8_t *byte, int pos); +bool g_isi_sb_iter_get_word(const GIsiSubBlockIter *restrict iter, + uint16_t *word, int pos); +bool g_isi_sb_iter_get_dword(const GIsiSubBlockIter *restrict iter, + uint32_t *dword, int pos); +bool g_isi_sb_iter_get_oper_code(const GIsiSubBlockIter *restrict iter, + char *mcc, char *mnc, int pos); +bool g_isi_sb_iter_get_alpha_tag(const GIsiSubBlockIter *restrict iter, + char **utf8, size_t len, int pos); +bool g_isi_sb_iter_get_latin_tag(const GIsiSubBlockIter *restrict iter, + char **ascii, size_t len, int pos); #ifdef __cplusplus } |