chiark / gitweb /
util: priomsg: Provide and use priomsg_update_fixed
[secnet.git] / util.h
diff --git a/util.h b/util.h
index eddb06db3f57667ca1a9506db6076726110c73e7..a2ef82864b84d247de94e21ca4c46b8eb079f6f6 100644 (file)
--- a/util.h
+++ b/util.h
@@ -81,6 +81,9 @@ const char *priomsg_getmessage(const struct priomsg *pm, const char *defmsg);
   /* return value is null-terminated, valid until next call
    * or until defmsg is no longer valid                                ZM */
 
+bool_t priomsg_update_fixed(struct priomsg *pm, int prio, const char *m);
+  /* convenience combination of _update_p and truncmsg_add_string */
+
 /*
  * void BUF_ADD_BYTES(append,    struct buffer_if*, const void*, int32_t size);
  * void BUF_ADD_BYTES(prepend,   struct buffer_if*, const void*, int32_t size);