Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Set version to 5.99.FFRC4
[src/app-framework-binder.git]
/
src
/
afb-api.h
diff --git
a/src/afb-api.h
b/src/afb-api.h
index
c8cb2d6
..
c21f3bb
100644
(file)
--- a/
src/afb-api.h
+++ b/
src/afb-api.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2016, 2017
, 2018
"IoT.bzh"
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-24,17
+24,26
@@
struct json_object;
struct afb_api_itf
{
void (*call)(void *closure, struct afb_xreq *xreq);
struct afb_api_itf
{
void (*call)(void *closure, struct afb_xreq *xreq);
- int (*service_start)(void *closure
, int share_session, int onneed, struct afb_apiset *apiset
);
+ int (*service_start)(void *closure);
void (*update_hooks)(void *closure);
void (*update_hooks)(void *closure);
- int (*get_
verbosity
)(void *closure);
- void (*set_
verbosity
)(void *closure, int level);
+ int (*get_
logmask
)(void *closure);
+ void (*set_
logmask
)(void *closure, int level);
struct json_object *(*describe)(void *closure);
struct json_object *(*describe)(void *closure);
+ void (*unref)(void *closure);
};
};
-struct afb_api
+struct afb_api
_item
{
void *closure;
struct afb_api_itf *itf;
{
void *closure;
struct afb_api_itf *itf;
+ const void *group;
};
extern int afb_api_is_valid_name(const char *name);
};
extern int afb_api_is_valid_name(const char *name);
+
+static inline int afb_api_is_public(const char *name)
+{
+ return *name != '.';
+}
+
+