summaryrefslogtreecommitdiff
path: root/src/http_decoder_string.h
diff options
context:
space:
mode:
authorlijia <[email protected]>2024-05-24 22:47:32 +0800
committerlijia <[email protected]>2024-06-03 11:08:06 +0800
commit1c232f0176c43c93c3e787ac83f3573bf42c58f1 (patch)
tree734c31a97ec38847972b70a18ec075fd415bb5f6 /src/http_decoder_string.h
parent22d071e23ff423242f51dce2eab1477b5fb9d106 (diff)
Adapt to stellar2.0;update API,add HDR_END,BODY_END,TRANSACTION_NEW,FREE msg.v2.0.2
Diffstat (limited to 'src/http_decoder_string.h')
-rw-r--r--src/http_decoder_string.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/src/http_decoder_string.h b/src/http_decoder_string.h
index f9d81dd..4c95960 100644
--- a/src/http_decoder_string.h
+++ b/src/http_decoder_string.h
@@ -1,24 +1,8 @@
-/*
-**********************************************************************************************
-* File: http_decoder_string.h
-* Description:
-* Authors: LuWenPeng <[email protected]>
-* Date: 2022-10-31
-* Copyright: (c) Since 2022 Geedge Networks, Ltd. All rights reserved.
-***********************************************************************************************
-*/
-
#ifndef _HTTP_DECODER_STRING_H_
#define _HTTP_DECODER_STRING_H_
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
#include "http_decoder.h"
-
enum string_state {
STRING_STATE_INIT,
STRING_STATE_REFER,
@@ -82,14 +66,9 @@ void http_decoder_string_init(struct http_decoder_string *rstr,
void http_decoder_string_reinit(struct http_decoder_string *rstr);
-enum string_state http_decoder_string_state(struct http_decoder_string *rstr);
+enum string_state http_decoder_string_state(const struct http_decoder_string *rstr);
-int http_decoder_string_get(struct http_decoder_string *rstr, struct hstring *out);
+int http_decoder_string_get(const struct http_decoder_string *rstr, struct hstring *out);
void http_decoder_string_dump(struct http_decoder_string *rstr, const char *desc);
-
-#ifdef __cplusplus
-}
-#endif
-
#endif \ No newline at end of file