diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-18 21:11:10 +0300 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2014-08-18 21:11:10 +0300 |
commit | be0b9e047a007685aa10a268f9bf856e9a52ef58 (patch) | |
tree | 81ac0c52f93b5ece781c3c1a0c9821ffc5725ebc /pb_common.h | |
parent | 62b4a8ecaac45ce62cc93e09261d60e6ceade1a9 (diff) |
Rename poorly named identifier to avoid name conflicts.
Update issue 106
Status: FixedInGit
Diffstat (limited to 'pb_common.h')
-rw-r--r-- | pb_common.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pb_common.h b/pb_common.h index 01a37682..60b3d374 100644 --- a/pb_common.h +++ b/pb_common.h @@ -2,8 +2,8 @@ * These functions are rarely needed by applications directly. */ -#ifndef _PB_COMMON_H_ -#define _PB_COMMON_H_ +#ifndef PB_COMMON_H_INCLUDED +#define PB_COMMON_H_INCLUDED #include "pb.h" @@ -12,14 +12,15 @@ extern "C" { #endif /* Iterator for pb_field_t list */ -typedef struct { +struct pb_field_iter_s { const pb_field_t *start; /* Start of the pb_field_t array */ const pb_field_t *pos; /* Current position of the iterator */ unsigned required_field_index; /* Zero-based index that counts only the required fields */ void *dest_struct; /* Pointer to start of the structure */ void *pData; /* Pointer to current field value */ void *pSize; /* Pointer to count/has field */ -} pb_field_iter_t; +}; +typedef struct pb_field_iter_s pb_field_iter_t; /* Initialize the field iterator structure to beginning. * Returns false if the message type is empty. */ |