aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/android/android_service.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-05-04 18:26:07 +0200
committerTobias Brunner <tobias@strongswan.org>2010-06-15 19:58:58 +0200
commitbe00d219cc11dde9f3e14231d3ab9678b0c90f8a (patch)
tree2e045918c1dfad19cfc7d9727b5470a8a5e3cde7 /src/libcharon/plugins/android/android_service.h
parentc373f14947e3b6d69304b52e1e82637f9dbedbbf (diff)
downloadstrongswan-be00d219cc11dde9f3e14231d3ab9678b0c90f8a.tar.bz2
strongswan-be00d219cc11dde9f3e14231d3ab9678b0c90f8a.tar.xz
Adding an interface that interacts with the Android Settings frontend.
Diffstat (limited to 'src/libcharon/plugins/android/android_service.h')
-rw-r--r--src/libcharon/plugins/android/android_service.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/libcharon/plugins/android/android_service.h b/src/libcharon/plugins/android/android_service.h
new file mode 100644
index 000000000..1257efa03
--- /dev/null
+++ b/src/libcharon/plugins/android/android_service.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright (C) 2010 Tobias Brunner
+ * Hochschule fuer Technik Rapperswil
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+
+/**
+ * @defgroup android_service android_service
+ * @{ @ingroup android
+ */
+
+#ifndef ANDROID_SERVICE_H_
+#define ANDROID_SERVICE_H_
+
+typedef struct android_service_t android_service_t;
+
+#include "android_creds.h"
+
+/**
+ * Service that interacts with the Android Settings frontend.
+ */
+struct android_service_t {
+
+ /**
+ * Destroy a android_service_t.
+ */
+ void (*destroy)(android_service_t *this);
+
+};
+
+/**
+ * Create an Android service instance.
+ *
+ * @param creds Android credentials
+ */
+android_service_t *android_service_create(android_creds_t *creds);
+
+#endif /** ANDROID_SERVICE_H_ @}*/