1 #ifndef HTTP_RANGE_H
 2 #define HTTP_RANGE_H
 3 
 4 #include "http_header.h"
 5 #include "queue.h"
 6 
 7 struct http_range {
 8         SIMPLEQ_HEAD(, http_range_entry)        queue;
 9         size_t                                  queue_count;
10 };
11 
12 struct http_range_entry {
13         off_t                                   left;
14         off_t                                   right;
15 
16         short                                   have_left;
17         short                                   have_right;
18 
19         
20         SIMPLEQ_ENTRY(http_range_entry)         queue;
21 };
22 
23 http_status_t http_header_parse_range   (http_header_entry_t *entry);
24 http_status_t http_header_destroy_range (http_header_entry_t *entry);
25 
26 #endif /* HTTP_RANGE_H */


syntax highlighted by Code2HTML, v. 0.9.1