22 #ifndef ETCPAL_COMMON_H_
23 #define ETCPAL_COMMON_H_
26 #include "etcpal/error.h"
92 #define ETCPAL_MSVC_NO_DEP_WRN __pragma(warning(suppress : 4996))
94 #define ETCPAL_MSVC_BEGIN_NO_DEP_WARNINGS() __pragma(warning(push)) __pragma(warning(disable : 4996))
95 #define ETCPAL_MSVC_END_NO_DEP_WARNINGS() __pragma(warning(pop))
99 #define ETCPAL_MSVC_NO_DEP_WRN
100 #define ETCPAL_MSVC_BEGIN_NO_DEP_WARNINGS()
101 #define ETCPAL_MSVC_END_NO_DEP_WARNINGS()
106 #define ETCPAL_UNUSED_ARG(arg) ((void)arg)
111 #define ETCPAL_WAIT_FOREVER -1
127 #define ETCPAL_FEATURE_SOCKETS ((etcpal_features_t)(1u << 0))
128 #define ETCPAL_FEATURE_NETINTS ((etcpal_features_t)(1u << 1))
129 #define ETCPAL_FEATURE_TIMERS ((etcpal_features_t)(1u << 2))
130 #define ETCPAL_FEATURE_LOGGING ((etcpal_features_t)(1u << 3))
131 #define ETCPAL_FEATURES_ALL 0xffffffffu
138 #define ETCPAL_FEATURES_ALL_BUT(mask) (((uint32_t)ETCPAL_FEATURES_ALL) & ((uint32_t)(~((uint32_t)(mask)))))
etcpal_error_t
A set of error codes that can be returned by library functions.
Definition: error.h:49
void etcpal_deinit(etcpal_features_t features)
Deinitialize the EtcPal library.
Definition: common.c:136
etcpal_error_t etcpal_init(etcpal_features_t features)
Initialize the EtcPal library.
Definition: common.c:87
uint32_t etcpal_features_t
A mask of desired EtcPal features.
Definition: common.h:114