stub.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*********************************************************************
  2. * Copyright 2010, UCAR/Unidata
  3. * See netcdf/COPYRIGHT file for copying and redistribution conditions.
  4. *********************************************************************/
  5. #include "config.h"
  6. #include "ncdispatch.h"
  7. extern int NC3_initialize(void);
  8. #ifdef USE_NETCDF4
  9. extern int NC4_initialize(void);
  10. #endif
  11. #ifdef USE_DAP
  12. extern int NCD3_initialize(void);
  13. #ifdef USE_NETCDF4
  14. extern int NCD4_initialize(void);
  15. #endif
  16. #endif
  17. #ifdef USE_CDMREMOTE
  18. extern int NCCR_initialize(void);
  19. #endif
  20. #ifdef BUILD_RPC
  21. extern int NCRPC_initialize(void);
  22. #endif
  23. int
  24. NC_initialize(void)
  25. {
  26. int stat = NC_NOERR;
  27. /* Allow libdispatch to do initialization */
  28. if((stat = NCDISPATCH_initialize())) return stat;
  29. /* Initialize each active protocol */
  30. if((stat = NC3_initialize())) return stat;
  31. #ifdef USE_DAP
  32. if((stat = NCD3_initialize())) return stat;
  33. #endif
  34. #ifdef USE_NETCDF4
  35. if((stat = NC4_initialize())) return stat;
  36. /* if((stat = NCD_initialize())) return stat; */
  37. #ifdef USE_DAP
  38. #ifdef NOTUSED
  39. if((stat = NCD4_initialize())) return stat;
  40. #endif
  41. #endif
  42. #ifdef USE_CDMREMOTE
  43. if((stat = NCCR_initialize())) return stat;
  44. #endif
  45. #ifdef USE_RPC
  46. if((stat = NCRPC_initialize())) return stat;
  47. #endif
  48. #endif /* USE_NETCDF4 */
  49. return NC_NOERR;
  50. }