ECC-10: Creating a handle from a file

This commit is contained in:
Shahram Najm 2015-03-04 18:00:27 +00:00
parent 9c7bba115d
commit e133904a03
2 changed files with 11 additions and 0 deletions

View File

@ -407,6 +407,8 @@ int grib_count_in_file(grib_context* c, FILE* f,int* n);
*/
grib_handle* grib_handle_new_from_file(grib_context* c, FILE* f, int* error);
grib_handle* codes_handle_new_from_file(grib_context* c, FILE* f, ProductKind product, int* error);
grib_handle* codes_grib_handle_new_from_file(grib_context* c, FILE* f, int* error);
grib_handle* codes_bufr_handle_new_from_file(grib_context* c, FILE* f, int* error);
/**

View File

@ -321,6 +321,15 @@ grib_handle* codes_handle_new_from_file(grib_context* c, FILE* f, ProductKind pr
return NULL;
}
grib_handle* codes_grib_handle_new_from_file(grib_context* c, FILE* f, int* error)
{
return grib_handle_new_from_file(c, f, error);
}
grib_handle* codes_bufr_handle_new_from_file(grib_context* c, FILE* f, int* error)
{
return bufr_new_from_file(c, f, error);
}
grib_handle* grib_handle_new_from_message_copy ( grib_context* c, const void* data, size_t size )
{
grib_handle *g = NULL;