Hello,

Ok for me. Can you provide a patch for Dashel to register new streams?
I can then convert my code to use this new infrastructure. We
will have then to find a proper place to register this stream for
all the aseba tools. Philippe proposes to perform this in one of the
aseba*.a libraries's constructor, or maybe create an aseba-net
library for this purpose.

Changes are done for Dashel. I have tested under Linux, it works. I have made the changes for win32 as well, but did not test. Please check whether it still compiles. If it works, and the new API suits your need, I will release Dashel 1.0.5, including the -dev deb on my PPA.

The registration mechanism is simple, call:
  Dashel::streamTypeRegistry.reg("NAME", &createInstance<STREAM_CLASS>);
Where NAME is the protocol name, and STREAM_CLASS the C++ class of your new stream. You can have a look at the bottom of dashel-posix.cpp for inspiration.

Have a nice day,

Stéphane

--
Dr Stéphane Magnenat
http://stephane.magnenat.net

_______________________________________________
Aseba-dev mailing list
Aseba-dev@gna.org
https://mail.gna.org/listinfo/aseba-dev

Reply via email to