diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-03-16 09:36:13 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-03-17 13:01:40 +0100 |
commit | 550ca0ae2bb9138c85fda941b67d4db1da1609ed (patch) | |
tree | 4c603caedb8c0bfc1fe174f9dd04809bed8a5467 /src/afm-udb.h | |
parent | 600a5cde310c62e4c6ed1845cf0234ba04fb6f90 (diff) |
Switch to use systemd database
Installation now creates unit files.
This commits use these created unit files
to fill the application database of
afm-user-daemon.
Change-Id: Ice39d3ff51b6afe41609f3ce4ff0e89b2f3a0ca7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afm-udb.h')
-rw-r--r-- | src/afm-udb.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/afm-udb.h b/src/afm-udb.h new file mode 100644 index 0000000..672a311 --- /dev/null +++ b/src/afm-udb.h @@ -0,0 +1,30 @@ +/* + Copyright 2015, 2016, 2017 IoT.bzh + + author: José Bollo <jose.bollo@iot.bzh> + + 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. +*/ + +struct afm_udb; +struct json_object; + +extern struct afm_udb *afm_udb_create(int sys, int usr, const char *prefix); +extern void afm_udb_addref(struct afm_udb *afdb); +extern void afm_udb_unref(struct afm_udb *afdb); +extern int afm_udb_update(struct afm_udb *afdb); +extern struct json_object *afm_udb_applications_private(struct afm_udb *afdb); +extern struct json_object *afm_udb_applications_public(struct afm_udb *afdb); +extern struct json_object *afm_udb_get_application_private(struct afm_udb *afdb, const char *id); +extern struct json_object *afm_udb_get_application_public(struct afm_udb *afdb, const char *id); + |