Skip to content

Commit

Permalink
Add docs for mgos_pppos_dev_get_ip_info()
Browse files Browse the repository at this point in the history
PUBLISHED_FROM=132e2bd2c1ad50fa785c808d8db5cb69e5f3c6fd
  • Loading branch information
dimonomid authored and cesantabot committed Jan 15, 2018
1 parent a9352e9 commit cec7cbf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
22 changes: 0 additions & 22 deletions include/mgos_pppos.h

This file was deleted.

27 changes: 27 additions & 0 deletions src/mgos_pppos.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*/

#ifndef CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_
#define CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_

#include "mgos_net.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/*
* Retrieve IP configuration of the provided instance number (which should be
* of type `MGOS_NET_IF_TYPE_PPP`), and fill provided `ip_info` with it. Returns
* `true` in case of success, false otherwise.
*/
bool mgos_pppos_dev_get_ip_info(int if_instance,
struct mgos_net_ip_info *ip_info);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* CS_MOS_LIBS_PPPOS_SRC_MGOS_PPPOS_H_ */

0 comments on commit cec7cbf

Please sign in to comment.