aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/extern.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2000-03-07 15:11:03 +0000
committerMichael Meskes <meskes@postgresql.org>2000-03-07 15:11:03 +0000
commit5a197810c09da06a772c235a6bba68290745d74c (patch)
treedd0053c6d2c99e6f9dc980a350623b30f3ae9496 /src/interfaces/ecpg/lib/extern.h
parentad3db67e5311590d42b8c5fce2a8ee2116678923 (diff)
downloadpostgresql-5a197810c09da06a772c235a6bba68290745d74c.tar.gz
postgresql-5a197810c09da06a772c235a6bba68290745d74c.zip
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/extern.h')
-rw-r--r--src/interfaces/ecpg/lib/extern.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/lib/extern.h b/src/interfaces/ecpg/lib/extern.h
new file mode 100644
index 00000000000..ef9515d7c96
--- /dev/null
+++ b/src/interfaces/ecpg/lib/extern.h
@@ -0,0 +1,43 @@
+#include <postgres.h>
+#include <libpq-fe.h>
+
+/* Here are some methods used by the lib. */
+/* Returns a pointer to a string containing a simple type name. */
+void free_auto_mem(void);
+bool get_data(PGresult *, int, int, int, enum ECPGttype type,
+ enum ECPGttype, void *, void *, long, long, bool);
+struct connection *get_connection(const char *);
+void init_sqlca(void);
+char *ecpg_alloc(long, int);
+bool ecpg_init(const struct connection *, const char *, const int);
+char *ecpg_strdup(const char *, int);
+const char *ECPGtype_name(enum ECPGttype);
+unsigned int ECPGDynamicType(Oid);
+
+/* A generic varchar type. */
+struct ECPGgeneric_varchar
+{
+ int len;
+ char arr[1];
+};
+
+/* structure to store one statement */
+struct statement
+{
+ int lineno;
+ char *command;
+ struct connection *connection;
+ struct variable *inlist;
+ struct variable *outlist;
+};
+
+/* structure to store connections */
+struct connection
+{
+ char *name;
+ PGconn *connection;
+ bool committed;
+ int autocommit;
+ struct connection *next;
+};
+