code style fixes

This commit is contained in:
spoerk 2018-01-03 15:52:36 +01:00
parent 604e846ff1
commit f8d2c3fa48
3 changed files with 36 additions and 40 deletions

View File

@ -142,7 +142,7 @@ void rf_ble_cmd_create_slave_cmd(uint8_t *cmd, uint8_t channel, uint8_t *params,
* 1 for the first packet of the BLE connection so that the
* connection is properly initialized
*/
void rf_ble_cmd_create_slave_params(uint8_t *params, dataQueue_t *rx_queue,
void rf_ble_cmd_create_slave_params(uint8_t *param, dataQueue_t *rx_queue,
dataQueue_t *tx_queue, uint32_t access_address,
uint8_t crc_init_0, uint8_t crc_init_1,
uint8_t crc_init_2, uint32_t win_size,

View File

@ -102,14 +102,13 @@ struct network_driver {
char *name;
/** Initialize the network driver */
void (* init)(void);
void (*init)(void);
/** Callback for getting notified of incoming packet in packetbuf. */
void (* input)(void);
void (*input)(void);
/** Output funtion, sends from uipbuf. */
uint8_t (* output)(const linkaddr_t *localdest);
uint8_t (*output)(const linkaddr_t *localdest);
};
extern const struct network_driver NETSTACK_NETWORK;
@ -119,7 +118,6 @@ extern const struct framer NETSTACK_FRAMER;
void netstack_init(void);
/* Netstack ip_packet_processor - for implementing packet filters, firewalls,
debuggin info, etc */
@ -135,8 +133,8 @@ enum netstack_ip_callback_type {
struct netstack_ip_packet_processor {
struct netstack_ip_packet_processor *next;
enum netstack_ip_action (* process_input)(void);
enum netstack_ip_action (* process_output)(const linkaddr_t *localdest);
enum netstack_ip_action (*process_input)(void);
enum netstack_ip_action (*process_output)(const linkaddr_t * localdest);
};
/* This function is intended for the IP stack to call whenever input/output
@ -146,18 +144,16 @@ enum netstack_ip_action netstack_process_ip_callback(uint8_t type, const linkadd
void netstack_ip_packet_processor_add(struct netstack_ip_packet_processor *p);
void netstack_ip_packet_processor_remove(struct netstack_ip_packet_processor *p);
/* Netstack sniffer - this will soon be deprecated... */
struct netstack_sniffer {
struct netstack_sniffer *next;
void (* input_callback)(void);
void (* output_callback)(int mac_status);
void (*input_callback)(void);
void (*output_callback)(int mac_status);
};
#define NETSTACK_SNIFFER(name, input_callback, output_callback) \
static struct netstack_sniffer name = { NULL, input_callback, output_callback }
static struct netstack_sniffer name = { NULL, input_callback, output_callback }
void netstack_sniffer_add(struct netstack_sniffer *s);
void netstack_sniffer_remove(struct netstack_sniffer *s);