So currently I'm working on an open source tangle gateway in C++ called lotti which makes use of iota.c library to send encrypted and decrypted messages which works fine.
As I want to add iota streams support, I also added the iota streams library with c bindings to my project. However, I get a conflicting type error of milestone_t
which is defined in iota.c lib as well as the streams lib with different definitions. As both library headers are added via
extern "C" {
#include<header.h>
}
they get resolved into the same namespace which make both libs incompatible.
Therefore I would like to ask, if there is any other solution to combine both functionalities other than forking one lib and changing the name of thetypedef
. Normally I try to not fork or change external repositories as it costs me a lot of time bumping them to newer releases and maintain changes. Is it perhaps not even intended to use both libraries? Or have I overlook that one library is capable of both (sending transactions/messages and handle iota streams).
Your feedback will be much appreciated.
Regards emDave