aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-vt.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-09 05:38:22 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-09 05:39:58 +0200
commitdf098f89ffe542a5725f7911fcd2f3e76d99a771 (patch)
tree1770dd20a512ac8b5b8f6e05b4396e3b6de93a79 /src/mds-vt.h
parentwhoops, read wrong header (diff)
downloadmds-df098f89ffe542a5725f7911fcd2f3e76d99a771.tar.gz
mds-df098f89ffe542a5725f7911fcd2f3e76d99a771.tar.bz2
mds-df098f89ffe542a5725f7911fcd2f3e76d99a771.tar.xz
implement support for get-vt and configure-vt messages
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-vt.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mds-vt.h b/src/mds-vt.h
index 55057c3..922e543 100644
--- a/src/mds-vt.h
+++ b/src/mds-vt.h
@@ -26,6 +26,34 @@
/**
+ * Handle the received message
+ *
+ * @return Zero on success, -1 on error
+ */
+int handle_message(void);
+
+/**
+ * Handle a received `Command: get-vt` message
+ *
+ * @param client The value of the header `Client ID` in the received message
+ * @param message The value of the header `Message ID` in the received message
+ * @return Zero on success, -1 on error
+ */
+int handle_get_vt(const char* client, const char* message);
+
+/**
+ * Handle a received `Command: configure-vt` message
+ *
+ * @param client The value of the header `Client ID` in the received message
+ * @param message The value of the header `Message ID` in the received message
+ * @param graphical The value of the header `Graphical` in the received message
+ * @param exclusive The value of the header `Exclusive` in the received message
+ * @return Zero on success, -1 on error
+ */
+int handle_configure_vt(const char* client, const char* message, const char* graphical, const char* exclusive);
+
+
+/**
* This function is called when the kernel wants
* to switch foreground virtual terminal
*