d_version.c 656 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. * \file db/dbmi_driver/d_version.c
  3. *
  4. * \brief DBMI Library (driver) - version info
  5. *
  6. * (C) 1999-2008 by the GRASS Development Team
  7. *
  8. * This program is free software under the GNU General Public
  9. * License (>=v2). Read the file COPYING that comes with GRASS
  10. * for details.
  11. *
  12. * \author Joel Jones (CERL/UIUC), Radim Blazek
  13. */
  14. #include <grass/dbmi.h>
  15. #include "macros.h"
  16. /*!
  17. \brief Get version info
  18. \return DB_OK on success
  19. \return DB_FAILED on failure
  20. */
  21. int db_d_version(void)
  22. {
  23. /* no arg(s) */
  24. /* send the return code */
  25. DB_SEND_SUCCESS();
  26. /* send version */
  27. DB_SEND_C_STRING(DB_VERSION);
  28. return DB_OK;
  29. }