[haiku-gsoc] Re: First timer.diff (from private e-mails)

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Wed, 25 Jun 2008 12:54:07 +0200 CEST

"Dustin Howett" <alaricx@xxxxxxxxx> wrote:
> My main concern with implementing something like gX86SwapFPUFunc() is
> that there are multiple timer methods that need to be switched out,
> which is why I opted instead for a structure; i instinctively chose
> the module structure because it provided what I needed.
> 
> I'm not sure how exactly to go about this then. Should I just use a
> standard structure full of function pointers, with a timer name, or
> should I really set each function individually.

There is nothing wrong with a stucture, and I think you've chosen the 
best path now (until we later may figure out a way to use modules 
instead).

Bye,
   Axel.


Other related posts: