summaryrefslogtreecommitdiffstats
path: root/src/proto.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-30 18:12:19 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-30 18:12:19 +0000
commit4c5678ff0c376661d4a8183a5a074a1203413b9d (patch)
tree2ddd73cae34d17f2eb4290fda1131bb63f4a0fab /src/proto.h
parenta87749e3eae3f918b6678f45cf975f0cf06d3e97 (diff)
patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977
Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
Diffstat (limited to 'src/proto.h')
-rw-r--r--src/proto.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/proto.h b/src/proto.h
index 7ddf1037b4..4c7f8c9dad 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -104,6 +104,7 @@ extern int _stricoll(char *a, char *b);
# include "json.pro"
# include "list.pro"
# include "locale.pro"
+# include "logfile.pro"
# include "blob.pro"
# include "main.pro"
# include "map.pro"
@@ -263,8 +264,9 @@ void mbyte_im_set_active(int active_arg);
# include "job.pro"
# include "channel.pro"
-// Not generated automatically, to add extra attribute.
+// Not generated automatically so that we can add an extra attribute.
void ch_log(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3);
+void ch_error(channel_T *ch, const char *fmt, ...) ATTRIBUTE_FORMAT_PRINTF(2, 3);
# endif