diff options
| author | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-11-12 20:41:06 +0000 |
|---|---|---|
| committer | Peter Stephenson <p.w.stephenson@ntlworld.com> | 2013-11-12 20:41:06 +0000 |
| commit | 2fc2bb7c17aeb7514e5d42e46bb08304480bf125 (patch) | |
| tree | afb737eff06f9a69d2889905484685bbe35d6eb0 /Src/Zle/zle.h | |
| parent | unposted: update some incorrect version numbers in ChangeLog (diff) | |
| download | zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.gz zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.bz2 zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.lz zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.xz zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.tar.zst zsh-2fc2bb7c17aeb7514e5d42e46bb08304480bf125.zip | |
31961: rationalise fd watching to use structure
Diffstat (limited to 'Src/Zle/zle.h')
| -rw-r--r-- | Src/Zle/zle.h | 12 |
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; +}; |
