mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-08 10:32:53 +03:00
As suggested in #292, several lists of #define could easily be defined as enum instead - which allows for extra compiler checking. The challenge was for where the (#define/enum) parameter defined in a structure was one byte in size. Doxygen was picky and got confused, not maintaining the fact that it was an enum if macros were used to differentiate between using Microsoft or GCC when changing the enum size default from that of an int. include/coap2/coap_dtls.h: include/coap2/coap_session.h: include/coap2/pdu.h: Use enums instead of #define where practical. src/net.c: Handle all the enum cases. man/coap_encryption.txt.in: man/coap_tls_library.txt.in: Update man documentation.