Skip to content

Commit e75ec23

Browse files
JMouniertux3
authored andcommitted
fix(ffi): remove unnecessary symboles from cffi_defs.h
1 parent 590e143 commit e75ec23

1 file changed

Lines changed: 2 additions & 32 deletions

File tree

cffi_defs.h

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,37 +61,10 @@ struct tanker_error
6161
char const* message;
6262
};
6363

64-
// ctanker/network.h
64+
// ctanker/http.h There is no HTTP revese bindings for python
6565

66-
struct tanker_http_header
67-
{
68-
char const* name;
69-
char const* value;
70-
};
71-
72-
struct tanker_http_request
73-
{
74-
char const* method;
75-
char const* url;
76-
struct tanker_http_header* headers;
77-
int32_t num_headers;
78-
char const* body;
79-
int32_t body_size;
80-
};
81-
82-
struct tanker_http_response
83-
{
84-
char const* error_msg;
85-
struct tanker_http_header* headers;
86-
int32_t num_headers;
87-
char const* body;
88-
int64_t body_size;
89-
int32_t status_code;
90-
};
91-
92-
typedef struct tanker_http_header tanker_http_header_t;
66+
// foward declarations to satisfy FFI
9367
typedef struct tanker_http_request tanker_http_request_t;
94-
typedef struct tanker_http_response tanker_http_response_t;
9568

9669
typedef void tanker_http_request_handle_t;
9770

@@ -111,9 +84,6 @@ struct tanker_http_options
11184

11285
typedef struct tanker_http_options tanker_http_options_t;
11386

114-
void tanker_http_handle_response(tanker_http_request_t*,
115-
tanker_http_response_t*);
116-
11787
// ctanker/datastore.h
11888

11989
enum tanker_datastore_error_code

0 commit comments

Comments
 (0)