summaryrefslogtreecommitdiff
path: root/src/include/commands.h
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 13:24:39 +0200
commit973ae30e7c4f7a1afb385dd3d8eeea178f981445 (patch)
tree1a5d8be5b3ff273a141b6144bf3031b1bc3deb2d /src/include/commands.h
parent66404f0bfbd78e635ff6381ca30b25157e0e1a09 (diff)
fix deprecated prototypes
Diffstat (limited to 'src/include/commands.h')
-rw-r--r--src/include/commands.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/commands.h b/src/include/commands.h
index fed35e7..ea15add 100644
--- a/src/include/commands.h
+++ b/src/include/commands.h
@@ -1,12 +1,14 @@
#ifndef COMMANDS_H
#define COMMANDS_H
+#include "buffer.h"
+
struct commands {
char *text;
- void (*fun)();
- void (*flush)();
+ void (*fun)(char *);
+ void (*flush)(void);
};
-int commands();
+extern int commands(buffer *, struct commands *);
#endif