Last change
on this file since 461 was
409,
checked in by ymipsl, 12 years ago
|
Add improved nectdf internal library src
YM
|
-
Property svn:eol-style set to
native
|
File size:
1.3 KB
|
Rev | Line | |
---|
[409] | 1 | /********************************************************************* |
---|
| 2 | * Copyright 2010, UCAR/Unidata |
---|
| 3 | * See netcdf/COPYRIGHT file for copying and redistribution conditions. |
---|
| 4 | *********************************************************************/ |
---|
| 5 | |
---|
| 6 | #include "config.h" |
---|
| 7 | #include "ncdispatch.h" |
---|
| 8 | |
---|
| 9 | extern int NC3_initialize(void); |
---|
| 10 | |
---|
| 11 | #ifdef USE_NETCDF4 |
---|
| 12 | extern int NC4_initialize(void); |
---|
| 13 | #endif |
---|
| 14 | |
---|
| 15 | #ifdef USE_DAP |
---|
| 16 | extern int NCD3_initialize(void); |
---|
| 17 | #ifdef USE_NETCDF4 |
---|
| 18 | extern int NCD4_initialize(void); |
---|
| 19 | #endif |
---|
| 20 | #endif |
---|
| 21 | |
---|
| 22 | #ifdef USE_CDMREMOTE |
---|
| 23 | extern int NCCR_initialize(void); |
---|
| 24 | #endif |
---|
| 25 | |
---|
| 26 | #ifdef BUILD_RPC |
---|
| 27 | extern int NCRPC_initialize(void); |
---|
| 28 | #endif |
---|
| 29 | |
---|
| 30 | int |
---|
| 31 | NC_initialize(void) |
---|
| 32 | { |
---|
| 33 | int stat = NC_NOERR; |
---|
| 34 | |
---|
| 35 | /* Allow libdispatch to do initialization */ |
---|
| 36 | if((stat = NCDISPATCH_initialize())) return stat; |
---|
| 37 | |
---|
| 38 | /* Initialize each active protocol */ |
---|
| 39 | |
---|
| 40 | if((stat = NC3_initialize())) return stat; |
---|
| 41 | |
---|
| 42 | #ifdef USE_DAP |
---|
| 43 | if((stat = NCD3_initialize())) return stat; |
---|
| 44 | #endif |
---|
| 45 | |
---|
| 46 | #ifdef USE_NETCDF4 |
---|
| 47 | if((stat = NC4_initialize())) return stat; |
---|
| 48 | |
---|
| 49 | /* if((stat = NCD_initialize())) return stat; */ |
---|
| 50 | |
---|
| 51 | #ifdef USE_DAP |
---|
| 52 | #ifdef NOTUSED |
---|
| 53 | if((stat = NCD4_initialize())) return stat; |
---|
| 54 | #endif |
---|
| 55 | #endif |
---|
| 56 | |
---|
| 57 | #ifdef USE_CDMREMOTE |
---|
| 58 | if((stat = NCCR_initialize())) return stat; |
---|
| 59 | #endif |
---|
| 60 | |
---|
| 61 | #ifdef USE_RPC |
---|
| 62 | if((stat = NCRPC_initialize())) return stat; |
---|
| 63 | #endif |
---|
| 64 | |
---|
| 65 | #endif /* USE_NETCDF4 */ |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | return NC_NOERR; |
---|
| 69 | } |
---|
| 70 | |
---|
| 71 | |
---|
Note: See
TracBrowser
for help on using the repository browser.