From 2fc2bb7c17aeb7514e5d42e46bb08304480bf125 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Tue, 12 Nov 2013 20:41:06 +0000
Subject: 31961: rationalise fd watching to use structure
---
Src/Zle/zle.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
(limited to 'Src/Zle/zle.h')
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h
index cf44b47d2..870e2149d 100644
--- a/Src/Zle/zle.h
+++ b/Src/Zle/zle.h
@@ -497,3 +497,15 @@ typedef REFRESH_ELEMENT *REFRESH_STRING;
#define METACHECK()
#define UNMETACHECK()
#endif
+
+
+typedef struct watch_fd *Watch_fd;
+
+struct watch_fd {
+ /* Function to call */
+ char *func;
+ /* Watched fd */
+ int fd;
+ /* 1 if func is called as a widget */
+ int widget;
+};
--
cgit 1.4.1