aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-vt.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-vt.h')
-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
*