Skip to content
Snippets Groups Projects
Commit ce060277 authored by Martine Lenders's avatar Martine Lenders
Browse files

gnrc_netdev2: remove unrequired forward declaration

parent 507b4381
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,6 @@ extern "C" {
#define NETDEV2_MSG_TYPE_EVENT 0x1234
typedef struct gnrc_netdev2 gnrc_netdev2_t;
/**
* @brief Structure holding gnrc netdev2 adapter state
*
......@@ -49,14 +47,14 @@ typedef struct gnrc_netdev2 gnrc_netdev2_t;
*
* It can be extended
*/
struct gnrc_netdev2 {
typedef struct gnrc_netdev2 {
/**
* @brief Send a pktsnip using this device
*
* This function should convert the pktsnip into a format
* the underlying device understands and send it.
*/
int (*send)(gnrc_netdev2_t *dev, gnrc_pktsnip_t *snip);
int (*send)(struct gnrc_netdev2 *dev, gnrc_pktsnip_t *snip);
/**
* @brief Receive a pktsnip from this device
......@@ -65,7 +63,7 @@ struct gnrc_netdev2 {
* device and convert it into a pktsnip while adding a netif header
* and possibly marking out higher-layer headers.
*/
gnrc_pktsnip_t * (*recv)(gnrc_netdev2_t *dev);
gnrc_pktsnip_t * (*recv)(struct gnrc_netdev2 *dev);
/**
* @brief netdev2 handle this adapter is working with
......@@ -76,7 +74,7 @@ struct gnrc_netdev2 {
* @brief PID of this adapter for netapi messages
*/
kernel_pid_t pid;
};
} gnrc_netdev2_t;
/**
* @brief Initialize gnrc netdev2 handler thread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment