git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed "alpha" from version.
[stg.git]
/
stglibs
/
srvconf.lib
/
parsers
/
auth_by.cpp
diff --git
a/stglibs/srvconf.lib/parsers/auth_by.cpp
b/stglibs/srvconf.lib/parsers/auth_by.cpp
index 99e3c0214c522e09d3a36806ab958823f5145168..143eee261dae838b82740716eead98999ffa5c0f 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/auth_by.cpp
+++ b/
stglibs/srvconf.lib/parsers/auth_by.cpp
@@
-20,15
+20,14
@@
#include "auth_by.h"
#include "auth_by.h"
-#include <cstddef>
-
#include <strings.h> // strcasecmp
using namespace STG;
#include <strings.h> // strcasecmp
using namespace STG;
-AUTH_BY::PARSER::PARSER()
- : callback(NULL),
- data(NULL),
+AUTH_BY::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
+ : callback(f),
+ data(d),
+ encoding(e),
depth(0),
parsingAnswer(false)
{
depth(0),
parsingAnswer(false)
{
@@
-79,9
+78,3
@@
if (depth == 0)
error.clear();
}
}
error.clear();
}
}
-//-----------------------------------------------------------------------------
-void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}