Commit Graph

7 Commits

Author SHA1 Message Date
Rémi Birot-Delrue 2304d664bb Minor modifications to get all examples working.
* binding-utils.scm: add `and=>%` (`and=>` for foreign pointers).
* fs/progress-info.scm: bug fix: on '(#:publish #:complete) do not assert any
                        more there’s a SKS URI (we don’t always publish in a
			namespace).
* examples/search.scm: add a one-line help message.
* examples/search-ns.scm,
  examples/publish.scm: typos.
2015-08-12 20:17:58 +02:00
Rémi Birot-Delrue 9cef3b7d43 Code cleaning: various improvements and bug fixes.
* identity.scm: `open-identity-service` now throws an exception on failure.
* binding-utils.scm: just add `destructuring-bind`.
* common.scm: `time-rel` now throws an exception instead of returning a
              meaningless negative result; add `setup-log`.
* container/metadata.scm: `metadata-set!` now throws an exception on error.
* tests/container-metadata.scm: add tests for `metadata-copy`,
                                `metadata-clear`, `metadata-equal?`
                                and `add-publication-date!`
2015-08-10 19:18:22 +02:00
Rémi Birot-Delrue ff8e19b523 Rewrite of examples/publish.scm, small bug fixes and typos.
* examples/publish.scm: rewritten to correctly handle namespaces.
* gnu/gnunet/binding-utils.scm: add `or%`.
* gnu/gnunet/fs.scm: bug fix: `start-*` function throw an error instead of
                    returning %null-pointer.
* gnu/gnunet/identity.scm: typo.
2015-08-03 12:38:31 +02:00
Rémi Birot-Delrue 96048086c6 Bind GNUNET_FS_IDENTITY_* functions and add support for publishing in namespaces.
* identity.scm: complete bindings of GNUNET_FS_IDENTITY
* fs.scm: add support for egos/namespaces to `start-publish`
* binding-utils: remove the useless import of `assert`
2015-07-21 19:26:51 +02:00
Rémi Birot-Delrue 6fc73cee9b Add a few utility functions.
* binding-utils.scm: add `pointer->string*`.
* common.scm: add `bool->int` and `int->bool`, two functions to easily convert
              `gnunet-ok`, `gnunet-no`, `gnunet-syserror` values to booleans.
* fs/uri.scm: export `keyword-list->string`.
* tests/uri.scm: test `keyword-list->string`.
* scheduler.scm: add `cancel-task!`.
2015-07-21 13:01:28 +02:00
Rémi Birot-Delrue c40fcacfbc Replaces the crappy “union handling” functions with better ones (inside “system/foreign/”); has the stub gnunet-search working. 2015-06-24 13:20:18 +02:00
Rémi Birot-Delrue 04bbbcef56 Initial commit. 2015-06-20 22:16:34 +02:00