libpq-forward.hxx 791 B

12345678910111213141516171819202122232425262728293031323334
  1. /** Minimal forward declarations of libpq types needed in libpqxx headers.
  2. *
  3. * DO NOT INCLUDE THIS FILE when building client programs.
  4. *
  5. * Copyright (c) 2000-2019, Jeroen T. Vermeulen.
  6. *
  7. * See COPYING for copyright license. If you did not receive a file called
  8. * COPYING with this source code, please notify the distributor of this mistake,
  9. * or contact the author.
  10. */
  11. extern "C"
  12. {
  13. struct pg_conn;
  14. struct pg_result;
  15. struct pgNotify;
  16. }
  17. namespace pqxx
  18. {
  19. namespace internal
  20. {
  21. /// Forward declarations of libpq types as needed in libpqxx headers
  22. namespace pq
  23. {
  24. using PGconn = pg_conn;
  25. using PGresult = pg_result;
  26. using PGnotify = pgNotify;
  27. using PQnoticeProcessor = void (*)(void *, const char *);
  28. }
  29. }
  30. /// PostgreSQL database row identifier
  31. using oid = unsigned int;
  32. } // extern "C"