Re: Need help wrapping a structure

new topic     » goto parent     » topic index » view thread      » older message » newer message

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
interestingblink)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu