I need to patch fusion to allow for variable size message data in reactors. I saw tentative TODO in fusion_reactor_new() to allow for that, but I was wondering if there was already an idea for how to shape the API for it? I see two choices:

fusion_reactor_set_msg_size() :
   just changes the internal reactor->msg_size to a value to overwrite what what set in fusion_reactor_new() so that will be used on subsequent calls to fusion_reactor_dispatch().

fusion_reactor_dispatch_dynamic() :
  refactor and rename fusion_reactor_dispatch() to take an additional msg_size parameter and then implement a replacement fusion_reactor_dispatch() that just calls that and passes in reactor->msg_size for the extra parameter.

/TomB
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to