.route.h.swp
512dcd98
 b0VIM 5.8��;D��&apedorian~ape/sip_router/route.h3210#"! Utp�.ad��.�����������yx_F-,�����yk^UFCB'�
�
�
[

�������##endifstruct route_elem* route_match(char* method, char* uri, struct route_elem** rl);void print_rl();int add_rule(struct cfg_line* cl, struct route_elem** head);void clear_rlist(struct route_elem** rl);void push(struct route_elem* re, struct route_elem** head);struct route_elem* init_re();void free_re(struct route_elem* re);extern struct route_elem* rlist;/* main "routing table" */};	int tx_bytes;	int tx;	int errors;	/*counters*/	int ok; /* set to 0 if an error was found sendig a pkt*/	int current_addr_idx;	struct hostent host;	regex_t uri;	regex_t method;	struct route_elem* next;struct route_elem{#define E_BAD_ADDRESS -4#define E_BAD_RE      -3#define E_OUT_OF_MEM  -2#include "cfg_parser.h"#include <netdb.h>#include <regex.h>#include <sys/types.h>#define route_h#ifndef route_h */ * $Id$/*