nc4dispatch.c 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*********************************************************************
  2. * Copyright 1993, UCAR/Unidata
  3. * See netcdf/COPYRIGHT file for copying and redistribution conditions.
  4. * $Header: /upc/share/CVS/netcdf-3/libsrc4/nc4dispatch.c,v 1.5 2010/05/27 02:19:37 dmh Exp $
  5. *********************************************************************/
  6. #include "config.h"
  7. #include <stdlib.h>
  8. #include "nc.h"
  9. #include "ncdispatch.h"
  10. #include "nc4dispatch.h"
  11. NC_Dispatch NC4_dispatcher = {
  12. NC_DISPATCH_NC4,
  13. NC4_new_nc,
  14. NC4_create,
  15. NC4_open,
  16. NC4_redef,
  17. NC4__enddef,
  18. NC4_sync,
  19. NC4_abort,
  20. NC4_close,
  21. NC4_set_fill,
  22. NC4_inq_base_pe,
  23. NC4_set_base_pe,
  24. NC4_inq_format,
  25. NC4_inq,
  26. NC4_inq_type,
  27. NC4_def_dim,
  28. NC4_inq_dimid,
  29. NC4_inq_dim,
  30. NC4_inq_unlimdim,
  31. NC4_rename_dim,
  32. NC4_inq_att,
  33. NC4_inq_attid,
  34. NC4_inq_attname,
  35. NC4_rename_att,
  36. NC4_del_att,
  37. NC4_get_att,
  38. NC4_put_att,
  39. NC4_def_var,
  40. NC4_inq_varid,
  41. NC4_rename_var,
  42. NC4_get_vara,
  43. NC4_put_vara,
  44. NCDEFAULT_get_vars,
  45. NCDEFAULT_put_vars,
  46. NCDEFAULT_get_varm,
  47. NCDEFAULT_put_varm,
  48. NC4_inq_var_all,
  49. NC4_show_metadata,
  50. NC4_inq_unlimdims,
  51. NC4_var_par_access,
  52. NC4_inq_ncid,
  53. NC4_inq_grps,
  54. NC4_inq_grpname,
  55. NC4_inq_grpname_full,
  56. NC4_inq_grp_parent,
  57. NC4_inq_grp_full_ncid,
  58. NC4_inq_varids,
  59. NC4_inq_dimids,
  60. NC4_inq_typeids,
  61. NC4_inq_type_equal,
  62. NC4_def_grp,
  63. NC4_inq_user_type,
  64. NC4_inq_typeid,
  65. NC4_def_compound,
  66. NC4_insert_compound,
  67. NC4_insert_array_compound,
  68. NC4_inq_compound_field,
  69. NC4_inq_compound_fieldindex,
  70. NC4_def_vlen,
  71. NC4_put_vlen_element,
  72. NC4_get_vlen_element,
  73. NC4_def_enum,
  74. NC4_insert_enum,
  75. NC4_inq_enum_member,
  76. NC4_inq_enum_ident,
  77. NC4_def_opaque,
  78. NC4_def_var_deflate,
  79. NC4_def_var_fletcher32,
  80. NC4_def_var_chunking,
  81. NC4_def_var_fill,
  82. NC4_def_var_endian,
  83. NC4_set_var_chunk_cache,
  84. NC4_get_var_chunk_cache,
  85. };
  86. NC_Dispatch* NC4_dispatch_table = NULL; /* moved here from ddispatch.c */
  87. int
  88. NC4_initialize(void)
  89. {
  90. NC4_dispatch_table = &NC4_dispatcher;
  91. return NC_NOERR;
  92. }