diff options
Diffstat (limited to 'src/include/libpq/pqformat.h')
-rw-r--r-- | src/include/libpq/pqformat.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/libpq/pqformat.h b/src/include/libpq/pqformat.h index 829727c38f0..cb80ec2c201 100644 --- a/src/include/libpq/pqformat.h +++ b/src/include/libpq/pqformat.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pqformat.h,v 1.13 2002/09/04 23:31:35 tgl Exp $ + * $Id: pqformat.h,v 1.14 2003/04/19 00:02:29 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -26,9 +26,11 @@ extern void pq_endmessage(StringInfo buf); extern int pq_puttextmessage(char msgtype, const char *str); -extern int pq_getint(int *result, int b); -extern int pq_getstr_bounded(StringInfo s, int maxlen); - -#define pq_getstr(s) pq_getstr_bounded(s, 0) +extern int pq_getmsgbyte(StringInfo msg); +extern unsigned int pq_getmsgint(StringInfo msg, int b); +extern const char *pq_getmsgbytes(StringInfo msg, int datalen); +extern void pq_copymsgbytes(StringInfo msg, char *buf, int datalen); +extern const char *pq_getmsgstring(StringInfo msg); +extern void pq_getmsgend(StringInfo msg); #endif /* PQFORMAT_H */ |