From b971c38ec7a6c65923a1b059b3da11eca939fa35 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Thu, 3 May 2018 12:00:09 +0200 Subject: Start working on and using API v5. --- src/defines.h | 3 +++ src/uccs-server.c | 1 + 2 files changed, 4 insertions(+) diff --git a/src/defines.h b/src/defines.h index 721e14c..d4d74c1 100644 --- a/src/defines.h +++ b/src/defines.h @@ -21,6 +21,9 @@ #ifndef __DEFINES_H__ #define __DEFINES_H__ +/* required UCCS API version */ +#define UCCS_API_VERSION 5 + #define CONFIG_MAIN_GROUP "Remote Logon Service" #define CONFIG_MAIN_SERVERS "Servers" #define CONFIG_SERVER_PREFIX "Server" diff --git a/src/uccs-server.c b/src/uccs-server.c index 8365489..3337aa7 100644 --- a/src/uccs-server.c +++ b/src/uccs-server.c @@ -736,6 +736,7 @@ uccs_server_unlock (UccsServer * server, const gchar * address, const gchar * us argv[2] = NULL; g_setenv("SERVER_ROOT", server->parent.uri, TRUE); + g_setenv("API_VERSION", UCCS_API_VERSION, TRUE); g_spawn_async_with_pipes(NULL, /* pwd */ (gchar **)argv, -- cgit v1.2.3