started adding sys::getnwifcfg()

This commit is contained in:
2012-11-18 15:46:51 +00:00
parent a55545b8ae
commit 2cfde75ae6
2 changed files with 68 additions and 17 deletions

View File

@ -565,7 +565,17 @@ static int get_nwifcfg (int s, qse_nwifcfg_t* cfg)
int qse_getnwifcfg (qse_nwifcfg_t* cfg)
{
int s = -1;
#if defined(_WIN32)
/* TODO */
return -1;
#elif defined(__OS2__)
/* TODO */
return -1;
#elif defined(__DOS__)
/* TODO */
return -1;
#else
int x, s = -1;
if (cfg->type == QSE_NWIFCFG_IN4)
{
@ -586,5 +596,9 @@ int qse_getnwifcfg (qse_nwifcfg_t* cfg)
/* TODO: support lookup by ifindex */
}
return get_nwifcfg (s, cfg);
x = get_nwifcfg (s, cfg);
QSE_CLOSE (s);
return x;
#endif
}