gEDA-dev: [pcb] multiple hids in one .so
Igor2
igor2 at inno.bme.hu
Mon Oct 2 09:54:13 EDT 2006
On Mon, 2 Oct 2006, DJ Delorie wrote:
>
>> Hmm, I couldn't find where the GUI HID sets the exporter HID in a global
>> variable i could use, could you give me a file:line?
>
>It's at the bottom of draw.c in the expose callback wrapper.
>
Ahh, I see. This actually differs from what I suggested: I suggested
introducing a _new_ global variable, let's say "HID *exporter = NULL;",
which would be set by the GUI hid before calling the very first function
of the exporter HID and and then would be unset after. This can happily
live besides the gui swapping draw.c does and needs only 2-3 lines to be
added in each gui HID.
More information about the geda-dev
mailing list