More docstrings

This commit is contained in:
cpq
2026-06-02 07:40:16 +01:00
parent 35c1b9523f
commit e923b413ae
5 changed files with 8 additions and 2 deletions
-1
View File
@@ -661,7 +661,6 @@ void mg_bsd_transport_close(void *t) {
#define MG_NO_CACHE_HEADERS "Cache-Control: no-cache\r\n"
#define MG_JSON_HEADERS "Content-Type: application/json\r\n" MG_NO_CACHE_HEADERS
+4
View File
@@ -1434,6 +1434,7 @@ extern const struct mg_mem_file mg_packed_files[]; // Generated by "pack" util
#if MG_ENABLE_ASSERT
#include <assert.h>
#elif !defined(assert)
@@ -1907,6 +1908,7 @@ void mg_http_serve_ssi(struct mg_connection *c, const char *root,
// TLS / Security
// Available TLS backend libraries
#define MG_TLS_NONE 0 // No TLS support
#define MG_TLS_MBED 1 // mbedTLS
#define MG_TLS_OPENSSL 2 // OpenSSL
@@ -1915,6 +1917,8 @@ void mg_http_serve_ssi(struct mg_connection *c, const char *root,
#define MG_TLS_CUSTOM 4 // Custom implementation
#ifndef MG_TLS
// mongoose_config.h setting. Set MG_TLS to one of the MG_TLS_* values above to
// select a TLS backend. Defaults to MG_TLS_NONE (no TLS).
#define MG_TLS MG_TLS_NONE
#endif
-1
View File
@@ -1,6 +1,5 @@
#include "dash.h"
#include "http.h"
#include "ota.h"
#include "util.h"
#define MG_NO_CACHE_HEADERS "Cache-Control: no-cache\r\n"
+3
View File
@@ -1,6 +1,7 @@
// TLS / Security
#pragma once
// Available TLS backend libraries
#define MG_TLS_NONE 0 // No TLS support
#define MG_TLS_MBED 1 // mbedTLS
#define MG_TLS_OPENSSL 2 // OpenSSL
@@ -9,6 +10,8 @@
#define MG_TLS_CUSTOM 4 // Custom implementation
#ifndef MG_TLS
// mongoose_config.h setting. Set MG_TLS to one of the MG_TLS_* values above to
// select a TLS backend. Defaults to MG_TLS_NONE (no TLS).
#define MG_TLS MG_TLS_NONE
#endif
+1
View File
@@ -3,6 +3,7 @@
#include "arch.h"
#include "config.h"
#include "net.h"
#include "sntp.h"
#include "str.h"
#if MG_ENABLE_ASSERT