X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=include%2Fafb-poll-itf.h;h=b70eb9938a0747f782d1f52cdcbafbbe061a2d09;hb=68a8eaafe5f43480f29308bfd2ec12ad54da43f1;hp=2c8889b6fabeb3c7576016fd697e2e8dcaa8d698;hpb=67966a2f96613d833f493ef3773c442d35f8ed31;p=src%2Fapp-framework-binder.git diff --git a/include/afb-poll-itf.h b/include/afb-poll-itf.h index 2c8889b6..b70eb993 100644 --- a/include/afb-poll-itf.h +++ b/include/afb-poll-itf.h @@ -15,17 +15,15 @@ * limitations under the License. */ -struct afb_poll_itf -{ - int (*on_readable)(void *, void (*cb)(void *)); - int (*on_writable)(void *, void (*cb)(void *)); - int (*on_hangup)(void *, void (*cb)(void *)); - void (*close)(void *data); -}; +#pragma once -struct afb_poll +struct afb_pollitf { - const struct afb_poll_itf *itf; - void *data; + int (*wait)(int timeout, void *pollclosure); + void *(*open)(int fd, void *closure, void *pollclosure); + int (*on_readable)(void *hndl, void (*cb)(void *closure)); + int (*on_writable)(void *hndl, void (*cb)(void *closure)); + void (*on_hangup)(void *hndl, void (*cb)(void *closure)); + void (*close)(void *hndl); };