summaryrefslogtreecommitdiffstats
path: root/server/spice.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-03-09 14:14:02 +0100
committerAlexander Larsson <alexl@redhat.com>2010-03-09 14:14:02 +0100
commit232dbd8710dc75328c9991d84b323e0cac601562 (patch)
tree35e2c820b059fc35a9f52d2a726f4d377112b09c /server/spice.h
parent34e6a0a0d539fb49a03ec01bf11be505c88fcaa1 (diff)
downloadspice-232dbd8710dc75328c9991d84b323e0cac601562.tar.gz
spice-232dbd8710dc75328c9991d84b323e0cac601562.tar.xz
spice-232dbd8710dc75328c9991d84b323e0cac601562.zip
new libspice api: alloc, initi and free spice server instances.
The implementation can't handle multiple spice server instances at the same time right now. The API allows this though, so if we fixup the implementation some day we don't have to change the API.
Diffstat (limited to 'server/spice.h')
-rw-r--r--server/spice.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/server/spice.h b/server/spice.h
index 26de4f73..49a52a8d 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -20,10 +20,16 @@
#include "vd_interface.h"
+/* old interface */
extern const char *spice_usage_str[];
int spice_parse_args(const char *args);
void spice_init(CoreInterface *core);
-#endif
+/* new interface */
+typedef struct RedsState SpiceServer;
+SpiceServer *spice_server_new(void);
+int spice_server_init(SpiceServer *s, CoreInterface *core);
+void spice_server_destroy(SpiceServer *s);
+#endif