(svn r23590) -Codechange: make the string validation settings better expandable

This commit is contained in:
rubidium
2011-12-18 18:37:54 +00:00
parent 6ae8cac432
commit fefe22b4aa
8 changed files with 24 additions and 14 deletions

View File

@@ -16,6 +16,7 @@
#include "config.h"
#include "core.h"
#include "../../string_type.h"
#ifdef ENABLE_NETWORK
@@ -83,7 +84,7 @@ public:
uint16 Recv_uint16();
uint32 Recv_uint32();
uint64 Recv_uint64();
void Recv_string(char *buffer, size_t size, bool allow_newlines = false);
void Recv_string(char *buffer, size_t size, StringValidationSettings settings = SVS_REPLACE_WITH_QUESTION_MARK);
};
#endif /* ENABLE_NETWORK */