Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matrix-org
Olm
Commits
137aa31e
Commit
137aa31e
authored
Jul 15, 2015
by
Mark Haines
Browse files
olm_account_last_error and olm_clear_account should take an Account not a Session
parent
c965a0e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/olm/olm.hh
View file @
137aa31e
...
...
@@ -52,7 +52,7 @@ size_t olm_error();
/** A null terminated string describing the most recent error to happen to an
* account */
const
char
*
olm_account_last_error
(
Olm
Session
*
account
Olm
Account
*
account
);
/** A null terminated string describing the most recent error to happen to a
...
...
@@ -63,7 +63,7 @@ const char * olm_session_last_error(
/** Clears the memory used to back this account */
size_t
olm_clear_account
(
Olm
Session
*
account
Olm
Account
*
account
);
/** Clears the memory used to back this session */
...
...
src/olm.cpp
View file @
137aa31e
...
...
@@ -178,7 +178,7 @@ size_t olm_error() {
const
char
*
olm_account_last_error
(
Olm
Session
*
account
Olm
Account
*
account
)
{
unsigned
error
=
unsigned
(
from_c
(
account
)
->
last_error
);
if
(
error
<
sizeof
(
ERRORS
))
{
...
...
@@ -228,7 +228,7 @@ OlmSession * olm_session(
size_t
olm_clear_account
(
Olm
Session
*
account
Olm
Account
*
account
)
{
/* Clear the memory backing the account */
olm
::
unset
(
account
,
sizeof
(
olm
::
Account
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment