port: add functions to get eth-id and create instance as singelton

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@956 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6796243339
Author: Thilo Graf <dbt@novatux.de>
Date: 2010-12-23 (Thu, 23 Dec 2010)



------------------
This commit was generated by Migit
This commit is contained in:
2010-12-23 22:43:40 +00:00
parent c3228edaa3
commit 5a87f58c92
2 changed files with 34 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
#define __configure_network_h__
/*
* $Header: /cvsroot/tuxbox/apps/tuxbox/neutrino/src/system/configure_network.h,v 1.3 2003/03/10 21:22:41 thegoodguy Exp $
* $port: configure_network.h,v 1.4 2009/11/20 22:44:19 tuxbox-cvs Exp $
*
* (C) 2003 by thegoodguy <thegoodguy@berlios.de>
*
@@ -37,7 +37,6 @@ class CNetworkConfig
bool orig_inet_static;
void copy_to_orig(void);
bool modified_from_orig(void);
void init_vars(void);
public:
@@ -50,7 +49,11 @@ class CNetworkConfig
std::string hostname;
bool inet_static;
CNetworkConfig(void);
CNetworkConfig();
~CNetworkConfig();
static CNetworkConfig* getInstance();
bool modified_from_orig(void);
void commitConfig(void);
@@ -58,4 +61,12 @@ class CNetworkConfig
void stopNetwork(void);
};
class CNetAdapter
{
private:
long mac_addr_sys ( u_char *addr);
public:
std::string getMacAddr(void);
};
#endif /* __configure_network_h__ */