$Revision$
$Date$

# Structure to_body

The structure represents parsed To body. The structure is declared in `parse_to.h` file.

Structure Declaration:

    struct to_param {
        int type;              /* Type of parameter */
        str name;              /* Name of parameter */
        str value;             /* Parameter value */
        struct to_param* next; /* Next parameter in the list */
    };

    struct to_body{
        int error;                    /* Error code */
        str body;                     /* The whole header field body */
        str uri;                      /* URI */
        str tag_value;                /* Value of tag */
        struct to_param *param_lst;   /* Linked list of parameters */
        struct to_param *last_param;  /* Last parameter in the list */
    };

Structure to_param is a temporary structure representing a To URI parameter. Right now only TAG parameter will be marked in type field. All other parameters will have the same type.

Field Description:

- error - Error code will be put here when parsing of To body fails.

- body - The whole header field body.

- uri - URI of the To header field.

- tag_value - Value of tag parameter if present.

- param_lst - Linked list of all parameters.

- last_param - Pointer to the last parameter in the linked list.