summaryrefslogtreecommitdiff
path: root/decoders/http/http_decoder_table.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/http/http_decoder_table.h')
-rw-r--r--decoders/http/http_decoder_table.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/decoders/http/http_decoder_table.h b/decoders/http/http_decoder_table.h
index bbc6956..d32f6be 100644
--- a/decoders/http/http_decoder_table.h
+++ b/decoders/http/http_decoder_table.h
@@ -1,11 +1,11 @@
-#ifndef _HTTP_DECODER_TABLE_H_
-#define _HTTP_DECODER_TABLE_H_
+#pragma once
#include <stddef.h>
#include "stellar/http.h"
-#include "http_decoder_inc.h"
+#include "http_decoder_private.h"
#include "http_decoder_string.h"
-enum http_item {
+enum http_item
+{
HTTP_ITEM_URI = 0x01,
HTTP_ITEM_STATUS = 0x02,
HTTP_ITEM_METHOD = 0x03,
@@ -55,9 +55,9 @@ int http_decoder_table_iter_header(struct http_decoder_table *table,
int http_decoder_table_reset_header_iter(struct http_decoder_table *table);
/**
* @brief Is there a parsed header
- *
+ *
* @retval yes(1) no(0)
-*/
+ */
int http_decoder_table_has_parsed_header(struct http_decoder_table *table);
/**
@@ -69,7 +69,7 @@ int http_decoder_table_header_complete(struct http_decoder_table *table);
/**
* @brief set flag for headers parsed completely
-*/
+ */
void http_decoder_table_set_header_complete(struct http_decoder_table *table);
void http_decoder_table_reset_header_complete(struct http_decoder_table *table);
@@ -77,4 +77,3 @@ void http_decoder_table_reset_header_complete(struct http_decoder_table *table);
void http_decoder_table_update_commit_index(struct http_decoder_table *table);
int http_decoder_table_get_total_parsed_header(struct http_decoder_table *table);
-#endif \ No newline at end of file