delete mac implementation, replace by stub; reorganize platform-specific code

This commit is contained in:
Lysann Schlegel
2012-11-10 13:03:51 +01:00
parent f7b4fd44a0
commit f1c7a7712b
10 changed files with 188 additions and 1043 deletions

View File

@@ -31,33 +31,24 @@
* @brief Handles device I/O.
*/
#ifndef CONNECT_H_INCLUDED
#define CONNECT_H_INCLUDED
#ifdef WIIUSE_BLUEZ
#include <bluetooth/bluetooth.h>
#endif
#ifndef IO_H_INCLUDED
#define IO_H_INCLUDED
#include "wiiuse_internal.h"
#include "io_platform.h" // declare functions implemented per platform
#ifdef __cplusplus
extern "C" {
#endif
/** @defgroup internal_io Internal: Device IO */
/** @defgroup internal_io Internal: Device I/O */
/** @{ */
void wiiuse_handshake(struct wiimote_t* wm, byte* data, uint16_t len);
void wiiuse_init_platform_fields(struct wiimote_t* wm);
void wiiuse_cleanup_platform_fields(struct wiimote_t* wm);
int wiiuse_io_read(struct wiimote_t* wm);
int wiiuse_io_write(struct wiimote_t* wm, byte* buf, int len);
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* CONNECT_H_INCLUDED */
#endif /* IO_H_INCLUDED */