summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-11-13 18:06:47 +0100
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-11-13 18:32:21 +0100
commitb3bca8e0f21439f407d6f1079f750f94b3299355 (patch)
tree6a5ba9033b06dba0c6fc62db9647c4584d5a0a42
parentdb1428e58ff382f31225020253741c63a9673dc5 (diff)
downloadspice-b3bca8e0f21439f407d6f1079f750f94b3299355.zip
spice-b3bca8e0f21439f407d6f1079f750f94b3299355.tar.gz
spice-b3bca8e0f21439f407d6f1079f750f94b3299355.tar.xz
Add red_worker_get_clockid()
-rw-r--r--server/red_worker.c7
-rw-r--r--server/red_worker.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 3ed3ffe..3542728 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9794,3 +9794,10 @@ RedChannel* red_worker_get_display_channel(RedWorker *worker)
return RED_CHANNEL(worker->display_channel);
}
+
+clockid_t red_worker_get_clockid(RedWorker *worker)
+{
+ spice_return_val_if_fail(worker, 0);
+
+ return worker->clockid;
+}
diff --git a/server/red_worker.h b/server/red_worker.h
index 2995b8f..729ce2b 100644
--- a/server/red_worker.h
+++ b/server/red_worker.h
@@ -108,6 +108,7 @@ bool red_worker_run(RedWorker *worker);
QXLInstance* red_worker_get_qxl(RedWorker *worker);
RedChannel* red_worker_get_cursor_channel(RedWorker *worker);
RedChannel* red_worker_get_display_channel(RedWorker *worker);
+clockid_t red_worker_get_clockid(RedWorker *worker);
RedChannel *red_worker_new_channel(RedWorker *worker, int size,
const char *name,