]> rtime.felk.cvut.cz Git - coffee/mt-apps.git/blobdiff - mt_server.h
mt_server: Use "%s" format string in syslog()
[coffee/mt-apps.git] / mt_server.h
index aecab1723a9ec3f623b19e88ee9a6a363af2d65b..5beb9dd8b1da209a0d1d5b5c2f54bfa3c25263a5 100644 (file)
@@ -9,13 +9,16 @@
 #define MT_PROTOCOL_RX_BUFFER_SIZE 128
 #define INPUT_LINE_LENGTH          MT_PROTOCOL_RX_BUFFER_SIZE
 
+#if defined(SIM)
+#define HTTP_PORT       8080                    // listen here
+#define HTTP_ORIGIN     "html" // where the html files are
+#else
 #define HTTP_PORT       80                    // listen here
-#define HTTP_MOUNTPOINT "/"                   // mountpoint URL
 #define HTTP_ORIGIN     "/usr/share/mtserver" // where the html files are
+#endif
+#define HTTP_MOUNTPOINT "/"                   // mountpoint URL
 #define HTTP_DEFAULT    "index.html"          // default filename
 
-#define JSON_EMPTY "{\"type\":\"empty\"}" // default message
-
 typedef struct node {
     char *line;
     struct node *next;