Skip to content

Commit

Permalink
more PIO_NCINT functions
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jul 6, 2019
1 parent f5cc645 commit acb666d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/ncint/ncintdispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ NC_Dispatch NCINT_dispatcher = {
PIO_NCINT_def_var_fill,

NC4_show_metadata,
NC4_inq_unlimdims,
PIO_NCINT_inq_unlimdims,

NC4_inq_ncid,
NC4_inq_grps,
Expand Down Expand Up @@ -782,3 +782,24 @@ PIO_NCINT_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value)
{
return PIOc_def_var_fill(ncid, varid, no_fill, fill_value);
}

/**
* @internal Returns an array of unlimited dimension ids.The user can
* get the number of unlimited dimensions by first calling this with
* NULL for the second pointer.
*
* @param ncid File and group ID.
* @param nunlimdimsp Pointer that gets the number of unlimited
* dimensions. Ignored if NULL.
* @param unlimdimidsp Pointer that gets arrray of unlimited dimension
* ID. Ignored if NULL.
*
* @return ::NC_NOERR No error.
* @return ::NC_EBADID Bad ncid.
* @author Ed Hartnett, Dennis Heimbigner
*/
int
PIO_NCINT_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp)
{
return PIOc_inq_unlimdims(ncid, nunlimdimsp, unlimdimidsp);
}
4 changes: 4 additions & 0 deletions src/ncint/ncintdispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ extern "C" {
extern int
PIO_NCINT_def_var_fill(int ncid, int varid, int no_fill, const void *fill_value);

extern int
PIO_NCINT_inq_unlimdims(int ncid, int *nunlimdimsp, int *unlimdimidsp);



#if defined(__cplusplus)
}
Expand Down

0 comments on commit acb666d

Please sign in to comment.