Re: Announce: SDPAVC
Brought to you by:
aeb,
bencollins
From: Andreas B. <and...@mu...> - 2000-04-05 22:45:47
|
On Tue, Apr 04, 2000 at 10:44:51PM +0200, Manfred Weihs wrote: > I do not know a "clean" solution to that problem (as long as we want to > use libraw1394). I think, the only way would be to create a new > object-oriented version of libraw. > One quick solution might be to add a field "private" or something like > that to struct raw1394_handle, which we could use to store a pointer to > our object. Then we could declare the handler as a friend function of > the class and via the pointer (because the handler has the raw-handle as > first argument, and therefore would get that pointer) we could access > the member variables of the object. Or, which is cleaner, just use this object pointer to call a class function (no friend declaration necessary). I added: void *raw1394_get_userdata(raw1394handle_t handle); void raw1394_set_userdata(raw1394handle_t handle, void *data); Should be in CVS by the time you read this. -- Andreas E. Bombe <and...@mu...> DSA key 0x04880A44 http://home.pages.de/~andreas.bombe/ http://linux1394.sourceforge.net/ |