Skip to content

Commit

Permalink
Merge pull request #895 from skliper/fix851-duplicate_prototype
Browse files Browse the repository at this point in the history
Fix #851, Remove duplicate network prototypes
  • Loading branch information
astrogeco authored Mar 17, 2021
2 parents 8d6638d + d1d9e39 commit 3546b4e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions src/os/inc/osapi-sockets.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,35 +368,6 @@ int32 OS_SocketGetIdByName(osal_id_t *sock_id, const char *sock_name);
*/
int32 OS_SocketGetInfo(osal_id_t sock_id, OS_socket_prop_t *sock_prop);

/*-------------------------------------------------------------------------------------*/
/**
* @brief Gets the network ID of the local machine
*
* The ID is an implementation-defined value and may not be consistent
* in meaning across different platform types.
*
* @note This API may be removed in a future version of OSAL due to
* inconsistencies between platforms.
*
* @return The ID or fixed value of -1 if the host id could not be found.
* Note it is not possible to differentiate between error codes and valid
* network IDs here. It is assumed, however, that -1 is never a valid ID.
*/
int32 OS_NetworkGetID(void);

/*-------------------------------------------------------------------------------------*/
/**
* @brief Gets the local machine network host name
*
* If configured in the underlying network stack,
* this function retrieves the local hostname of the system.
*
* @param[out] host_name Buffer to hold name information
* @param[in] name_len Maximum length of host name buffer
*
* @return Execution status, see @ref OSReturnCodes
*/
int32 OS_NetworkGetHostName(char *host_name, size_t name_len);
/**@}*/

#endif

0 comments on commit 3546b4e

Please sign in to comment.