aboutsummaryrefslogtreecommitdiff
path: root/src/or/parsecommon.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-21 17:00:48 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-22 09:49:13 -0400
commitde508c5f50af855742b59579afd6c9c328eb7cd6 (patch)
tree46f3e34bc7fca3a5909bf7abad202a53a1d451f4 /src/or/parsecommon.h
parent9cf6fc91b1d0870dab8bf87feb9132e7e0de2808 (diff)
downloadtor-de508c5f50af855742b59579afd6c9c328eb7cd6.tar.gz
tor-de508c5f50af855742b59579afd6c9c328eb7cd6.zip
Extract smartlist.h from container.h
Diffstat (limited to 'src/or/parsecommon.h')
-rw-r--r--src/or/parsecommon.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/or/parsecommon.h b/src/or/parsecommon.h
index c786bcc548..fc61c514a1 100644
--- a/src/or/parsecommon.h
+++ b/src/or/parsecommon.h
@@ -9,10 +9,11 @@
#ifndef TOR_PARSECOMMON_H
#define TOR_PARSECOMMON_H
-#include "lib/container/container.h"
#include "lib/crypt_ops/crypto.h"
#include "common/memarea.h"
+struct smartlist_t;
+
/** Enumeration of possible token types. The ones starting with K_ correspond
* to directory 'keywords'. A_ is for an annotation, R or C is related to
* hidden services, ERR_ is an error in the tokenizing process, EOF_ is an
@@ -299,7 +300,7 @@ void token_clear(directory_token_t *tok);
int tokenize_string(memarea_t *area,
const char *start, const char *end,
- smartlist_t *out,
+ struct smartlist_t *out,
token_rule_t *table,
int flags);
directory_token_t *get_next_token(memarea_t *area,
@@ -307,16 +308,16 @@ directory_token_t *get_next_token(memarea_t *area,
const char *eos,
token_rule_t *table);
-directory_token_t *find_by_keyword_(smartlist_t *s,
+directory_token_t *find_by_keyword_(struct smartlist_t *s,
directory_keyword keyword,
const char *keyword_str);
#define find_by_keyword(s, keyword) \
find_by_keyword_((s), (keyword), #keyword)
-directory_token_t *find_opt_by_keyword(const smartlist_t *s,
+directory_token_t *find_opt_by_keyword(const struct smartlist_t *s,
directory_keyword keyword);
-smartlist_t * find_all_by_keyword(const smartlist_t *s, directory_keyword k);
+struct smartlist_t * find_all_by_keyword(const struct smartlist_t *s,
+ directory_keyword k);
#endif /* !defined(TOR_PARSECOMMON_H) */
-