[XForms] Where to add entry for forms.h

Angus Leeming angus.leeming at btopenworld.com
Thu May 27 11:00:22 EDT 2004


On Wednesday 26 May 2004 12:51 am, Jeff wrote:
> Angus, or anbody,

Hello, Jeff.

> Where do I add the line:
> FL_CLIENT_CALLBACK client_callback;
>  so it appears in the forms structuer. I thnk it would go into
> Basic.h. 

Sounds correct to me. That's where 'struct forms_' is defined.

> But do I also need to adjust the line
>     int reserved[10];           /* future use              */
>
> to include the size of the new client_callback enty in struct
> FL_FORM in Basic.h

That would be nice. It will allow us to maintain binary compatibility 
with previous versions of the library. You'll want something like

	int reserved[10 - sizeof(FL_CLIENT_CALLBACK)];

> I also guess the header declaration
> FL_EXPORT FL_CLIENT_CALLBACK fl_register_client_callback(
>                 FL_FORM *form,
>                 FL_CLIENT_CALLBACK rcb
>                 );
>
> Would also go into Basic.h.

Sounds reasonable.

> I want to finally submit this patch.

Great!
Angus



More information about the Xforms mailing list