From: Marko Kreen Date: Tue, 11 Dec 2007 16:21:25 +0000 (+0000) Subject: helper macro for notice pkt X-Git-Tag: pgbouncer_1_2_rc2~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0080183ae85d093c0d7b8a42fae101cc94ecba3e;p=pgbouncer helper macro for notice pkt --- diff --git a/include/pktbuf.h b/include/pktbuf.h index 4bd3310..5eba9cc 100644 --- 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. */