Re: Extra callback parameters



On Wednesday October 22 2003 17:58 CEST, Russell Shaw wrote:
    
Peter "Firefly" Lund wrote:
    
use a struct:

struct combine_data {
  gpointer data1;
  gpointer data2;
};
    
But that's a yuk way of doing it. I've got dozens of those 
things;)
    
In this case a struct will be the best way. Maybe one global
struct that holds pointers to all datas you will need for all
callbacks is the right thing?
    
-- 
:-) <- a little Dollar construction set:
    
To become rich you only need to invest.
Never think: I have nothing to invest!
Note: a little Idea cold be more worth then 1.000.000 Dollar.
    



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