actions.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /***************************************************************************
  2. * actions.h
  3. *
  4. * Mon Apr 18 15:29:34 2005
  5. * Copyright 2005 Benjamin Ducke
  6. ****************************************************************************/
  7. /*
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. */
  22. #ifndef _ACTIONS_H
  23. #define _ACTIONS_H
  24. #include "globals.h"
  25. void check_extension(char *package, char *name, int *major, int *minor,
  26. int *revision);
  27. void unpack_extension(char *package);
  28. void query_extension(char *package, char *name, int major, int minor,
  29. int revision, char *short_name, char *invocation,
  30. char *org_name);
  31. void source_install(char *package, char *gisbase, char *pkg_short_name,
  32. int pkg_major, int pkg_minor, int pkg_revision,
  33. char *grass_version);
  34. void bin_install(char *package, char *gisbase, char *bins,
  35. char *pkg_short_name, int pkg_major, int pkg_minor,
  36. int pkg_revision, char *grass_version);
  37. void test_install(char *package, char *gisbase, char *pkg_short_name,
  38. int pkg_major, int pkg_minor, int pkg_revision,
  39. char *grass_version);
  40. void uninstall(char *package, char *pkg_short_name, char *gisbase,
  41. char *grass_version);
  42. int source_clean(char *package);
  43. void restore(char *gisbase, char *grass_version);
  44. void list_extensions(char *gisbase);
  45. void run_post(char *package, int action, char *bins, char *gisbase);
  46. #endif /* _ACTIONS_H */