From a7dfa95551e8d7f754c78cbbd60b518f9b7342ae Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 30 Jun 2008 08:08:27 +0000 Subject: [PATCH] Added a 'name' field in the mac structure, which allows boot-up code to print out the name of the currently selected MAC protocol --- core/net/mac/mac.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/net/mac/mac.h b/core/net/mac/mac.h index acaf43110..49c2aba24 100644 --- a/core/net/mac/mac.h +++ b/core/net/mac/mac.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: mac.h,v 1.2 2008/02/24 21:05:28 adamdunkels Exp $ + * $Id: mac.h,v 1.3 2008/06/30 08:08:27 adamdunkels Exp $ */ /** @@ -45,6 +45,8 @@ * The structure of a device driver for a radio in Contiki. */ struct mac_driver { + char *name; + /** Send a packet from the Rime buffer */ int (* send)(void);