diff -r d28360ee74c5 -r d9cf40facbc4 master/debug.h --- a/master/debug.h Mon May 03 10:13:25 2010 +0200 +++ b/master/debug.h Mon May 03 18:07:57 2010 +0200 @@ -34,16 +34,18 @@ /*****************************************************************************/ -#include +#ifndef __EC_DEBUG_H__ +#define __EC_DEBUG_H__ + +#include "../devices/ecdev.h" /*****************************************************************************/ -/** - Debugging network interface. -*/ - +/** Debugging network interface. + */ typedef struct { + ec_device_t *device; /**< Parent device. */ struct net_device *dev; /**< net_device for virtual ethernet device */ struct net_device_stats stats; /**< device statistics */ uint8_t registered; /**< net_device is opened */ @@ -53,10 +55,12 @@ /*****************************************************************************/ -int ec_debug_init(ec_debug_t *, const char *); +int ec_debug_init(ec_debug_t *, ec_device_t *, const char *); void ec_debug_clear(ec_debug_t *); void ec_debug_register(ec_debug_t *, const struct net_device *); void ec_debug_unregister(ec_debug_t *); void ec_debug_send(ec_debug_t *, const uint8_t *, size_t); +#endif + /*****************************************************************************/