mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
47 lines
1020 B
C
47 lines
1020 B
C
/*********************************************************************
|
|
* Copyright 2010, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
*********************************************************************/
|
|
|
|
/* $Id: stub.c,v 1.8 2010/05/25 13:53:02 ed Exp $ */
|
|
/* $Header: /upc/share/CVS/netcdf-3/liblib/stub.c,v 1.8 2010/05/25 13:53:02 ed Exp $ */
|
|
|
|
#include "config.h"
|
|
#include "ncdispatch.h"
|
|
|
|
extern int NC3_initialize(void);
|
|
#ifdef USE_NETCDF4
|
|
extern int NC4_initialize(void);
|
|
#endif
|
|
|
|
#ifdef USE_DAP
|
|
extern int NCD3_initialize(void);
|
|
#ifdef USE_NETCDF4
|
|
extern int NCD4_initialize(void);
|
|
#endif
|
|
#endif
|
|
|
|
int
|
|
NC_initialize(void)
|
|
{
|
|
int stat = NC_NOERR;
|
|
|
|
if((stat = NC3_initialize())) return stat;
|
|
|
|
#ifdef USE_NETCDF4
|
|
if((stat = NC4_initialize())) return stat;
|
|
#endif
|
|
|
|
#ifdef USE_DAP
|
|
if((stat = NCD3_initialize())) return stat;
|
|
#endif
|
|
|
|
#if defined(USE_DAP) && defined(USE_NETCDF4)
|
|
if((stat = NCD4_initialize())) return stat;
|
|
#endif
|
|
|
|
return NC_NOERR;
|
|
}
|
|
|
|
|