gEDA-dev: [pcb] multiple hids in one .so
DJ Delorie
dj at delorie.com
Sun Oct 1 15:38:10 EDT 2006
> For the scriptable plugin HID I'm working on, it's a required feature to
> be able to register multiple HIDs from the same .so file. However, when my
> general function get_exporter_options() is called back, I have no chance
> to find out which HID triggered the request.
What you'll have to do is have each hid call a wrapper that passes the
extra parameter you need.
> It would be nice if this function could have the HID * or even
> better if a cookie. Like the HID structure could contain a void
> *cookie field which is NULL in case of normal/current HIDS but I
> could fill it in when creating dynamic HIDs and use it from
> callbacks like get_exporter_options().
What you really want is for HIDs to be C++ objects ;-)
More information about the geda-dev
mailing list