ncd3dispatch.h 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 1993-1996 University Corporation for Atmospheric Research/Unidata
  3. *
  4. * Portions of this software were developed by the Unidata Program at the
  5. * University Corporation for Atmospheric Research.
  6. *
  7. * Access and use of this software shall impose the following obligations
  8. * and understandings on the user. The user is granted the right, without
  9. * any fee or cost, to use, copy, modify, alter, enhance and distribute
  10. * this software, and any derivative works thereof, and its supporting
  11. * documentation for any purpose whatsoever, provided that this entire
  12. * notice appears in all copies of the software, derivative works and
  13. * supporting documentation. Further, UCAR requests that the user credit
  14. * UCAR/Unidata in any publications that result from the use of this
  15. * software or in any product that includes this software. The names UCAR
  16. * and/or Unidata, however, may not be used in any advertising or publicity
  17. * to endorse or promote any products or commercial entity unless specific
  18. * written permission is obtained from UCAR/Unidata. The user also
  19. * understands that UCAR/Unidata is not obligated to provide the user with
  20. * any support, consulting, training or assistance of any kind with regard
  21. * to the use, operation and performance of this software nor to provide
  22. * the user with any updates, revisions, new versions or "bug fixes."
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY UCAR/UNIDATA "AS IS" AND ANY EXPRESS OR
  25. * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  26. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  27. * DISCLAIMED. IN NO EVENT SHALL UCAR/UNIDATA BE LIABLE FOR ANY SPECIAL,
  28. * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
  29. * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  30. * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
  31. * WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE.
  32. */
  33. /* "$Id: ncd3dispatch.h,v 1.3 2010/05/27 21:34:09 dmh Exp $" */
  34. #ifndef _NCD3DISPATCH_H
  35. #define _NCD3DISPATCH_H
  36. #include <stddef.h> /* size_t, ptrdiff_t */
  37. #include "netcdf.h"
  38. #include "ncdispatch.h"
  39. #if defined(__cplusplus)
  40. extern "C" {
  41. #endif
  42. EXTERNL int
  43. NCD3_new_nc(struct NC**);
  44. /* WARNING: this signature differs from external nc_open API*/
  45. EXTERNL int
  46. NCD3_open(const char *path, int mode,
  47. int basepe, size_t *chunksizehintp,
  48. int use_parallel, void* mpidata,
  49. struct NC_Dispatch* dispatch, NC** ncp);
  50. EXTERNL int
  51. NCD3_close(int ncid);
  52. /* End _var */
  53. extern int NCD3_initialize(void);
  54. #if defined(__cplusplus)
  55. }
  56. #endif
  57. #endif /*_NCD3DISPATCH_H*/