summaryrefslogtreecommitdiffstats
path: root/src/agl-identity-common.h
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-02-15 17:10:40 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2019-02-18 05:41:52 +0200
commit8f64868f9edd313eaee9a73abc3f79110da5f132 (patch)
treef3ac89b3a3dfa2a201186e93cb7c00357d29fec3 /src/agl-identity-common.h
parentd164f55eb32887db04fd2b263345a93b6f0d87e8 (diff)
binding: identity: fix segfault & update to v3 forgerock binding calls
On user login via nfc, the identity service segfaults on nfc event processing. Fix segfault, update forgerock compilation unit to use binding V3 call methods and review the identity agent baseline to remove unused code / tidy up. Bug-AGL: SPEC-2158 Change-Id: Ic87e630e9d028ba22937468375631b8e908011f8 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
Diffstat (limited to 'src/agl-identity-common.h')
-rw-r--r--src/agl-identity-common.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/agl-identity-common.h b/src/agl-identity-common.h
new file mode 100644
index 0000000..1f0b16c
--- /dev/null
+++ b/src/agl-identity-common.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2019 Konsulko Group
+ * Author: Raquel Medina <raquel.medina@konsulko.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifndef AGL_IDENTITY_COMMON_H
+#define AGL_IDENTITY_COMMON_H
+
+#define _GNU_SOURCE
+#define AFB_BINDING_VERSION 3
+#include <afb/afb-binding.h>
+
+afb_api_t get_local_api(void);
+
+#endif // AGL_IDENTITY_COMMON_H