aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-vt.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-09 06:37:27 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-09 06:37:27 +0200
commitb792d18d45574528de17367abf46168b5acb816e (patch)
tree5b30ebc0e3ea6925a8da19074e7862d3039857f7 /src/mds-vt.h
parentstylo (diff)
downloadmds-b792d18d45574528de17367abf46168b5acb816e.tar.gz
mds-b792d18d45574528de17367abf46168b5acb816e.tar.bz2
mds-b792d18d45574528de17367abf46168b5acb816e.tar.xz
mds-vt: secondary connection
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-vt.h')
-rw-r--r--src/mds-vt.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mds-vt.h b/src/mds-vt.h
index 93e05de..48683dc 100644
--- a/src/mds-vt.h
+++ b/src/mds-vt.h
@@ -27,6 +27,15 @@
/**
+ * Wait for confirmation that we may switch virtual terminal
+ *
+ * @param data Thread input parameter, will always be `NULL`
+ * @return Thread return value, will always be `NULL`
+ */
+void* secondary_loop(void* data);
+
+
+/**
* Perform a VT switch requested by the OS kernel
*
* @param leave_foreground Whether the display is leaving the foreground
@@ -75,11 +84,12 @@ void received_switch_vt(int signo);
/**
* Send a full message even if interrupted
*
+ * @param socket The file descriptor for the socket to use
* @param message The message to send
* @param length The length of the message
- * @return Non-zero on success
+ * @return Zero on success, -1 on error
*/
-int full_send(const char* message, size_t length);
+int full_send(int socket, const char* message, size_t length);
/**