diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-11-18 22:52:06 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-24 03:03:01 +0300 |
commit | c9601d407a7ca943e53fa49a5a5f69b868c6ed11 (patch) | |
tree | 248d13a9e817ba3c73fc50e2d655b4cd12013e10 /include/xlnx-events.h | |
parent | 3653f5e4d877176a30035d9123ac65daf46ba787 (diff) |
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include/xlnx-events.h')
-rw-r--r-- | include/xlnx-events.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/xlnx-events.h b/include/xlnx-events.h new file mode 100644 index 0000000..ebf575d --- /dev/null +++ b/include/xlnx-events.h @@ -0,0 +1,43 @@ +/* + * Xilinx Video Library - select()-based generic event loop + * + * Copyright (C) 2014-2016 Ideas on board Oy + * + * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef __XLNX_EVENTS_H__ +#define __XLNX_EVENTS_H__ + +/** + * \file + * \brief select()-based event loop implementation + * + * This event loop is a sample event handling operations implementation. It + * registers event handler operations with the library context and implements an + * infinite event loop based on the select() function to wait for events on + * file descriptors. + */ + +struct xlnx_video; + +int xlnx_events_init(struct xlnx_video *xv); +void xlnx_events_fini(struct xlnx_video *xv); +bool xlnx_events_loop(struct xlnx_video *xv); +void xlnx_events_stop(struct xlnx_video *xv); + +#endif /* __XLNX_EVENTS_H__ */ |