summaryrefslogtreecommitdiff
path: root/ot_http.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.h')
-rw-r--r--ot_http.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/ot_http.h b/ot_http.h
index e53accc..965820f 100644
--- a/ot_http.h
+++ b/ot_http.h
@@ -6,7 +6,15 @@
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/* Libowfat */
14#include "iob.h"
15
9#include "ot_buf.h" 16#include "ot_buf.h"
17#include "trackerlogic.h"
10 18
11typedef enum { 19typedef enum {
12 STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, 20 STRUCT_HTTP_FLAG_WAITINGFORTASK = 1,
@@ -25,9 +33,9 @@ struct http_data {
25 STRUCT_HTTP_FLAG flag; 33 STRUCT_HTTP_FLAG flag;
26}; 34};
27 35
28ssize_t http_handle_request(const int64 s, struct ot_workstruct *ws); 36ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws);
29ssize_t http_sendiovecdata(const int64 s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); 37ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial);
30ssize_t http_issue_error(const int64 s, struct ot_workstruct *ws, int code); 38ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code);
31 39
32extern char *g_stats_path; 40extern char *g_stats_path;
33extern ssize_t g_stats_path_len; 41extern ssize_t g_stats_path_len;