[Spice-devel] [PATCH 08/11] Add red_worker_get_clockid()
Frediano Ziglio
fziglio at redhat.com
Mon Nov 16 03:06:54 PST 2015
From: Jonathon Jongsma <jjongsma at redhat.com>
---
server/red_worker.c | 7 +++++++
server/red_worker.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/server/red_worker.c b/server/red_worker.c
index 0d17085..a5abe87 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9540,3 +9540,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 3604dfd..d70e862 100644
--- a/server/red_worker.h
+++ b/server/red_worker.h
@@ -110,6 +110,7 @@ QXLInstance* red_worker_get_qxl(RedWorker *worker);
RedChannel* red_worker_get_cursor_channel(RedWorker *worker);
RedChannel* red_worker_get_display_channel(RedWorker *worker);
void red_worker_print_stats(RedWorker *worker);
+clockid_t red_worker_get_clockid(RedWorker *worker);
RedChannel *red_worker_new_channel(RedWorker *worker, int size,
const char *name,
--
2.4.3
More information about the Spice-devel
mailing list