summaryrefslogtreecommitdiff
path: root/include/session.h
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-08-13 10:40:23 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-08-30 13:01:49 +0300
commitc7cd2709d524d8e5d7ee2f6ec1eff2166b4f1239 (patch)
treeee15ed8f7b2a5b994c627504ebaefeb68d389826 /include/session.h
parent3754e3487c99d2ddd5a5bd672daeca150fda1398 (diff)
downloadconnman-c7cd2709d524d8e5d7ee2f6ec1eff2166b4f1239.tar.gz
session: Add configuration plugin
Diffstat (limited to 'include/session.h')
-rw-r--r--include/session.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/session.h b/include/session.h
new file mode 100644
index 00000000..5aa3e5e4
--- /dev/null
+++ b/include/session.h
@@ -0,0 +1,52 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2012 BMW Car IT GbmH. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifndef __CONNMAN_SESSION_H
+#define __CONNMAN_SESSION_H
+
+#include <connman/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ * The session are identified through the pid is only a temporary solution
+ */
+struct connman_session_config {
+ const char *name;
+ int (*get_bool) (const char *id, const char *key, connman_bool_t *val);
+ int (*get_string) (const char *id, const char *key, char **val);
+};
+
+int connman_session_config_register(struct connman_session_config *config);
+void connman_session_config_unregister(struct connman_session_config *config);
+
+int connman_session_update_bool(const char *id, const char *key,
+ connman_bool_t val);
+int connman_session_update_string(const char *id, const char *key,
+ const char *val);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_SESSION_H */