[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Wrong guile-bytestructures description for gnunet progress-info struct w

From: Amirouche Boubekki
Subject: Wrong guile-bytestructures description for gnunet progress-info struct with unions
Date: Sun, 07 Jan 2018 17:55:37 +0100
User-agent: Roundcube Webmail/1.1.2

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://

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.

Attachment: download.scm
Description: Text document

Attachment: gnunet.scm
Description: Text document

Attachment: gnunet_fs_service.h
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]