aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-03 12:00:09 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-05-03 12:00:09 +0200
commitb971c38ec7a6c65923a1b059b3da11eca939fa35 (patch)
treed95758200bfb4019e426cb89773aa95b1dc45b76 /src
parent3dd8f3e4e242bc1a036ab5a8b01fe90f8162a7ef (diff)
downloadremote-logon-service-b971c38ec7a6c65923a1b059b3da11eca939fa35.tar.gz
remote-logon-service-b971c38ec7a6c65923a1b059b3da11eca939fa35.tar.bz2
remote-logon-service-b971c38ec7a6c65923a1b059b3da11eca939fa35.zip
Start working on and using API v5.
Diffstat (limited to 'src')
-rw-r--r--src/defines.h3
-rw-r--r--src/uccs-server.c1
2 files changed, 4 insertions, 0 deletions
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,