Python: add binding for olm_remove_one_time_keys
Signed-off-by: Wilfried Klaebe <w+gitstuff@chaos.in-kiel.de>
This commit is contained in:
parent
4065c8e11a
commit
62b576b903
1 changed files with 10 additions and 0 deletions
|
@ -53,6 +53,10 @@ account_function(
|
||||||
c_size_t,
|
c_size_t,
|
||||||
c_void_p, c_size_t
|
c_void_p, c_size_t
|
||||||
)
|
)
|
||||||
|
account_function(
|
||||||
|
lib.olm_remove_one_time_keys,
|
||||||
|
c_void_p # Session
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class Account(object):
|
class Account(object):
|
||||||
|
@ -122,5 +126,11 @@ class Account(object):
|
||||||
self.ptr, count, random_buffer, random_length
|
self.ptr, count, random_buffer, random_length
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def remove_one_time_keys(self, session):
|
||||||
|
lib.olm_remove_one_time_keys(
|
||||||
|
self.ptr,
|
||||||
|
session.ptr
|
||||||
|
)
|
||||||
|
|
||||||
def clear(self):
|
def clear(self):
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in a new issue