10#ifndef GP_GRABBERS_GRABBER_H
11#define GP_GRABBERS_GRABBER_H
65#define GP_GRABBER_PRIV(grabber) ((void*)(grabber)->priv)
67static inline void gp_grabber_exit(
gp_grabber *self)
72static inline int gp_grabber_poll(
gp_grabber *self)
74 return self->
poll(self);
77static inline int gp_grabber_start(
gp_grabber *self)
80 return self->
start(self);
85static inline int gp_grabber_stop(
gp_grabber *self)
88 return self->
stop(self);
int(* poll)(gp_grabber *self)
A grabber polling function.
int fd
Grabber fd suitable for polling.
int(* stop)(gp_grabber *self)
Stops the grabbing.
struct gp_pixmap * frame
Pixmap with current frame.
int(* start)(gp_grabber *self)
Starts the actuall grabbing.
void(* exit)(gp_grabber *self)
Destroys grabber.