10#ifndef GP_GRABBERS_GRABBER_H
11#define GP_GRABBERS_GRABBER_H
63 char priv[] GP_ALIGNED;
66#define GP_GRABBER_PRIV(grabber) ((void*)(grabber)->priv)
68static inline void gp_grabber_exit(
gp_grabber *self)
73static inline int gp_grabber_poll(
gp_grabber *self)
75 return self->
poll(self);
78static inline int gp_grabber_start(
gp_grabber *self)
81 return self->
start(self);
86static inline int gp_grabber_stop(
gp_grabber *self)
89 return self->
stop(self);
A compiler dependent macros.
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.