Add bind address and port to cmdline arguments. Add log of address and port.
[umurmur.git] / src / messages.h
index 4899a085d0d5756882e8ce4a08394d288252d848..9fde9f9ab2cf739551147723866a4f6611e502ae 100644 (file)
@@ -41,9 +41,6 @@
 #define PROTVER_PATCH 0
 #define PROTOCOL_VERSION ((PROTVER_MAJOR << 16) | (PROTVER_MINOR << 8) | (PROTVER_PATCH))
 
-#define MAX_TEXT 512
-
-
 #define PERM_NONE 0x0
 #define PERM_WRITE 0x1
 #define PERM_TRAVERSE 0x2
@@ -64,7 +61,7 @@
 #define PERM_CACHED 0x8000000
 #define PERM_ALL 0xf07ff
 
-#define PERM_DEFAULT (PERM_TRAVERSE | PERM_ENTER | PERM_SPEAK | PERM_WHISPER | PERM_TEXTMESSAGE)
+#define PERM_DEFAULT (PERM_TRAVERSE | PERM_ENTER | PERM_SPEAK | PERM_WHISPER | PERM_TEXTMESSAGE | PERM_MAKETEMPCHANNEL)
 
 typedef enum {
        Version,
@@ -142,6 +139,7 @@ message_t *Msg_networkToMessage(uint8_t *data, int size);
 void Msg_free(message_t *msg);
 void Msg_inc_ref(message_t *msg);
 
+message_t *Msg_CreateVoiceMsg(uint8_t *data, int size);
 message_t *Msg_create(messageType_t messageType);
 
 #endif