aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-clipboard.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-24 20:13:05 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-24 20:13:07 +0200
commitbdbf0844d8027289a48f12f6fd068413b7cc4884 (patch)
tree9aa61cd02796bd3e8bc01850d5f803a9d7bea2d0 /src/mds-clipboard.c
parentmds-kkbd: decipher mapping_query and fix a minor bug in it (diff)
downloadmds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.gz
mds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.bz2
mds-bdbf0844d8027289a48f12f6fd068413b7cc4884.tar.xz
introduce the `Origin command`-header
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-clipboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mds-clipboard.c b/src/mds-clipboard.c
index 02918ae..ee3706f 100644
--- a/src/mds-clipboard.c
+++ b/src/mds-clipboard.c
@@ -716,6 +716,7 @@ int clipboard_read(int level, size_t index, const char* recv_client_id, const ch
n = sizeof("To: \n"
"In response to: \n"
"Message ID: \n"
+ "Origin command: clipboard\n"
"\n") / sizeof(char);
n += strlen(recv_client_id) + strlen(recv_message_id) + 10;
@@ -725,6 +726,7 @@ int clipboard_read(int level, size_t index, const char* recv_client_id, const ch
"To: %s\n"
"In response to: %s\n"
"Message ID: %" PRIu32 "\n"
+ "Origin command: clipboard\n"
"\n",
recv_client_id, recv_message_id, message_id);
@@ -739,6 +741,7 @@ int clipboard_read(int level, size_t index, const char* recv_client_id, const ch
n = sizeof("To: \n"
"In response to: \n"
"Message ID: \n"
+ "Origin command: clipboard\n"
"Length: \n"
"\n") / sizeof(char);
n += strlen(recv_client_id) + strlen(recv_message_id) + 10 + 3 * sizeof(size_t);
@@ -749,6 +752,7 @@ int clipboard_read(int level, size_t index, const char* recv_client_id, const ch
"To: %s\n"
"In response to: %s\n"
"Message ID: %" PRIu32 "\n"
+ "Origin command: clipboard\n"
"Length: %zu\n"
"\n",
recv_client_id, recv_message_id, message_id, clip->length);
@@ -843,6 +847,7 @@ int clipboard_get_size(int level, const char* recv_client_id, const char* recv_m
n = sizeof("To: \n"
"In response to: \n"
"Message ID: \n"
+ "Origin command: clipboard\n"
"Size: \n"
"Used: \n"
"\n") / sizeof(char);
@@ -853,6 +858,7 @@ int clipboard_get_size(int level, const char* recv_client_id, const char* recv_m
"To: %s\n"
"In response to: %s\n"
"Message ID: %" PRIu32 "\n"
+ "Origin command: clipboard\n"
"Size: %zu\n"
"Used: %zu\n"
"\n",