diff options
author | discomfitor <discomfitor> | 2011-12-02 13:42:36 +0000 |
---|---|---|
committer | discomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33> | 2011-12-02 13:42:36 +0000 |
commit | 31bb1d9ed64b4d8aaeb987296cc50b253d7e291b (patch) | |
tree | 620b66120f44a17a5b369001833d522868cd5416 /src/lib/eeze_net_private.h | |
parent | 6f3841358a6fd7398e81cbf3d0fff8adc91d76e2 (diff) | |
download | eeze-31bb1d9ed64b4d8aaeb987296cc50b253d7e291b.tar.gz eeze-31bb1d9ed64b4d8aaeb987296cc50b253d7e291b.tar.bz2 eeze-31bb1d9ed64b4d8aaeb987296cc50b253d7e291b.zip |
eeze 1.2 is now operational
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eeze@65809 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
Diffstat (limited to 'src/lib/eeze_net_private.h')
-rw-r--r-- | src/lib/eeze_net_private.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lib/eeze_net_private.h b/src/lib/eeze_net_private.h new file mode 100644 index 0000000..d9b8faf --- /dev/null +++ b/src/lib/eeze_net_private.h @@ -0,0 +1,53 @@ +#ifndef EEZE_NET_PRIVATE_H +#define EEZE_NET_PRIVATE_H +#include <Eeze.h> +#include "eeze_udev_private.h" + +#ifndef EEZE_NET_COLOR_DEFAULT +#define EEZE_NET_COLOR_DEFAULT EINA_COLOR_GREEN +#endif +extern int _eeze_net_log_dom; +#ifdef CRI +#undef CRI +#endif + +#ifdef ERR +#undef ERR +#endif +#ifdef INF +#undef INF +#endif +#ifdef WARN +#undef WARN +#endif +#ifdef DBG +#undef DBG +#endif + +#define CRI(...) EINA_LOG_DOM_CRIT(_eeze_net_log_dom, __VA_ARGS__) +#define DBG(...) EINA_LOG_DOM_DBG(_eeze_net_log_dom, __VA_ARGS__) +#define INF(...) EINA_LOG_DOM_INFO(_eeze_net_log_dom, __VA_ARGS__) +#define WARN(...) EINA_LOG_DOM_WARN(_eeze_net_log_dom, __VA_ARGS__) +#define ERR(...) EINA_LOG_DOM_ERR(_eeze_net_log_dom, __VA_ARGS__) + +struct Eeze_Net +{ + EINA_REFCOUNT; + int index; + _udev_device *device; + const char *syspath; + const char *name; + + const char *ip; + const char *broadip; + const char *netmask; +#ifdef HAVE_IPV6 + const char *ip6; + const char *broadip6; + const char *netmask6; +#endif +}; + +Eina_Bool eeze_net_init(void); +void eeze_net_shutdown(void); +#endif |