summaryrefslogtreecommitdiff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
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;
+};