Re: Need help wrapping a structure
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Jun 03, 2006
- 489 views
On Fri, 2 Jun 2006 03:40:00 -0400, Greg Haberek <ghaberek at gmail.com> wrote: >The following structure "_XImage" contains a >structure "funcs" that seems to point to routines in memory. <snip> > struct funcs { /* image manipulation routines */ > struct _XImage *(*create_image)( <snip to ")"> > int (*destroy_image) (struct _XImage *); > unsigned long (*get_pixel) (struct _XImage *, int, int); > int (*put_pixel) (struct _XImage *, int, int, unsigned long); > struct _XImage *(*sub_image)(struct _XImage ...); > int (*add_pixel) (struct _XImage *, long); > } f; >} XImage; ></eucode> {{{ Looks to me like you should treat that as a block of 5 pointers. Calling them at the right time with the right parameters might prove interesting)