Made initialization function return a pointer to the MAC driver structure, to make initialization nicer

This commit is contained in:
adamdunkels 2007-10-23 20:57:37 +00:00
parent 0fdb3e3ddc
commit f638c628d7
2 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: nullmac.h,v 1.2 2007/05/25 08:07:15 adamdunkels Exp $
* $Id: nullmac.h,v 1.3 2007/10/23 20:57:37 adamdunkels Exp $
*/
/**
@ -46,6 +46,6 @@
extern const struct mac_driver nullmac_driver;
void nullmac_init(const struct radio_driver *r);
const struct mac_driver *nullmac_init(const struct radio_driver *r);
#endif /* __NULLMAC_H__ */

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: xmac.h,v 1.4 2007/05/25 08:07:15 adamdunkels Exp $
* $Id: xmac.h,v 1.5 2007/10/23 20:57:37 adamdunkels Exp $
*/
/**
@ -46,6 +46,6 @@
extern const struct mac_driver xmac_driver;
void xmac_init(const struct radio_driver *d);
const struct mac_driver *xmac_init(const struct radio_driver *d);
#endif /* __XMAC_H__ */