Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions drivers/wifi/simplelink/simplelink_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,9 @@
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_

#ifdef __cplusplus
extern "C" {
#endif

#define LOG_MODULE_NAME wifi_simplelink
#define LOG_LEVEL CONFIG_WIFI_LOG_LEVEL

#include <logging/log.h>

#ifdef __cplusplus
}
#endif

#endif /* ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_LOG_H_ */
4 changes: 2 additions & 2 deletions drivers/wifi/simplelink/simplelink_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
#ifndef ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SUPPORT_H_
#define ZEPHYR_DRIVERS_WIFI_SIMPLELINK_SIMPLELINK_SUPPORT_H_

#include <net/wifi_mgmt.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <net/wifi_mgmt.h>

#define SSID_LEN_MAX (32)
#define BSSID_LEN_MAX (6)

Expand Down
6 changes: 3 additions & 3 deletions include/net/dhcpv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#ifndef ZEPHYR_INCLUDE_NET_DHCPV4_H_
#define ZEPHYR_INCLUDE_NET_DHCPV4_H_

#include <sys/slist.h>
#include <zephyr/types.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -22,9 +25,6 @@ extern "C" {
* @{
*/

#include <sys/slist.h>
#include <zephyr/types.h>

/** @cond INTERNAL_HIDDEN */

/** Current state of DHCPv4 client address negotiation.
Expand Down
7 changes: 4 additions & 3 deletions include/net/http_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
*/
#ifndef ZEPHYR_INCLUDE_NET_HTTP_PARSER_H_
#define ZEPHYR_INCLUDE_NET_HTTP_PARSER_H_
#ifdef __cplusplus
extern "C" {
#endif

/* Also update SONAME in the Makefile whenever you change these. */
#define HTTP_PARSER_VERSION_MAJOR 2
Expand All @@ -49,6 +46,10 @@ typedef unsigned __int64 u64_t;
#include <net/http_parser_state.h>
#include <net/http_parser_url.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Maximium header size allowed. If the macro is not defined
* before including this header then the default is used. To
* change the maximum header size, define the macro in the build
Expand Down
7 changes: 4 additions & 3 deletions include/net/http_parser_url.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
*/
#ifndef ZEPHYR_INCLUDE_NET_HTTP_PARSER_URL_H_
#define ZEPHYR_INCLUDE_NET_HTTP_PARSER_URL_H_
#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h>
#include <zephyr/types.h>
#include <stddef.h>
#include <net/http_parser_state.h>

#ifdef __cplusplus
extern "C" {
#endif

enum http_parser_url_fields {
UF_SCHEMA = 0
, UF_HOST = 1
Expand Down
4 changes: 2 additions & 2 deletions include/net/net_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
#ifndef ZEPHYR_INCLUDE_NET_NET_CORE_H_
#define ZEPHYR_INCLUDE_NET_NET_CORE_H_

#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>

/**
* @brief Networking
* @defgroup networking Networking
Expand Down
4 changes: 2 additions & 2 deletions include/net/net_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#ifndef ZEPHYR_INCLUDE_NET_NET_EVENT_H_
#define ZEPHYR_INCLUDE_NET_NET_EVENT_H_

#include <net/net_ip.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <net/net_ip.h>

/**
* @addtogroup net_mgmt
* @{
Expand Down
6 changes: 3 additions & 3 deletions include/net/net_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#ifndef ZEPHYR_INCLUDE_NET_NET_MGMT_H_
#define ZEPHYR_INCLUDE_NET_NET_MGMT_H_

#include <sys/__assert.h>
#include <net/net_core.h>

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -23,9 +26,6 @@ extern "C" {
* @{
*/

#include <sys/__assert.h>
#include <net/net_core.h>

struct net_if;

/** @cond INTERNAL_HIDDEN */
Expand Down
8 changes: 4 additions & 4 deletions include/net/socket_can.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_
#define ZEPHYR_INCLUDE_NET_SOCKET_CAN_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <zephyr/types.h>
#include <net/net_ip.h>
#include <net/net_if.h>
#include <drivers/can.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Socket CAN library
* @defgroup socket_can Network Core Library
Expand Down
8 changes: 4 additions & 4 deletions include/net/socket_net_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_NET_MGMT_H_
#define ZEPHYR_INCLUDE_NET_SOCKET_NET_MGMT_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <zephyr/types.h>
#include <net/net_ip.h>
#include <net/net_if.h>
#include <net/net_mgmt.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Socket NET_MGMT library
* @defgroup socket_net_mgmt Network Core Library
Expand Down
4 changes: 2 additions & 2 deletions include/net/socket_offload.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_H_
#define ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_H_

#include <net/socket_offload_ops.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <net/socket_offload_ops.h>

extern const struct socket_offload *socket_ops;

static inline int socket(int family, int type, int proto)
Expand Down
24 changes: 12 additions & 12 deletions include/net/socket_offload_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_OPS_H_
#define ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_OPS_H_

#include <sys/types.h>
#include <net/net_ip.h>
#include <net/socket.h> /* needed for struct pollfd */

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Socket Offload Redirect API
* @defgroup socket_offload Socket offloading interface
* @ingroup networking
* @{
*/

#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h>
#include <net/net_ip.h>
#include <net/socket.h> /* needed for struct pollfd */

/**
* @brief An offloaded Socket API interface
*
Expand Down Expand Up @@ -68,12 +68,12 @@ struct socket_offload {
*/
extern void socket_offload_register(const struct socket_offload *ops);

#ifdef __cplusplus
}
#endif

/**
* @}
*/

#ifdef __cplusplus
}
#endif

#endif /* ZEPHYR_INCLUDE_NET_SOCKET_OFFLOAD_OPS_H_ */
16 changes: 8 additions & 8 deletions subsys/net/l2/ethernet/arp.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
#ifndef __ARP_H
#define __ARP_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined(CONFIG_NET_ARP)

#include <sys/slist.h>
#include <net/ethernet.h>

#ifdef __cplusplus
extern "C" {
#endif

/**
* @brief Address resolution (ARP) library
* @defgroup arp ARP Library
Expand Down Expand Up @@ -71,6 +71,10 @@ void net_arp_init(void);
* @}
*/

#ifdef __cplusplus
}
#endif

#else /* CONFIG_NET_ARP */
#define net_arp_prepare(_kt, _u1, _u2) _kt
#define net_arp_input(...) NET_OK
Expand All @@ -79,8 +83,4 @@ void net_arp_init(void);

#endif /* CONFIG_NET_ARP */

#ifdef __cplusplus
}
#endif

#endif /* __ARP_H */
12 changes: 6 additions & 6 deletions subsys/net/l2/ethernet/gptp/gptp_data_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
#ifndef __GPTP_DS_H
#define __GPTP_DS_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined(CONFIG_NET_GPTP)

#include <net/gptp.h>
#include "gptp_state.h"

#ifdef __cplusplus
extern "C" {
#endif

/* Parameters for PTP data sets. */
#define GPTP_ALLOWED_LOST_RESP 3

Expand Down Expand Up @@ -592,10 +592,10 @@ int gptp_get_port_data(struct gptp_domain *domain, int port,
struct gptp_port_bmca_data **port_bmca_data,
struct net_if **iface);

#endif /* CONFIG_NET_GPTP */

#ifdef __cplusplus
}
#endif

#endif /* CONFIG_NET_GPTP */

#endif /* __GPTP_DS_H */
4 changes: 2 additions & 2 deletions subsys/net/l2/ethernet/gptp/gptp_md.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#ifndef __GPTP_MD_H
#define __GPTP_MD_H

#include <net/gptp.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <net/gptp.h>

/**
* @brief Media Dependent Sync Information.
*
Expand Down
8 changes: 4 additions & 4 deletions subsys/net/l2/ethernet/gptp/gptp_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
#ifndef __GPTP_MESSAGES_H
#define __GPTP_MESSAGES_H

#ifdef __cplusplus
extern "C" {
#endif

#include <net/net_pkt.h>
#include <net/ethernet.h>
#include <net/gptp.h>

#ifdef __cplusplus
extern "C" {
#endif

/* Helpers to access gPTP messages. */
#define GPTP_HDR(pkt) gptp_get_hdr(pkt)
#define GPTP_ANNOUNCE(pkt) ((struct gptp_announce *)gptp_data(pkt))
Expand Down
4 changes: 2 additions & 2 deletions subsys/net/l2/ethernet/gptp/gptp_mi.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#ifndef __GPTP_MI_H
#define __GPTP_MI_H

#include "gptp_md.h"

#ifdef __cplusplus
extern "C" {
#endif

#include "gptp_md.h"

/**
* @brief Media Independent Sync Information.
*
Expand Down
4 changes: 2 additions & 2 deletions subsys/net/l2/ethernet/gptp/gptp_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
#ifndef __GPTP_PRIVATE_H
#define __GPTP_PRIVATE_H

#include <net/gptp.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <net/gptp.h>

/* Common defines for the gPTP stack. */
#define GPTP_THREAD_WAIT_TIMEOUT_MS 1
#define GPTP_MULTIPLE_PDELAY_RESP_WAIT K_MINUTES(5)
Expand Down
4 changes: 2 additions & 2 deletions subsys/net/l2/ethernet/gptp/gptp_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
#ifndef __GPTP_STATE_H
#define __GPTP_STATE_H

#include "gptp_mi.h"

#ifdef __cplusplus
extern "C" {
#endif

#include "gptp_mi.h"

/* PDelayRequest states. */
enum gptp_pdelay_req_states {
GPTP_PDELAY_REQ_NOT_ENABLED,
Expand Down