Re: [Basic Glib Questions/Help] Unable to create GSource



GLib contains various sources that you can look at
the source of ...
timeouts, idles, IO watches.
A question about IO watches. 

I am developing a Linux USB2 camera driver.
 My Gtk app opens it simply by:
camera_fd=open("/dev/video1").

Is that possible to watch this "camera_fd" in the Gtk
main loop just like what we usually do on socket or
file?  (Say, I want to register a callback that is
called after camera data is ready.)
What kind of interface the camera driver should
provide  to support that?

Thanks,
Dan






=====
----------------------------------------------------------
Have fun!
__________________________________________________________

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]