xdrhandle.c 898 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*!
  2. \file lib/db/dbmi_base/xdrhandle.c
  3. \brief DBMI Library (base) - external data representation (handle)
  4. (C) 1999-2009, 2011 by the GRASS Development Team
  5. This program is free software under the GNU General Public License
  6. (>=v2). Read the file COPYING that comes with GRASS for details.
  7. \author Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
  8. \author Doxygenized by Martin Landa <landa.martin gmail.com> (2011)
  9. */
  10. #include <grass/dbmi.h>
  11. #include "macros.h"
  12. /*!
  13. \brief Send handle
  14. \param handle
  15. \return
  16. */
  17. int db__send_handle(dbHandle * handle)
  18. {
  19. DB_SEND_STRING(&handle->dbName);
  20. DB_SEND_STRING(&handle->dbSchema);
  21. return DB_OK;
  22. }
  23. /*!
  24. \brief Receive handle
  25. \param handle
  26. \return
  27. */
  28. int db__recv_handle(dbHandle * handle)
  29. {
  30. DB_RECV_STRING(&handle->dbName);
  31. DB_RECV_STRING(&handle->dbSchema);
  32. return DB_OK;
  33. }