Restructure code
[vlp.git] / src / kernel / kernel.h
index 18478a943966538c0ed110189b07694e16647d9d..7213b461a9a54d996923b19cfe45a4785b588cfb 100644 (file)
@@ -55,6 +55,9 @@
 #define NORM_COL       2
 
 
+namespace loglan {
+namespace vlp {
+
 /**
  * Interpreter slot
  */
@@ -83,10 +86,14 @@ public:
 class ConnectEntry {
 public:
        char addr[256];
-       
+
        ConnectEntry(char *s) {
                strcpy(addr, s);
        };
+
+       ConnectEntry(const char *s) {
+               strcpy(addr, s);
+       };
 };
 
 
@@ -103,7 +110,7 @@ public:
 
        QKernel(int argc, char **argv);
 
-       void WriteMessage(char* msg);
+       void WriteMessage(const char * msg);
 
 public slots:
        void NetMessage();
@@ -183,4 +190,7 @@ private slots:
        void on_actionUnlock_console_triggered();
 };
 
+}
+}
+
 #endif /* VLP_KERNEL_H */