Hi Thomas,
On 29.11.22 17:46, Thomas Commandoux wrote:
> Hi Stefano,
>
> Yes, thank you for your reply,
>
> I did manage to set log messages when there is a fatal error (I just
> append my error message to the NACK: "NACK:failed to..."), but it's true
> it's not as flexible as wanted.
Right.
>
> Anyway, indeed what you said, was what was suggested to me, but my
> software is quite big, it was written in C++/Qt, which I have managed to
> switch to plain simple C++, which was the least requirement for us...
> But switching it to C... boy...
>
You can stil link your C++ code to C, if code could be released under GPLv2.
> I'm really not as strong as that, I think, and again it's quite big,
> many thousands of lines...
You have to publish your code because it is GPLv2, but if I will merge
it into SWUpdate or not, well, this is another story. It could be if
there are no drawbacks for other users (no forced switch to g++), and
libstdc++ is just linked when the handler is selected.
>
> But if I understand you correctly, that would be what I need to do ?
> Switch my code to plain C and implement it in a custom handler ?
Plain C or not, you should check yourself. It could still be C++. But
the way is to have a handler that uses the internal copyimage()
function. This can have callbacks, that is you can attach your custom
code to write / install your artifact, and the core of SWUpdate will
update the progress accordingly.
Best regards,
Stefano Babic
>
> Best regards
>
> <mailto:
sba...@denx.de>> a écrit :
> <mailto:
swupdate%2Bunsu...@googlegroups.com>
> > <mailto:
swupdate+u...@googlegroups.com
> <mailto:
swupdate%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
>
https://groups.google.com/d/msgid/swupdate/CAK1tX2eyWE9uJ3YP3dCr037r5vpc0ApR5FQbvXxO9ssxPwkOmQ%40mail.gmail.com <
https://groups.google.com/d/msgid/swupdate/CAK1tX2eyWE9uJ3YP3dCr037r5vpc0ApR5FQbvXxO9ssxPwkOmQ%40mail.gmail.com> <
https://groups.google.com/d/msgid/swupdate/CAK1tX2eyWE9uJ3YP3dCr037r5vpc0ApR5FQbvXxO9ssxPwkOmQ%40mail.gmail.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/swupdate/CAK1tX2eyWE9uJ3YP3dCr037r5vpc0ApR5FQbvXxO9ssxPwkOmQ%40mail.gmail.com?utm_medium=email&utm_source=footer>>.
>
> --
> =====================================================================
> DENX Software Engineering GmbH, Managing Director: Erika Unter
> HRB 165235 Munich, Office: Kirchenstr.5, 82194 Groebenzell, Germany
> Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
>
sba...@denx.de <mailto:
sba...@denx.de>
> =====================================================================