Add mg_ prefix to mongoose sources

CL: none

PUBLISHED_FROM=d6ebe5fa88c61ae3b8569897d9b09d54610bec73
This commit is contained in:
Dmitry Frank committed 2018-02-03 01:20:47 +02:00
1 parent f29457e967
commit aba60dadec
214 files changed
+179 -3304

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@
* license, as set out in <https://www.cesanta.com/license>.
*/
#include "mongoose/src/internal.h"
#include "mongoose/src/coap.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_coap.h"
#if MG_ENABLE_COAP
View File
File renamed without changes.
View File
File renamed without changes.
+2 -2
View File
@@ -5,8 +5,8 @@
#if MG_ENABLE_DNS
#include "mongoose/src/internal.h"
#include "mongoose/src/dns.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_dns.h"
static int mg_dns_tid = 0xa0;
+1 -1
View File
@@ -10,7 +10,7 @@
#ifndef CS_MONGOOSE_SRC_DNS_H_
#define CS_MONGOOSE_SRC_DNS_H_
#include "mongoose/src/net.h"
#include "mongoose/src/mg_net.h"
#ifdef __cplusplus
extern "C" {
+1 -1
View File
@@ -5,7 +5,7 @@
#if MG_ENABLE_DNS_SERVER
#include "mongoose/src/internal.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/dns-server.h"
struct mg_dns_reply mg_dns_create_reply(struct mbuf *io,
+1 -1
View File
@@ -14,7 +14,7 @@
#if MG_ENABLE_DNS_SERVER
#include "mongoose/src/dns.h"
#include "mongoose/src/mg_dns.h"
#ifdef __cplusplus
extern "C" {
File renamed without changes.
+2 -2
View File
@@ -6,8 +6,8 @@
#if MG_ENABLE_HTTP
#include "common/md5.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/util.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_util.h"
static const char *mg_version_header = "Mongoose/" MG_VERSION;
+1 -1
View File
@@ -12,7 +12,7 @@
#if MG_ENABLE_HTTP
#include "mongoose/src/net.h"
#include "mongoose/src/mg_net.h"
#include "common/mg_str.h"
#ifdef __cplusplus
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2 -2
View File
@@ -31,8 +31,8 @@
#endif
#include "common/cs_dbg.h"
#include "mongoose/src/http.h"
#include "mongoose/src/net.h"
#include "mongoose/src/mg_http.h"
#include "mongoose/src/mg_net.h"
#define MG_CTL_MSG_MESSAGE_SIZE 8192
+41 -41
View File
@@ -1,6 +1,6 @@
COMMON = ../../common
HEADERS = common.h \
HEADERS = mg_common.h \
$(COMMON)/platform.h \
$(COMMON)/platforms/platform_windows.h \
$(COMMON)/platforms/platform_unix.h \
@@ -28,23 +28,23 @@ HEADERS = common.h \
$(COMMON)/cs_base64.h \
$(COMMON)/str_util.h \
$(COMMON)/queue.h \
features.h \
net_if.h \
ssl_if.h \
net.h \
uri.h \
util.h \
http.h \
http_server.h \
http_client.h \
mqtt.h \
mqtt_server.h \
dns.h \
dns_server.h \
resolv.h \
coap.h \
sntp.h \
socks.h
mg_features.h \
mg_net_if.h \
mg_ssl_if.h \
mg_net.h \
mg_uri.h \
mg_util.h \
mg_http.h \
mg_http_server.h \
mg_http_client.h \
mg_mqtt.h \
mg_mqtt_server.h \
mg_dns.h \
mg_dns_server.h \
mg_resolv.h \
mg_coap.h \
mg_sntp.h \
mg_socks.h
SOURCES = $(COMMON)/mg_mem.h \
$(COMMON)/cs_base64.c \
@@ -59,29 +59,29 @@ SOURCES = $(COMMON)/mg_mem.h \
$(COMMON)/mbuf.c \
$(COMMON)/mg_str.c \
$(COMMON)/str_util.c \
net.c \
net_if_socket.h \
net_if_socks.h \
net_if.c \
net_if_socket.c \
net_if_socks.c \
ssl_if_openssl.c \
ssl_if_mbedtls.c \
uri.c \
http.c \
http_cgi.c \
http_ssi.c \
http_webdav.c \
http_websocket.c \
util.c \
mqtt.c \
mqtt_server.c \
dns.c \
dns_server.c \
resolv.c \
coap.c \
sntp.c \
socks.c \
mg_net.c \
mg_net_if_socket.h \
mg_net_if_socks.h \
mg_net_if.c \
mg_net_if_socket.c \
mg_net_if_socks.c \
mg_ssl_if_openssl.c \
mg_ssl_if_mbedtls.c \
mg_uri.c \
mg_http.c \
mg_http_cgi.c \
mg_http_ssi.c \
mg_http_webdav.c \
mg_http_websocket.c \
mg_util.c \
mg_mqtt.c \
mg_mqtt_server.c \
mg_dns.c \
mg_dns_server.c \
mg_resolv.c \
mg_coap.c \
mg_sntp.c \
mg_socks.c \
$(COMMON)/platforms/cc3200/cc3200_libc.c \
$(COMMON)/platforms/msp432/msp432_libc.c \
$(COMMON)/platforms/nrf5/nrf5_libc.c \
+2 -2
View File
@@ -7,8 +7,8 @@
#include <string.h>
#include "mongoose/src/internal.h"
#include "mongoose/src/mqtt.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_mqtt.h"
static uint16_t getu16(const char *p) {
const uint8_t *up = (const uint8_t *) p;
+1 -1
View File
@@ -22,7 +22,7 @@
#ifndef CS_MONGOOSE_SRC_MQTT_H_
#define CS_MONGOOSE_SRC_MQTT_H_
#include "mongoose/src/net.h"
#include "mongoose/src/mg_net.h"
struct mg_mqtt_message {
int cmd;
File renamed without changes.
+2 -2
View File
@@ -3,8 +3,8 @@
* All rights reserved
*/
#include "mongoose/src/internal.h"
#include "mongoose/src/mqtt-server.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_mqtt_server.h"
#if MG_ENABLE_MQTT_BROKER
+1 -1
View File
@@ -25,7 +25,7 @@
#if MG_ENABLE_MQTT_BROKER
#include "common/queue.h"
#include "mongoose/src/mqtt.h"
#include "mongoose/src/mg_mqtt.h"
#ifdef __cplusplus
extern "C" {
+4 -4
View File
@@ -17,10 +17,10 @@
*/
#include "common/cs_time.h"
#include "mongoose/src/dns.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/resolv.h"
#include "mongoose/src/util.h"
#include "mongoose/src/mg_dns.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_resolv.h"
#include "mongoose/src/mg_util.h"
#define MG_MAX_HOST_LEN 200
+2 -2
View File
@@ -28,8 +28,8 @@
#ifndef CS_MONGOOSE_SRC_NET_H_
#define CS_MONGOOSE_SRC_NET_H_
#include "mongoose/src/common.h"
#include "mongoose/src/net_if.h"
#include "mongoose/src/mg_common.h"
#include "mongoose/src/mg_net_if.h"
#include "common/mbuf.h"
#ifndef MG_VPRINTF_BUFFER_SIZE
+3 -3
View File
@@ -1,6 +1,6 @@
#include "mongoose/src/net_if.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/net_if_socket.h"
#include "mongoose/src/mg_net_if.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_net_if_socket.h"
extern const struct mg_iface_vtable mg_default_iface_vtable;
View File
File renamed without changes.
@@ -5,9 +5,9 @@
#if MG_ENABLE_NET_IF_SOCKET
#include "mongoose/src/net_if_socket.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/util.h"
#include "mongoose/src/mg_net_if_socket.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_util.h"
#define MG_TCP_RECV_BUFFER_SIZE 1024
#define MG_UDP_RECV_BUFFER_SIZE 1500
@@ -6,7 +6,7 @@
#ifndef CS_MONGOOSE_SRC_NET_IF_SOCKET_H_
#define CS_MONGOOSE_SRC_NET_IF_SOCKET_H_
#include "mongoose/src/net_if.h"
#include "mongoose/src/mg_net_if.h"
#ifdef __cplusplus
extern "C" {
File renamed without changes.
+1 -1
View File
@@ -7,7 +7,7 @@
#define CS_MONGOOSE_SRC_NET_IF_SOCKS_H_
#if MG_ENABLE_SOCKS
#include "mongoose/src/net_if.h"
#include "mongoose/src/mg_net_if.h"
#ifdef __cplusplus
extern "C" {
+2 -2
View File
@@ -5,8 +5,8 @@
#if MG_ENABLE_ASYNC_RESOLVER
#include "mongoose/src/internal.h"
#include "mongoose/src/resolv.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_resolv.h"
#ifndef MG_DEFAULT_NAMESERVER
#define MG_DEFAULT_NAMESERVER "8.8.8.8"
+1 -1
View File
@@ -10,7 +10,7 @@
#ifndef CS_MONGOOSE_SRC_RESOLV_H_
#define CS_MONGOOSE_SRC_RESOLV_H_
#include "mongoose/src/dns.h"
#include "mongoose/src/mg_dns.h"
#ifdef __cplusplus
extern "C" {
+3 -3
View File
@@ -3,9 +3,9 @@
* All rights reserved
*/
#include "mongoose/src/internal.h"
#include "mongoose/src/sntp.h"
#include "mongoose/src/util.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_sntp.h"
#include "mongoose/src/mg_util.h"
#if MG_ENABLE_SNTP
View File
File renamed without changes.
+2 -2
View File
@@ -5,8 +5,8 @@
#if MG_ENABLE_SOCKS
#include "mongoose/src/socks.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/mg_socks.h"
#include "mongoose/src/mg_internal.h"
/*
* https://www.ietf.org/rfc/rfc1928.txt paragraph 3, handle client handshake
View File
File renamed without changes.
View File
File renamed without changes.
File renamed without changes.
File renamed without changes.
+2 -2
View File
@@ -3,8 +3,8 @@
* All rights reserved
*/
#include "mongoose/src/internal.h"
#include "mongoose/src/uri.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_uri.h"
/*
* scan string until encountering one of `seps`, keeping track of component
+1 -1
View File
@@ -10,7 +10,7 @@
#ifndef CS_MONGOOSE_SRC_URI_H_
#define CS_MONGOOSE_SRC_URI_H_
#include "mongoose/src/net.h"
#include "mongoose/src/mg_net.h"
#ifdef __cplusplus
extern "C" {
+2 -2
View File
@@ -4,8 +4,8 @@
*/
#include "common/cs_base64.h"
#include "mongoose/src/internal.h"
#include "mongoose/src/util.h"
#include "mongoose/src/mg_internal.h"
#include "mongoose/src/mg_util.h"
/* For platforms with limited libc */
#ifndef MAX
+2 -2
View File
@@ -12,8 +12,8 @@
#include <stdio.h>
#include "mongoose/src/common.h"
#include "mongoose/src/net_if.h"
#include "mongoose/src/mg_common.h"
#include "mongoose/src/mg_net_if.h"
#ifdef __cplusplus
extern "C" {