summaryrefslogtreecommitdiff
path: root/sexp.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2002-10-06 21:12:36 +0200
committerNiels Möller <nisse@lysator.liu.se>2002-10-06 21:12:36 +0200
commitd91e8faf19008e04bfe12eb461a05c7d6455c14a (patch)
treea657ec3b11d37670cc850b85ca431061cea5b00e /sexp.h
parent4e2be895f01efa79439cbd6ebe574dc93bf475a1 (diff)
downloadnettle-d91e8faf19008e04bfe12eb461a05c7d6455c14a.tar.gz
(sexp_iterator_init): Made this function static.
(sexp_iterator_first): New, friendlier, initialization function. Rev: src/nettle/sexp.c:1.5 Rev: src/nettle/sexp.h:1.4
Diffstat (limited to 'sexp.h')
-rw-r--r--sexp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sexp.h b/sexp.h
index bf0d9adb..15160377 100644
--- a/sexp.h
+++ b/sexp.h
@@ -51,13 +51,13 @@ struct sexp_iterator
};
-/* Initializes the iterator. You have to call next to get to the first
- * element. */
-void
-sexp_iterator_init(struct sexp_iterator *iterator,
- unsigned length, const uint8_t *input);
-
/* All these functions return 1 on success, 0 on failure */
+
+/* Initializes the iterator. */
+int
+sexp_iterator_first(struct sexp_iterator *iterator,
+ unsigned length, const uint8_t *input);
+
int
sexp_iterator_next(struct sexp_iterator *iterator);