[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: [PCB] action context patch



Are you sure this is the functionality you want?  It sounded like you
need one context pointer per action, not one context pointer per list
of actions.

And there's no reason why the GUIs would need to even know that the
contexts exist.  The HID registering the action gives the context for
the action to the common action code, and the common action code tells
the action's handler what the context is.  Nobody *invoking* actions
needs to know.

Something like:

hid_register_action (const char *name, ..., void *context);
hid_deregister_action (const char *name);

The remaining functions need not change.


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user