Browse Source

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

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

14
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 {

1
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";
}

2
src/types_java.ysl2

@ -13,6 +13,7 @@ function "toJava" {
when "$type='stringpairlist'" > ArrayList<Pair<String, String>>
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»"
}

Loading…
Cancel
Save