From 0080183ae85d093c0d7b8a42fae101cc94ecba3e Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Tue, 11 Dec 2007 16:21:25 +0000 Subject: [PATCH] helper macro for notice pkt --- include/pktbuf.h | 3 +++ 1 file changed, 3 insertions(+) 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. */ -- 2.40.0