mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
v4l2: remove poll and send event instead
Don't start a thread for polling in the node itself but let this be handled by the app.
This commit is contained in:
parent
cbde76f500
commit
81bde64550
6 changed files with 72 additions and 72 deletions
|
|
@ -75,12 +75,14 @@ struct _SpaEvent {
|
|||
* @events: events to watch for
|
||||
* @revents: result events
|
||||
* @callback: callback called when there was activity on @fd
|
||||
* @user_data: user data to pass to @callback
|
||||
*/
|
||||
typedef struct {
|
||||
int fd;
|
||||
short events;
|
||||
short revents;
|
||||
SpaNotify callback;
|
||||
void *user_data;
|
||||
} SpaEventPoll;
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue