diff --git a/sys/net/ccn_lite/ccnl-riot-compat.c b/sys/net/ccn_lite/ccnl-riot-compat.c index 3d0f456cc4cbcee5779ee13996a5148f524564ef..507c44019f0bd69dc69121ed4de02d0c83d9841d 100644 --- a/sys/net/ccn_lite/ccnl-riot-compat.c +++ b/sys/net/ccn_lite/ccnl-riot-compat.c @@ -90,7 +90,7 @@ void riot_send_nack(uint16_t to) msg_send(&m, to, 0); } -char *riot_ccnl_event_to_string(ccnl_riot_event_t event) +char *riot_ccnl_event_to_string(int event) { switch (event) { case PKT_PENDING: diff --git a/sys/net/ccn_lite/ccnl-riot-compat.h b/sys/net/ccn_lite/ccnl-riot-compat.h index ea5ed15e08d27a2ffa39bf41a802cad188c999b8..97d95f632bcf29950b321466d4a3af2299e9e552 100644 --- a/sys/net/ccn_lite/ccnl-riot-compat.h +++ b/sys/net/ccn_lite/ccnl-riot-compat.h @@ -30,4 +30,4 @@ typedef struct riot_ccnl_msg { int riot_send_transceiver(uint8_t *buf, uint16_t size, uint16_t to); int riot_send_msg(uint8_t *buf, uint16_t size, uint16_t to); void riot_send_nack(uint16_t to); -char *riot_ccnl_event_to_string(ccnl_riot_event_t event); +char *riot_ccnl_event_to_string(int event); diff --git a/sys/net/include/ccn_lite/ccnl-riot.h b/sys/net/include/ccn_lite/ccnl-riot.h index b447262a0385891178cc9a9ced9280151472c95b..8330d3885e4685f423578288c33100a86977db0b 100644 --- a/sys/net/include/ccn_lite/ccnl-riot.h +++ b/sys/net/include/ccn_lite/ccnl-riot.h @@ -41,16 +41,13 @@ #define TRANSCEIVER TRANSCEIVER_DEFAULT #define CCNL_RIOT_EVENT_NUMBER_OFFSET (1 << 8) -typedef enum ccnl_riot_event { - CCNL_RIOT_MSG = CCNL_RIOT_EVENT_NUMBER_OFFSET + 1, - CCNL_RIOT_HALT, - CCNL_RIOT_POPULATE, - CCNL_RIOT_PRINT_STAT, - CCNL_RIOT_TIMEOUT, - CCNL_RIOT_NACK, - - CCNL_RIOT_RESERVED -} ccnl_riot_event_t; +#define CCNL_RIOT_MSG (CCNL_RIOT_EVENT_NUMBER_OFFSET + 0) +#define CCNL_RIOT_HALT (CCNL_RIOT_EVENT_NUMBER_OFFSET + 1) +#define CCNL_RIOT_POPULATE (CCNL_RIOT_EVENT_NUMBER_OFFSET + 2) +#define CCNL_RIOT_PRINT_STAT (CCNL_RIOT_EVENT_NUMBER_OFFSET + 3) +#define CCNL_RIOT_TIMEOUT (CCNL_RIOT_EVENT_NUMBER_OFFSET + 4) +#define CCNL_RIOT_NACK (CCNL_RIOT_EVENT_NUMBER_OFFSET + 5) +#define CCNL_RIOT_RESERVED (CCNL_RIOT_EVENT_NUMBER_OFFSET + 6) #define CCNL_HEADER_SIZE (40) @@ -65,8 +62,6 @@ typedef enum ccnl_riot_event { # define CCNL_RIOT_CHUNK_SIZE (PAYLOAD_SIZE - CCNL_HEADER_SIZE) #endif - - /** * @brief starts the ccnl relay *