netcdf-c/include/hdf4dispatch.h

62 lines
1.4 KiB
C
Raw Normal View History

2018-02-08 21:20:58 +08:00
/* Copyright 2018, UCAR/Unidata. See netcdf/COPYRIGHT file for copying
* and redistribution conditions. */
/**
2018-04-05 04:11:44 +08:00
* @file @internal This header file contains the prototypes for the
* HDF4 versions of the netCDF functions. This is part of the HDF4
* dispatch layer and this header should not be included by any file
* outside the libhdf4 directory.
2018-02-08 21:20:58 +08:00
*
* Ed Hartnett
*/
#ifndef _HDF4DISPATCH_H
#define _HDF4DISPATCH_H
#include "config.h"
#include "ncdispatch.h"
2018-04-05 04:11:44 +08:00
/** This is the max number of dimensions for a HDF4 SD dataset (from
* HDF4 documentation). */
#define NC_MAX_HDF4_DIMS 32
2018-02-08 21:20:58 +08:00
2018-04-05 04:11:44 +08:00
/* Stuff below is for hdf4 files. */
typedef struct NC_VAR_HDF4_INFO
{
int sdsid;
int hdf4_data_type;
2018-04-05 04:11:44 +08:00
} NC_VAR_HDF4_INFO_T;
2018-02-08 21:20:58 +08:00
2018-04-05 04:11:44 +08:00
typedef struct NC_HDF4_FILE_INFO
{
int sdid;
2018-04-05 04:11:44 +08:00
} NC_HDF4_FILE_INFO_T;
2018-02-08 21:20:58 +08:00
2018-04-05 04:11:44 +08:00
#if defined(__cplusplus)
extern "C" {
#endif
2018-02-08 21:20:58 +08:00
extern int
NC_HDF4_open(const char *path, int mode, int basepe, size_t *chunksizehintp,
2019-08-02 04:30:20 +08:00
void *parameters, const NC_Dispatch *, int);
2018-02-08 21:20:58 +08:00
extern int
NC_HDF4_abort(int ncid);
2019-01-02 20:58:54 +08:00
extern int
NC_HDF4_close(int ncid, void *ignore);
2018-02-08 21:20:58 +08:00
extern int
NC_HDF4_inq_format(int ncid, int *formatp);
2018-02-08 21:20:58 +08:00
extern int
NC_HDF4_inq_format_extended(int ncid, int *formatp, int *modep);
2018-02-08 21:20:58 +08:00
extern int
NC_HDF4_get_vara(int ncid, int varid, const size_t *start, const size_t *count,
void *value, nc_type);
2018-02-08 21:20:58 +08:00
#if defined(__cplusplus)
}
#endif
#endif /*_HDF4DISPATCH_H */