mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 15:40:23 +08:00
Add CPP guards to net_if.h
cesanta/mongoose#653 PUBLISHED_FROM=a676dbce6d04b78ca316a4601e9cbb676ecc88d2
This commit is contained in:
parent
d4b81bb911
commit
5d0a5cfe72
@ -1669,6 +1669,10 @@ double mg_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. */
|
||||
void mg_if_connect_tcp(struct mg_connection *nc,
|
||||
const union socket_address *sa);
|
||||
@ -1730,6 +1734,10 @@ void mg_if_get_conn_addr(struct mg_connection *nc, int remote,
|
||||
/* Associate a socket to a connection. */
|
||||
void mg_sock_set(struct mg_connection *nc, sock_t sock);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* CS_MONGOOSE_SRC_NET_IF_H_ */
|
||||
/*
|
||||
* Copyright (c) 2014 Cesanta Software Limited
|
||||
|
Loading…
x
Reference in New Issue
Block a user