summaryrefslogtreecommitdiff
path: root/include/haproxy/errors.h
diff options
context:
space:
mode:
authorAmaury Denoyelle <adenoyelle@haproxy.com>2021-05-26 11:05:22 +0200
committerAmaury Denoyelle <adenoyelle@haproxy.com>2021-06-07 16:58:16 +0200
commit1833e43c3eb8cb55a732587023d8e0b12e5b89cf (patch)
treed2915b3a0f597b87b0e37c13a6733edfe3daa3fb /include/haproxy/errors.h
parentc008a63582f960a31ab4f0e592c8b9e3e17ecb0f (diff)
downloadhaproxy-1833e43c3eb8cb55a732587023d8e0b12e5b89cf.tar.gz
MEDIUM: errors: implement user messages buffer
The user messages buffer is used to store the stderr output after the starting is over. Each thread has it own user messages buffer. Add some functions to add a new message, retrieve and clear the content. The user messages buffer primary goal is to be consulted by CLI handlers. Each handlers using it must clear the buffer before starting its operation.
Diffstat (limited to 'include/haproxy/errors.h')
-rw-r--r--include/haproxy/errors.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/haproxy/errors.h b/include/haproxy/errors.h
index 629b7209a..aaf5cd866 100644
--- a/include/haproxy/errors.h
+++ b/include/haproxy/errors.h
@@ -60,6 +60,10 @@ enum {
};
+void usermsgs_clr(void);
+int usermsgs_empty(void);
+const char *usermsgs_str(void);
+
/************ Error reporting functions ***********/
/*