Switch to unified view

a/libupnpp/getsyshwaddr.h b/libupnpp/getsyshwaddr.h
...
...
28
 */
28
 */
29
#ifndef __GETIFADDR_H__
29
#ifndef __GETIFADDR_H__
30
#define __GETIFADDR_H__
30
#define __GETIFADDR_H__
31
#include <arpa/inet.h>
31
#include <arpa/inet.h>
32
32
33
#ifdef __cplusplus
34
extern "C" {
35
#endif
36
33
/** 
37
/** 
34
 * Retrieve hardware (ethernet) network address for this host.
38
 * Retrieve hardware (ethernet) network address for this host.
35
 * @param iface if not null or empty, use this interface, else first found.
39
 * @param iface if not null or empty, use this interface, else first found.
36
 * @param[output] ip return IP address.
40
 * @param[output] ip return IP address.
37
 * @param ilen size in bytes of the ip buffer.
41
 * @param ilen size in bytes of the ip buffer.
38
 * @param[output] buf return hardware address.
42
 * @param[output] buf return hardware address.
39
 * @param hlen size in bytes of the buf buffer.
43
 * @param hlen size in bytes of the buf buffer.
40
 */
44
 */
41
int getsyshwaddr(const char *iface, char *ip, int ilen, char *buf, int hlen);
45
int getsyshwaddr(const char *iface, char *ip, int ilen, char *buf, int hlen);
42
46
47
#ifdef __cplusplus
48
}
43
#endif
49
#endif
44
50
51
#endif