- Notifications
You must be signed in to change notification settings - Fork 665
/
Copy pathCNIOHTTPParser.h
29 lines (24 loc) · 1.04 KB
/
CNIOHTTPParser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
// adaptions for http_parser to make it more straightforward to use from Swift
#ifndefC_NIO_HTTP_PARSER_SWIFT
#defineC_NIO_HTTP_PARSER_SWIFT
#include"c_nio_http_parser.h"
staticinlinesize_tc_nio_http_parser_execute_swift(http_parser*parser,
consthttp_parser_settings*settings,
constvoid*data,
size_tlen) {
returnc_nio_http_parser_execute(parser, settings, (constchar*)data, len);
}
#endif