Made initialization function return a pointer to the MAC driver structure, to make initialization nicer
This commit is contained in:
parent
0fdb3e3ddc
commit
f638c628d7
2 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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;
|
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__ */
|
#endif /* __NULLMAC_H__ */
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* 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;
|
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__ */
|
#endif /* __XMAC_H__ */
|
||||||
|
|
Loading…
Reference in a new issue