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
use upoll for event loop
[src/app-framework-binder.git]
/
include
/
afb-plugin.h
diff --git
a/include/afb-plugin.h
b/include/afb-plugin.h
index
4064f9e
..
2c9935e
100644
(file)
--- a/
include/afb-plugin.h
+++ b/
include/afb-plugin.h
@@
-15,6
+15,8
@@
* limitations under the License.
*/
* limitations under the License.
*/
+#pragma once
+
struct afb_req;
/* Plugin Type */
struct afb_req;
/* Plugin Type */
@@
-61,13
+63,12
@@
enum AFB_Mode {
AFB_MODE_GLOBAL
};
AFB_MODE_GLOBAL
};
-struct afb_poll;
-
struct AFB_interface
{
int verbosity;
enum AFB_Mode mode;
struct AFB_interface
{
int verbosity;
enum AFB_Mode mode;
- struct afb_poll (*poll_open)(int fd, void *closure);
+ const struct afb_pollitf *pollitf;
+ void *pollclosure;
};
extern const struct AFB_plugin *pluginRegister (const struct AFB_interface *interface);
};
extern const struct AFB_plugin *pluginRegister (const struct AFB_interface *interface);