projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b147bae
)
helper macro for notice pkt
author
Marko Kreen
<markokr@gmail.com>
Tue, 11 Dec 2007 16:21:25 +0000
(16:21 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 11 Dec 2007 16:21:25 +0000
(16:21 +0000)
include/pktbuf.h
patch
|
blob
|
blame
|
history
diff --git
a/include/pktbuf.h
b/include/pktbuf.h
index 4bd331064904836dce20fb420968674171ca52bc..5eba9ccf6b27e2b9a53594afc56d06a0059457d0 100644
(file)
--- a/
include/pktbuf.h
+++ b/
include/pktbuf.h
@@
-95,6
+95,9
@@
void pktbuf_write_DataRow(PktBuf *buf, const char *tupdesc, ...);
#define pktbuf_write_PasswordMessage(buf, psw) \
pktbuf_write_generic(buf, 'p', "s", psw)
+#define pktbuf_write_Notice(buf, msg) \
+ pktbuf_write_generic(buf, 'N', "sscss", "SNOTICE", "C00000", 'M', msg, "");
+
/*
* Shortcut for creating DataRow in memory.
*/