summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/extern.h
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2001-11-14 11:11:49 +0000
committerMichael Meskes <meskes@postgresql.org>2001-11-14 11:11:49 +0000
commit32a4c3008f65deed3f2cb56f8df6fac85b3969f3 (patch)
treef94ae47a8c183b174c6e8da6dc6fc26fa9664e3d /src/interfaces/ecpg/lib/extern.h
parentebb93323bbf7c62aeff283cd5991071ee8c575fa (diff)
Added Christof's patches.
Diffstat (limited to 'src/interfaces/ecpg/lib/extern.h')
-rw-r--r--src/interfaces/ecpg/lib/extern.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/interfaces/ecpg/lib/extern.h b/src/interfaces/ecpg/lib/extern.h
index 8e7ba566a36..3759751555b 100644
--- a/src/interfaces/ecpg/lib/extern.h
+++ b/src/interfaces/ecpg/lib/extern.h
@@ -3,14 +3,15 @@
/* 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(const PGresult *, int, int, int, enum ECPGttype type,
+void ECPGadd_mem(void *ptr, int lineno);
+
+bool ECPGget_data(const 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);
+struct connection *ECPGget_connection(const char *);
+void ECPGinit_sqlca(void);
+char *ECPGalloc(long, int);
+bool ECPGinit(const struct connection *, const char *, const int);
+char *ECPGstrdup(const char *, int);
const char *ECPGtype_name(enum ECPGttype);
unsigned int ECPGDynamicType(Oid);
@@ -62,6 +63,23 @@ struct descriptor
struct descriptor *next;
};
+struct variable
+{
+ enum ECPGttype type;
+ void *value;
+ void *pointer;
+ long varcharsize;
+ long arrsize;
+ long offset;
+ enum ECPGttype ind_type;
+ void *ind_value;
+ void *ind_pointer;
+ long ind_varcharsize;
+ long ind_arrsize;
+ long ind_offset;
+ struct variable *next;
+};
+
PGresult **
ECPGdescriptor_lvalue(int line, const char *descriptor);