rename *.cpp to *.c; renmae API. move benchmarks/* to test/decoder/http; fix TSG-22347
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
#define __USE_MISC 1
|
||||
#endif
|
||||
|
||||
#include <cstddef>
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
@@ -31,6 +30,11 @@ extern "C"
|
||||
#include "fieldstat/fieldstat_easy.h"
|
||||
#include "toml/toml.h"
|
||||
|
||||
#ifndef hstring
|
||||
#include <bits/types/struct_iovec.h>
|
||||
typedef struct iovec hstring;
|
||||
#endif
|
||||
|
||||
#ifndef likely
|
||||
#define likely(x) __builtin_expect((x), 1)
|
||||
#endif
|
||||
@@ -142,9 +146,9 @@ extern "C"
|
||||
struct http_message;
|
||||
|
||||
struct http_message *http_message_new(enum http_message_type type, struct http_decoder_result_queue *queue,
|
||||
int queue_index, unsigned char flow_type);
|
||||
int queue_index, uint8_t flow_type);
|
||||
struct http_message *http_body_message_new(enum http_message_type type, struct http_decoder_result_queue *queue,
|
||||
int queue_index, uint8_t flow_type, hstring *raw_payload);
|
||||
int queue_index, uint8_t flow_type, hstring *raw_payload, hstring *decompress_payload);
|
||||
int http_topic_exdata_compose_get_index(const struct http_decoder_env *httpd_env, int by_topic_id);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user