diff options
Diffstat (limited to 'ot_http.h')
| -rw-r--r-- | ot_http.h | 11 |
1 files changed, 8 insertions, 3 deletions
| @@ -6,7 +6,13 @@ | |||
| 6 | #ifndef OT_HTTP_H__ | 6 | #ifndef OT_HTTP_H__ |
| 7 | #define OT_HTTP_H__ | 7 | #define OT_HTTP_H__ |
| 8 | 8 | ||
| 9 | #include <stdint.h> | ||
| 10 | #include <sys/types.h> | ||
| 11 | #include <sys/uio.h> | ||
| 12 | |||
| 13 | #include "ot_batch.h" | ||
| 9 | #include "ot_buf.h" | 14 | #include "ot_buf.h" |
| 15 | #include "trackerlogic.h" | ||
| 10 | 16 | ||
| 11 | typedef enum { | 17 | typedef enum { |
| 12 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, | 18 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
| @@ -19,8 +25,7 @@ typedef enum { | |||
| 19 | 25 | ||
| 20 | struct http_data { | 26 | struct http_data { |
| 21 | ot_buf request; | 27 | ot_buf request; |
| 22 | io_batch *batch; | 28 | ot_batch *batch; |
| 23 | size_t batches; | ||
| 24 | ot_ip6 ip; | 29 | ot_ip6 ip; |
| 25 | STRUCT_HTTP_FLAG flag; | 30 | STRUCT_HTTP_FLAG flag; |
| 26 | }; | 31 | }; |
| @@ -29,7 +34,7 @@ ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws); | |||
| 29 | ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); | 34 | ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); |
| 30 | ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); | 35 | ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code); |
| 31 | 36 | ||
| 32 | extern char *g_stats_path; | 37 | extern const char *g_stats_path; |
| 33 | extern ssize_t g_stats_path_len; | 38 | extern ssize_t g_stats_path_len; |
| 34 | 39 | ||
| 35 | #endif | 40 | #endif |
