[Spice-devel] [PATCH 6/9] Add red_worker_get_clockid()
Jonathon Jongsma
jjongsma at redhat.com
Fri Nov 13 08:29:16 PST 2015
---
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 b065dde..a4f1f83 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9537,3 +9537,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