site.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #ifndef GRASS_SITEDEFS_H
  2. #define GRASS_SITEDEFS_H
  3. /* Old version used by v.in.sites */
  4. FILE *G_oldsites_open_old(const char *, const char *);
  5. int G_oldsite_describe(FILE *, int *, int *, int *, int *);
  6. int G_oldsite_get(FILE *, Site *);
  7. /*!
  8. \todo Update modules which are still using sites library.
  9. After that all the function below could be removed
  10. */
  11. /* The same for old and new, format independent */
  12. Site *G_site_new_struct(RASTER_MAP_TYPE, int, int, int);
  13. void G_site_free_struct(Site *);
  14. int G_site_in_region(const Site *, const struct Cell_head *);
  15. /* New version based on vectors used in old, not updated sites modules */
  16. int G_site_get(struct Map_info *, Site *);
  17. int G_site_put(struct Map_info *, const Site *);
  18. int G_site_describe(struct Map_info *, int *, int *, int *,
  19. int *);
  20. int G_site_put_head(struct Map_info *, Site_head *);
  21. struct Map_info *G_sites_open_old(const char *, const char *);
  22. struct Map_info *G_sites_open_new(const char *);
  23. struct Map_info *G_fopen_sites_old(const char *, const char *);
  24. struct Map_info *G_fopen_sites_new(const char *);
  25. #endif