Amirouche Boubekki
2018-01-07 16:55:37 UTC
I am trying to rewrite the guile bindings for gnunet to
guile-bytestructures
and I face an issue for two days regarding `struct
GNUNET_FS_ProgressInfo`.
I attached to this mail the relevant files. In particular, download.scm
try to download a file over gnunet, if the file is in gnunet it should
succeed, actually it works on my machine. But I need to parse
ProgressInfo
to know when the download is finished to be able to stop the program.
Something that is done incorrectly in current gnunet-guile bindings.
For the time being, you can compile gnunet from git:
git clone git://gnunet.org/gnunet.git
And change the path of the shared libraries inside gnunet.scm.
I triple checked the %fs-progress-info definition, it's correct,
but I still get incorrect value for status field, see download.scm line
13.
In the mean time, I will try to setup autotools and guix recipe to work
on this.
Also, I'd rather use Matt Wette ffi helper but gnunet is built around
several
shared library that depends on each other, it's still not clear what
depends
on what, but I don't think FH supports that kind of C library.
guile-bytestructures
and I face an issue for two days regarding `struct
GNUNET_FS_ProgressInfo`.
I attached to this mail the relevant files. In particular, download.scm
try to download a file over gnunet, if the file is in gnunet it should
succeed, actually it works on my machine. But I need to parse
ProgressInfo
to know when the download is finished to be able to stop the program.
Something that is done incorrectly in current gnunet-guile bindings.
For the time being, you can compile gnunet from git:
git clone git://gnunet.org/gnunet.git
And change the path of the shared libraries inside gnunet.scm.
I triple checked the %fs-progress-info definition, it's correct,
but I still get incorrect value for status field, see download.scm line
13.
In the mean time, I will try to setup autotools and guix recipe to work
on this.
Also, I'd rather use Matt Wette ffi helper but gnunet is built around
several
shared library that depends on each other, it's still not clear what
depends
on what, but I don't think FH supports that kind of C library.