JSON-119: add get_key_rating_for_user() and bump API version by a minor step

JSON-107-01
Roker 4 years ago
parent 106cc038cc
commit 09c53a7f73

@ -109,6 +109,7 @@ const FunctionMap functions = {
#endif
FP( "outgoing_message_rating", new Func<PEP_STATUS, In_Pep_Session, In<message*>, Out<PEP_rating>>( &outgoing_message_rating ) ),
FP( "identity_rating" , new Func<PEP_STATUS, In_Pep_Session, In<pEp_identity*>, Out<PEP_rating>>( &identity_rating) ),
FP( "get_key_rating_for_user", new Func<PEP_STATUS, In_Pep_Session, In<c_string>, In<c_string>, Out<PEP_rating>>( &get_key_rating_for_user) ),
FP( "pEp Engine Core API", new Separator),
// FP( "log_event", new Func<PEP_STATUS, In_Pep_Session, In<c_string>, In<c_string>, In<c_string>, In<c_string>>( &log_event) ),

@ -86,11 +86,13 @@ const ServerVersion& server_version()
#ifdef ENIGMAIL_2_0_COMPAT
//const ServerVersion sv(0,14,1); // JSON-97 : make MIME_decrypt_message() API-compatible with pre-JSON-92's changes for Enigmail 2.0
//static const ServerVersion sv(0,14,3); // JSON-110: add encrypt_message_and_add_priv_key()
static const ServerVersion sv(0,14,4); // JSON-117: add trust_own_key()
//static const ServerVersion sv(0,14,4); // JSON-117: add trust_own_key()
static const ServerVersion sv(0,14,5); // JSON-119: add get_key_rating_for_user()
#else
//const ServerVersion sv(0,15,2); // JSON-93 InLength<> is a compatible API change, because length parameter is still there but ignored. :-)
//static const ServerVersion sv(0,15,3); // JSON-110: add encrypt_message_and_add_priv_key()
static const ServerVersion sv(0,15,4); // JSON-117: add trust_own_key()
//static const ServerVersion sv(0,15,4); // JSON-117: add trust_own_key()
static const ServerVersion sv(0,15,5); // JSON-119: add get_key_rating_for_user()
#endif // ENIGMAIL_2_0_COMPAT
return sv;

Loading…
Cancel
Save