Skip to content

Commit ceaebb5

Browse files
committed
move if_config to separate header
1 parent 7a8b2ca commit ceaebb5

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

gc/network.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <netdb.h>
1313

1414
#include "gctypes.h"
15+
#include "ogc/if_config.h"
1516

1617
#define INVALID_SOCKET (~0)
1718
#define SOCKET_ERROR (-1)

gc/ogc/if_config.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef __IFCONFIG_H__
2+
#define __IFCONFIG_H__
3+
4+
#include <netinet/in.h>
5+
#include <stdbool.h>
6+
7+
#ifdef __cplusplus
8+
extern "C" {
9+
#endif
10+
11+
12+
s32 if_config( char *local_ip, char *netmask, char *gateway,bool use_dhcp, int max_retries);
13+
s32 if_configex(struct in_addr *local_ip, struct in_addr *netmask, struct in_addr *gateway, bool use_dhcp, int max_retries);
14+
15+
#ifdef __cplusplus
16+
}
17+
#endif
18+
19+
#endif

0 commit comments

Comments
 (0)