Commit 5d0a5cfe authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by rojer

Add CPP guards to net_if.h

cesanta/mongoose#653

PUBLISHED_FROM=a676dbce6d04b78ca316a4601e9cbb676ecc88d2
parent d4b81bb9
...@@ -1669,6 +1669,10 @@ double mg_time(); ...@@ -1669,6 +1669,10 @@ double mg_time();
* Implementation must ensure that only one callback is invoked at any time. * Implementation must ensure that only one callback is invoked at any time.
*/ */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* Request that a TCP connection is made to the specified address. */ /* Request that a TCP connection is made to the specified address. */
void mg_if_connect_tcp(struct mg_connection *nc, void mg_if_connect_tcp(struct mg_connection *nc,
const union socket_address *sa); const union socket_address *sa);
...@@ -1730,6 +1734,10 @@ void mg_if_get_conn_addr(struct mg_connection *nc, int remote, ...@@ -1730,6 +1734,10 @@ void mg_if_get_conn_addr(struct mg_connection *nc, int remote,
/* Associate a socket to a connection. */ /* Associate a socket to a connection. */
void mg_sock_set(struct mg_connection *nc, sock_t sock); void mg_sock_set(struct mg_connection *nc, sock_t sock);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CS_MONGOOSE_SRC_NET_IF_H_ */ #endif /* CS_MONGOOSE_SRC_NET_IF_H_ */
/* /*
* Copyright (c) 2014 Cesanta Software Limited * Copyright (c) 2014 Cesanta Software Limited
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment