On Thu, Apr 25, 2013 at 05:38:14PM +0200, folkert wrote:
> > Externally, for the user, I would make them objects with callbacks and
> > default functions. For example the device would have callbacks for
>
> Please: do NEVER use callbacks.
> They are a pain to support and only usefull in UI applications.
>
> Folkert van Heusden
Callbacks are just function pointers, a type like any other. They are
as easy to support as any other non trivial type.
And since the plan is to have the libnbd invoke code according to
circumstane there really is no other way than callbacks. Wether they
are hidden in the definition of a state machine, set individually as
hooks or collectively through a struct of function pointers is all the
same. There will be callbacks.
MfG
Goswin
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general