summaryrefslogtreecommitdiff
path: root/decoders/http/http_content_decompress.h
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-08-16 14:58:19 +0800
committerlijia <[email protected]>2024-08-16 16:05:57 +0800
commit5ccd3bc23cf46a11ada14eab3e0b0a354733da59 (patch)
tree140a676f27ca516916fdd78eb1a0f07d8c59dac8 /decoders/http/http_content_decompress.h
parenta59eca7685e126226d5c2b4679a2a90711cc5875 (diff)
Adjust benchmark directory,enable HTTP test,rename variables,format codesdev-integration-http
Diffstat (limited to 'decoders/http/http_content_decompress.h')
-rw-r--r--decoders/http/http_content_decompress.h52
1 files changed, 18 insertions, 34 deletions
diff --git a/decoders/http/http_content_decompress.h b/decoders/http/http_content_decompress.h
index 3c2ba48..7f2c221 100644
--- a/decoders/http/http_content_decompress.h
+++ b/decoders/http/http_content_decompress.h
@@ -1,16 +1,4 @@
-/*
-**********************************************************************************************
-* File: http_content_decompress.h
-* Description:
-* Authors: LuWenPeng <[email protected]>
-* Date: 2022-10-31
-* Copyright: (c) Since 2022 Geedge Networks, Ltd. All rights reserved.
-***********************************************************************************************
-*/
-
-
-#ifndef _HTTP_CONTENT_DECOMPRESS_H_
-#define _HTTP_CONTENT_DECOMPRESS_H_
+#pragma once
#ifdef __cplusplus
extern "C"
@@ -19,34 +7,30 @@ extern "C"
#include <stddef.h>
-enum http_content_encoding {
- HTTP_CONTENT_ENCODING_NONE = 0,
- HTTP_CONTENT_ENCODING_GZIP = 1 << 1,
- HTTP_CONTENT_ENCODING_DEFLATE = 1 << 2,
- HTTP_CONTENT_ENCODING_BR = 1 << 3,
-};
+ enum http_content_encoding
+ {
+ HTTP_CONTENT_ENCODING_NONE = 0,
+ HTTP_CONTENT_ENCODING_GZIP = 1 << 1,
+ HTTP_CONTENT_ENCODING_DEFLATE = 1 << 2,
+ HTTP_CONTENT_ENCODING_BR = 1 << 3,
+ };
-struct http_content_decompress;
+ struct http_content_decompress;
-enum http_content_encoding
-http_content_encoding_str2int(const char *content_encoding);
+ enum http_content_encoding http_content_encoding_str2int(const char *content_encoding);
-const char *
-http_content_encoding_int2str(enum http_content_encoding content_encoding);
+ const char *http_content_encoding_int2str(enum http_content_encoding content_encoding);
-struct http_content_decompress *
-http_content_decompress_create(enum http_content_encoding encoding);
+ struct http_content_decompress *http_content_decompress_create(enum http_content_encoding encoding);
-void http_content_decompress_destroy(struct http_content_decompress *decompress);
+ void http_content_decompress_destroy(struct http_content_decompress *decompress);
-// return 0 : success
-// return -1 : error
-int http_content_decompress_write(struct http_content_decompress *decompress,
- const char *indata, size_t indata_len,
- char **outdata, size_t *outdata_len);
+ // return 0 : success
+ // return -1 : error
+ int http_content_decompress_write(struct http_content_decompress *decompress,
+ const char *indata, size_t indata_len,
+ char **outdata, size_t *outdata_len);
#ifdef __cplusplus
}
#endif
-
-#endif \ No newline at end of file