Browse Source

added pasivemode and blacklist calls, looks like not working yet!!!.

JNI-44
Hussein Kasem 9 years ago
parent
commit
fd641e350f
  1. 12
      src/pEp.yml2
  2. 1
      src/types_c.ysl2
  3. 2
      src/types_java.ysl2

12
src/pEp.yml2

@ -100,6 +100,14 @@ namespace pEp {
returns Color color returns Color color
); );
method blacklist_is_listed(
in string fpr,
returns bool listed
);
method blacklist_retrive(
returns stringlist blacklist
);
basic string trustwords(identity ident); basic string trustwords(identity ident);
basic identity myself(identity ident); basic identity myself(identity ident);
basic identity updateIdentity(identity ident); basic identity updateIdentity(identity ident);
@ -107,6 +115,10 @@ namespace pEp {
basic void keyResetTrust(identity ident); basic void keyResetTrust(identity ident);
basic void trustPersonalKey(identity ident); basic void trustPersonalKey(identity ident);
basic void importKey(string key); 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 { struct message {

1
src/types_c.ysl2

@ -11,6 +11,7 @@ function "toC" {
when "$type='bloblist'" > bloblist_t when "$type='bloblist'" > bloblist_t
when "$type='stringpairlist'" > stringpair_list_t when "$type='stringpairlist'" > stringpair_list_t
when "$type='direction'" > PEP_msg_direction when "$type='direction'" > PEP_msg_direction
when "$type='bool'" > bool
otherwise value "$type"; otherwise value "$type";
} }

2
src/types_java.ysl2

@ -13,6 +13,7 @@ function "toJava" {
when "$type='stringpairlist'" > ArrayList<Pair<String, String>> when "$type='stringpairlist'" > ArrayList<Pair<String, String>>
when "$type='message'" > Message when "$type='message'" > Message
when "$type='void'" > void when "$type='void'" > void
when "$type='bool'" > boolean
otherwise call "CamelCase" with "text", "$type"; otherwise call "CamelCase" with "text", "$type";
} }
@ -33,6 +34,7 @@ function "toJavaDeclare" {
when "$type='stringpairlist'" | # cannot declare "stringpairlist" when "$type='stringpairlist'" | # cannot declare "stringpairlist"
when "$type='message'" > Message when "$type='message'" > Message
when "$type='Color'" > Color when "$type='Color'" > Color
when "$type='bool'" > boolean
otherwise error | # cannot declare "«$type»" otherwise error | # cannot declare "«$type»"
} }

Loading…
Cancel
Save