Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
Amirouche Boubekki writes: >> If both of those are correct, further possibilities would be: >> >> - Some or all of the structs in the C code are "packed". >> >> - There's a bug in bytestructures. >> >> To rule out these two, you can use a simple test case: write a tiny C >> lib with a function th

Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Amirouche Boubekki
Thanks for the reply. On 2018-01-07 19:39, taylanbayi...@gmail.com wrote: Amirouche Boubekki writes: Here are some possibilities I can think of, wildly speculatively. - %time-relative is defined wrong (I couldn't find the corresponding GNUNET_TIME_Relative definition to compare) Here is t

Re: Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Taylan Ulrich Bayırlı/Kammer
Amirouche Boubekki writes: > 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. Wow, GNUNET_FS_ProgressInfo is hell of a struct. :-) I also checked the bytestructure definition just in case but yes it

Wrong guile-bytestructures description for gnunet progress-info struct with unions

2018-01-07 Thread Amirouche Boubekki
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