aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-kkbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-kkbd.h')
-rw-r--r--src/mds-kkbd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mds-kkbd.h b/src/mds-kkbd.h
index 4b789f5..a7559e4 100644
--- a/src/mds-kkbd.h
+++ b/src/mds-kkbd.h
@@ -146,6 +146,16 @@ int send_key(int* restrict scancode, int trio);
*/
int fetch_keys(void);
+/**
+ * Send a response with an error number
+ *
+ * @param error The error number
+ * @param recv_client_id The client's ID
+ * @param recv_message_id The message ID of the message the client sent
+ * @return Zero on success, -1 on error
+ */
+int send_errno(int error, const char* recv_client_id, const char* recv_message_id);
+
#endif