summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/notify.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-03-17 22:35:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-03-17 22:35:10 +0000
commit0c3f7269cde53343e63855fa651fd174930c4b24 (patch)
treea62dffe1531568e0e9f628eed105ae55e91ecb85 /usr.bin/tmux/notify.c
parent862f6b1d8710679c8d83bcf415ad46b5f15b5fe8 (diff)
Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.
Diffstat (limited to 'usr.bin/tmux/notify.c')
-rw-r--r--usr.bin/tmux/notify.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/usr.bin/tmux/notify.c b/usr.bin/tmux/notify.c
new file mode 100644
index 00000000000..59f52e1fd02
--- /dev/null
+++ b/usr.bin/tmux/notify.c
@@ -0,0 +1,59 @@
+/* $OpenBSD: notify.c,v 1.1 2012/03/17 22:35:09 nicm Exp $ */
+
+/*
+ * Copyright (c) 2012 George Nachman <tmux@georgester.com>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
+ * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "tmux.h"
+
+void
+notify_window_layout_changed(unused struct window *w)
+{
+}
+
+void
+notify_window_unlinked(unused struct session *s, unused struct window *w)
+{
+}
+
+void
+notify_window_linked(unused struct session *s, unused struct window *w)
+{
+}
+
+void
+notify_window_renamed(unused struct window *w)
+{
+}
+
+void
+notify_attached_session_changed(unused struct client *c)
+{
+}
+
+void
+notify_session_renamed(unused struct session *s)
+{
+}
+
+void
+notify_session_created(unused struct session *s)
+{
+}
+
+void
+notify_session_closed(unused struct session *s)
+{
+}