mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-13 23:58:59 -05:00
updated to trunk of openpgp-sdk
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5078 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eb448cbaaf
commit
c27f695a37
39 changed files with 1956 additions and 747 deletions
|
|
@ -208,4 +208,26 @@ void ops_free_errors(ops_error_t *errstack)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
\ingroup InternalAPI
|
||||
\brief Moves errors from a create info structure to another error stack.
|
||||
|
||||
The error stack wil be moved from the source structure to the destination
|
||||
stack. If the destination already has errors defined, the errors will
|
||||
be appended.
|
||||
*/
|
||||
void ops_move_errors(ops_create_info_t *source, ops_error_t **dest)
|
||||
{
|
||||
if (*dest == NULL)
|
||||
*dest = source->errors;
|
||||
else
|
||||
{
|
||||
ops_error_t *last = *dest;
|
||||
while(last->next != NULL)
|
||||
last = last->next;
|
||||
last->next = source->errors;
|
||||
}
|
||||
source->errors = NULL;
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue