Skip to content

Commit cec7cbf

Browse files
dimonomidcesantabot
authored andcommitted
Add docs for mgos_pppos_dev_get_ip_info()
PUBLISHED_FROM=132e2bd2c1ad50fa785c808d8db5cb69e5f3c6fd
1 parent a9352e9 commit cec7cbf

File tree

2 files changed

+27
-22
lines changed

2 files changed

+27
-22
lines changed

include/mgos_pppos.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/mgos_pppos.h

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2014-2018 Cesanta Software Limited
3+
* All rights reserved
4+
*/
5+
6+
#ifndef CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_
7+
#define CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_
8+
9+
#include "mgos_net.h"
10+
11+
#ifdef __cplusplus
12+
extern "C" {
13+
#endif /* __cplusplus */
14+
15+
/*
16+
* Retrieve IP configuration of the provided instance number (which should be
17+
* of type `MGOS_NET_IF_TYPE_PPP`), and fill provided `ip_info` with it. Returns
18+
* `true` in case of success, false otherwise.
19+
*/
20+
bool mgos_pppos_dev_get_ip_info(int if_instance,
21+
struct mgos_net_ip_info *ip_info);
22+
23+
#ifdef __cplusplus
24+
}
25+
#endif /* __cplusplus */
26+
27+
#endif /* CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_ */

0 commit comments

Comments
 (0)