jpayne@69: /* jpayne@69: * fakepq.h -- jpayne@69: * jpayne@69: * Minimal replacement for 'pq-fe.h' in the PostgreSQL client jpayne@69: * without having a PostgreSQL installation on the build system. jpayne@69: * This file comprises only data type, constant and function definitions. jpayne@69: * jpayne@69: * The programmers of this file believe that it contains material not jpayne@69: * subject to copyright under the doctrines of scenes a faire and jpayne@69: * of merger of idea and expression. Accordingly, this file is in the jpayne@69: * public domain. jpayne@69: * jpayne@69: *----------------------------------------------------------------------------- jpayne@69: */ jpayne@69: jpayne@69: #ifndef FAKEPQ_H_INCLUDED jpayne@69: #define FAKEPQ_H_INCLUDED jpayne@69: jpayne@69: #ifndef MODULE_SCOPE jpayne@69: #define MODULE_SCOPE extern jpayne@69: #endif jpayne@69: jpayne@69: MODULE_SCOPE Tcl_LoadHandle PostgresqlInitStubs(Tcl_Interp*); jpayne@69: jpayne@69: typedef enum { jpayne@69: CONNECTION_OK=0, jpayne@69: } ConnStatusType; jpayne@69: typedef enum { jpayne@69: PGRES_EMPTY_QUERY=0, jpayne@69: PGRES_BAD_RESPONSE=5, jpayne@69: PGRES_NONFATAL_ERROR=6, jpayne@69: PGRES_FATAL_ERROR=7, jpayne@69: } ExecStatusType; jpayne@69: typedef unsigned int Oid; jpayne@69: typedef struct pg_conn PGconn; jpayne@69: typedef struct pg_result PGresult; jpayne@69: typedef void (*PQnoticeProcessor)(void*, const PGresult*); jpayne@69: jpayne@69: #define PG_DIAG_SQLSTATE 'C' jpayne@69: #define PG_DIAG_MESSAGE_PRIMARY 'M' jpayne@69: jpayne@69: #include "pqStubs.h" jpayne@69: jpayne@69: MODULE_SCOPE const pqStubDefs* pqStubs; jpayne@69: jpayne@69: #endif