diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-11-19 08:50:59 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-11-25 12:16:00 -0800 |
| commit | 2574c617362a0c67d15fa01e01cdbd0f6bcdbc93 (patch) | |
| tree | 2aa602afe629654706d9c0fc021795c7f27592de /chdir-notify.h | |
| parent | 35d9fc65edc0a5df9f714d02afaa2c942fb28570 (diff) | |
| download | git-2574c617362a0c67d15fa01e01cdbd0f6bcdbc93.tar.gz | |
chdir-notify: add function to unregister listeners
While we (obviously) have a way to register new listeners that get
called whenever we chdir(3p), we don't have an equivalent that can be
used to unregister such a listener again.
Add one, as it will be required in a subsequent commit.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'chdir-notify.h')
| -rw-r--r-- | chdir-notify.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chdir-notify.h b/chdir-notify.h index 366e4c1ee9..81eb69d846 100644 --- a/chdir-notify.h +++ b/chdir-notify.h @@ -41,6 +41,8 @@ typedef void (*chdir_notify_callback)(const char *name, const char *new_cwd, void *data); void chdir_notify_register(const char *name, chdir_notify_callback cb, void *data); +void chdir_notify_unregister(const char *name, chdir_notify_callback cb, + void *data); void chdir_notify_reparent(const char *name, char **path); /* |
