diff options
| author | hathach <[email protected]> | 2025-10-14 17:13:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-14 17:13:28 +0700 |
| commit | 47b13f6b102ea981b79588158dca436ebc21f1ae (patch) | |
| tree | e435b6af711f0386daec3eb53313cf4c2c240735 /src/class/net | |
| parent | 9bf18d080b202e8e09bd76f32272b1dbfabfa3b9 (diff) | |
improve cmake warning flags, fix various warnings in examples
Diffstat (limited to 'src/class/net')
| -rw-r--r-- | src/class/net/ecm_rndis_device.c | 2 | ||||
| -rw-r--r-- | src/class/net/net_device.h | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/class/net/ecm_rndis_device.c b/src/class/net/ecm_rndis_device.c index 299eb97c8..7dff66823 100644 --- a/src/class/net/ecm_rndis_device.c +++ b/src/class/net/ecm_rndis_device.c @@ -35,8 +35,6 @@ #include "net_device.h" #include "rndis_protocol.h" -extern void rndis_class_set_handler(uint8_t *data, int size); /* found in ./misc/networking/rndis_reports.c */ - #define CFG_TUD_NET_PACKET_PREFIX_LEN sizeof(rndis_data_packet_t) #define CFG_TUD_NET_PACKET_SUFFIX_LEN 0 diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h index fff2623b7..ef5ecffc8 100644 --- a/src/class/net/net_device.h +++ b/src/class/net/net_device.h @@ -56,6 +56,13 @@ typedef enum #endif //--------------------------------------------------------------------+ +// Implemented by Application +//--------------------------------------------------------------------+ +#if CFG_TUD_ECM_RNDIS +extern void rndis_class_set_handler(uint8_t *data, int size); +#endif + +//--------------------------------------------------------------------+ // Application API //--------------------------------------------------------------------+ |
