GRIB-635: Missing function prototypes in grib_api.h

This commit is contained in:
Shahram Najm 2014-11-18 10:59:44 +00:00
parent 8ca82e9bd9
commit 4dc78d8c68
3 changed files with 9 additions and 5 deletions

View File

@ -85,6 +85,9 @@ int main(int argc, char *argv[])
bzero(value,vlen);
GRIB_CHECK(grib_get_string(h,name,value,&vlen),name);
printf("%s = %s\n",name,value);
/* Alternative way of getting the string value */
GRIB_CHECK(grib_keys_iterator_get_string(kiter, value, &vlen),0);
}
grib_keys_iterator_delete(kiter);

View File

@ -1277,8 +1277,13 @@ int grib_keys_iterator_delete( grib_keys_iterator* kiter);
*/
int grib_keys_iterator_rewind(grib_keys_iterator* kiter);
int grib_keys_iterator_set_flags(grib_keys_iterator *kiter,unsigned long flags);
int grib_keys_iterator_get_long(grib_keys_iterator *kiter, long *v, size_t *len);
int grib_keys_iterator_get_double(grib_keys_iterator *kiter, double *v, size_t *len);
int grib_keys_iterator_get_string(grib_keys_iterator *kiter, char *v, size_t *len);
int grib_keys_iterator_get_bytes(grib_keys_iterator *kiter, unsigned char *v, size_t *len);
/* @} */
void grib_update_sections_lengths(grib_handle* h);

View File

@ -1022,10 +1022,6 @@ int grib_keys_iterator_next(grib_keys_iterator *kiter);
const char *grib_keys_iterator_get_name(grib_keys_iterator *kiter);
grib_accessor *grib_keys_iterator_get_accessor(grib_keys_iterator *kiter);
int grib_keys_iterator_delete(grib_keys_iterator *kiter);
int grib_keys_iterator_get_long(grib_keys_iterator *kiter, long *v, size_t *len);
int grib_keys_iterator_get_double(grib_keys_iterator *kiter, double *v, size_t *len);
int grib_keys_iterator_get_string(grib_keys_iterator *kiter, char *v, size_t *len);
int grib_keys_iterator_get_bytes(grib_keys_iterator *kiter, unsigned char *v, size_t *len);
int grib_keys_iterator_get_native_type(grib_keys_iterator *kiter);
/* grib_parse_utils.c */