directory_token_t Struct Reference


Data Fields

directory_keyword tp
int n_args:30
char ** args
char * object_type
size_t object_size
char * object_body
crypto_pk_env_tkey
char * error

Detailed Description

Structure to hold a single directory token.

We parse a directory by breaking it into "tokens", each consisting of a keyword, a line full of arguments, and a binary object. The arguments and object are both optional, depending on the keyword type.

This structure is only allocated in memareas; do not allocate it on the heap, or token_clear() won't work.


Field Documentation

For _ERR tokens only.

Referenced by router_parse_addr_policy_item_from_string(), and tokenize_string().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:11 2010 for tor by  doxygen 1.5.6