Snakebite
October 13th, 2002, 03:55 PM
Hi,
I need to pass state information to my target_callback-function from gir_event() via target_enum(). I.e. information local to one target enumeration. If three windows match the target, I need the same variable accessible from each of the three calls to my target_callback-function.
So far I've allocated one of the command fields for that, but it seems cumbersome to call gir_set_command each time? Also, it's not really thread safe since what should be local to one target enumeration is stored in Girder's command tree.
Is there an official way of doing this?
I need to pass state information to my target_callback-function from gir_event() via target_enum(). I.e. information local to one target enumeration. If three windows match the target, I need the same variable accessible from each of the three calls to my target_callback-function.
So far I've allocated one of the command fields for that, but it seems cumbersome to call gir_set_command each time? Also, it's not really thread safe since what should be local to one target enumeration is stored in Girder's command tree.
Is there an official way of doing this?