diff options
Diffstat (limited to 'gtk/spice-util.c')
-rw-r--r-- | gtk/spice-util.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/spice-util.c b/gtk/spice-util.c new file mode 100644 index 0000000..c8d959c --- /dev/null +++ b/gtk/spice-util.c @@ -0,0 +1,20 @@ +#include <config.h> + +#include "spice-util.h" + +static gboolean debugFlag = FALSE; + +void spice_util_set_debug(gboolean enabled) +{ + debugFlag = enabled; +} + +gboolean spice_util_get_debug(void) +{ + return debugFlag || g_getenv("SPICE_DEBUG") != NULL; +} + +const gchar *spice_util_get_version_string(void) +{ + return VERSION; +} |