From fd641e350fef09e4ffdaafece3845a3a195e0986 Mon Sep 17 00:00:00 2001 From: Hussein Kasem Date: Wed, 18 May 2016 22:28:54 +0200 Subject: [PATCH] added pasivemode and blacklist calls, looks like not working yet!!!. --- src/pEp.yml2 | 14 +++++++++++++- src/types_c.ysl2 | 1 + src/types_java.ysl2 | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/pEp.yml2 b/src/pEp.yml2 index 09d3096..63eff8f 100644 --- a/src/pEp.yml2 +++ b/src/pEp.yml2 @@ -100,13 +100,25 @@ namespace pEp { returns Color color ); - basic string trustwords(identity ident); + method blacklist_is_listed( + in string fpr, + returns bool listed + ); + + method blacklist_retrive( + returns stringlist blacklist + ); + basic string trustwords(identity ident); basic identity myself(identity ident); basic identity updateIdentity(identity ident); basic void keyCompromized(identity ident); basic void keyResetTrust(identity ident); basic void trustPersonalKey(identity ident); basic void importKey(string key); + basic void blacklist_add(string fpr); + basic void blacklist_delete(string fpr); + basic void config_passive_mode(bool enable) + }; struct message { diff --git a/src/types_c.ysl2 b/src/types_c.ysl2 index 2aede77..3000339 100644 --- a/src/types_c.ysl2 +++ b/src/types_c.ysl2 @@ -11,6 +11,7 @@ function "toC" { when "$type='bloblist'" > bloblist_t when "$type='stringpairlist'" > stringpair_list_t when "$type='direction'" > PEP_msg_direction + when "$type='bool'" > bool otherwise value "$type"; } diff --git a/src/types_java.ysl2 b/src/types_java.ysl2 index b6e20b4..8a531c6 100644 --- a/src/types_java.ysl2 +++ b/src/types_java.ysl2 @@ -13,6 +13,7 @@ function "toJava" { when "$type='stringpairlist'" > ArrayList> when "$type='message'" > Message when "$type='void'" > void + when "$type='bool'" > boolean otherwise call "CamelCase" with "text", "$type"; } @@ -33,6 +34,7 @@ function "toJavaDeclare" { when "$type='stringpairlist'" | # cannot declare "stringpairlist" when "$type='message'" > Message when "$type='Color'" > Color + when "$type='bool'" > boolean otherwise error | # cannot declare "«$type»" }