summaryrefslogtreecommitdiff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2013-11-12 20:41:06 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2013-11-12 20:41:06 +0000
commit2fc2bb7c17aeb7514e5d42e46bb08304480bf125 (patch)
treeafb737eff06f9a69d2889905484685bbe35d6eb0 /Src/Zle/zle.h
parent3c733361c45f98b7740388fc78d77a1a307e9a20 (diff)
downloadzsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.gz
zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.zip
31961: rationalise fd watching to use structure
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r--Src/Zle/zle.h12
1 files changed, 12 insertions, 0 deletions
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;
+};