Browse Source

Fixed blacklist_retreive

JNI-44
Edouard Tisserant 9 years ago
parent
commit
3478b204ac
  1. 6
      src/gen_cpp_Engine.ysl2
  2. 6
      src/pEp.yml2
  3. 2
      src/types_java.ysl2

6
src/gen_cpp_Engine.ysl2

@ -11,6 +11,7 @@ tstylesheet {
|| ||
#include <assert.h> #include <assert.h>
#include <pEp/message_api.h> #include <pEp/message_api.h>
#include <pEp/blacklist.h>
#include "org_pEp_jniadapter_«@name».h" #include "org_pEp_jniadapter_«@name».h"
#include "throw_pEp_exception.hh" #include "throw_pEp_exception.hh"
#include "jniutils.hh" #include "jniutils.hh"
@ -83,6 +84,11 @@ tstylesheet {
with "sig", "'(J)V'"; with "sig", "'(J)V'";
} }
when "$rettype = 'stringlist'" apply "parm[returns|creates]", mode=return{
with "name", "'result'";
with "retname", "$retname";
}
otherwise error | # not implemented: return type "«$rettype»" otherwise error | # not implemented: return type "«$rettype»"
} }
} }

6
src/pEp.yml2

@ -100,9 +100,9 @@ namespace pEp {
returns Color color returns Color color
); );
// method blacklist_retrive( method blacklist_retrieve(
// creates stringlist blacklist returns stringlist blacklist
// ); );
basic string trustwords(identity ident); basic string trustwords(identity ident);
basic identity myself(identity ident); basic identity myself(identity ident);

2
src/types_java.ysl2

@ -23,7 +23,7 @@ function "toJavaDeclare" {
param "type"; param "type";
choose { choose {
when "$type='stringlist'" error | # cannot declare "stringlist" when "$type='stringlist'" > Vector<String>
when "$type='string'" error | # cannot declare "string" when "$type='string'" error | # cannot declare "string"
when "$type='message'" > Message when "$type='message'" > Message
when "$type='identity'" > _Identity when "$type='identity'" > _Identity

Loading…
Cancel
Save