2 * Copyright (C) 2016, 2017 "IoT.bzh"
3 * Author: José Bollo <jose.bollo@iot.bzh>
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
23 extern struct afb_apiset *afb_apiset_addref(struct afb_apiset *set);
24 extern void afb_apiset_unref(struct afb_apiset *set);
25 extern struct afb_apiset *afb_apiset_create(const char *name, int timeout, struct afb_apiset *subset);
26 extern int afb_apiset_get_timeout(struct afb_apiset *set);
27 extern void afb_apiset_set_timeout(struct afb_apiset *set, int to);
28 extern struct afb_apiset *afb_apiset_get_subset(struct afb_apiset *set);
29 extern void afb_apiset_set_subset(struct afb_apiset *set, struct afb_apiset *subset);
30 extern int afb_apiset_add(struct afb_apiset *set, const char *name, struct afb_api api);
31 extern int afb_apiset_del(struct afb_apiset *set, const char *name);
32 extern int afb_apiset_get(struct afb_apiset *set, const char *name, struct afb_api *api);
33 extern int afb_apiset_start_service(struct afb_apiset *set, const char *name, int share_session, int onneed);
34 extern int afb_apiset_start_all_services(struct afb_apiset *set, int share_session);
35 extern void afb_apiset_update_hooks(struct afb_apiset *set, const char *name);
36 extern void afb_apiset_set_verbosity(struct afb_apiset *set, const char *name, int level);
37 extern int afb_apiset_get_verbosity(struct afb_apiset *set, const char *name);
38 extern const char **afb_apiset_get_names(struct afb_apiset *set);