pEpEngine changed its API: get_identity() got another parameter. So I must change it in my function list, too

refactor-result-recursion
Lars Rohwedder 7 years ago
parent 111e037bf5
commit cae0a37589

@ -171,6 +171,11 @@ function sprintf(format)
function getSessions(with_radio)
{
if(openSessions.length == 0)
{
return '<i>(no open sessions)</i>';
}
var content = '';
for(var i=0; i<openSessions.length; ++i)
{
@ -192,7 +197,7 @@ function createSession()
var url = document.getElementById("server").value + 'createSession';
var request = {};
request.method = 'createSession';
request.params = ['ö𝄞ö'];
request.params = [':-)'];
request.id = ++call_ID;
request.jsonrpc = "2.0";
var x = $.post(url, JSON.stringify(request), null, "json")

@ -127,7 +127,7 @@ const FunctionMap functions = {
FP( "log_event", new Func<PEP_STATUS, In<PEP_SESSION>, In<const char*>, In<const char*>, In<const char*>, In<const char*>>( &log_event) ),
FP( "trustwords", new Func<PEP_STATUS, In<PEP_SESSION>, In<const char*>, In<const char*>, Out<char*>, Out<size_t>, In<int>>( &trustwords) ),
FP( "get_languagelist", new Func<PEP_STATUS, In<PEP_SESSION>, Out<char*>>( &get_languagelist) ),
FP( "get_identity", new Func<PEP_STATUS, In<PEP_SESSION>, In<const char*>, Out<pEp_identity*>>( &get_identity) ),
FP( "get_identity", new Func<PEP_STATUS, In<PEP_SESSION>, In<const char*>, In<const char*>, Out<pEp_identity*>>( &get_identity) ),
FP( "set_identity", new Func<PEP_STATUS, In<PEP_SESSION>, In<pEp_identity*>> ( &set_identity) ),
FP( "mark_as_comprimized", new Func<PEP_STATUS, In<PEP_SESSION>, In<const char*>> ( &mark_as_compromized) ),

Loading…
Cancel
Save