-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of otrv4/libotr-ng#163 - sort out prekey messages
- Loading branch information
Showing
9 changed files
with
129 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Off-the-Record Messaging plugin for pidgin | ||
* Copyright (C) 2004-2018 Ian Goldberg, Rob Smits, | ||
* Chris Alexander, Willy Lew, | ||
* Nikita Borisov | ||
* <[email protected]> | ||
* The pidgin-otrng contributors | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of version 2 of the GNU General Public License as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#include <libotr-ng/messaging.h> | ||
|
||
#include "persistance.h" | ||
#include "pidgin-helpers.h" | ||
#include "prekeys.h" | ||
|
||
extern otrng_global_state_s *otrng_state; | ||
|
||
static void load_prekey_messages(otrng_client_s *client) { | ||
persistance_read_prekey_messages(otrng_state); | ||
} | ||
|
||
static void store_prekey_messages(otrng_client_s *client) { | ||
persistance_write_prekey_messages(otrng_state); | ||
} | ||
|
||
void prekeys_set_callbacks(otrng_client_callbacks_s *callbacks) { | ||
callbacks->load_prekey_messages = load_prekey_messages; | ||
callbacks->store_prekey_messages = store_prekey_messages; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Off-the-Record Messaging plugin for pidgin | ||
* Copyright (C) 2004-2018 Ian Goldberg, Rob Smits, | ||
* Chris Alexander, Willy Lew, | ||
* Nikita Borisov | ||
* <[email protected]> | ||
* The pidgin-otrng contributors | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of version 2 of the GNU General Public License as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#ifndef __OTRNG_PREKEYS_H__ | ||
#define __OTRNG_PREKEYS_H__ | ||
|
||
#include <account.h> | ||
|
||
#include <libotr-ng/client.h> | ||
#include <libotr-ng/client_callbacks.h> | ||
|
||
void prekeys_set_callbacks(otrng_client_callbacks_s *callbacks); | ||
|
||
#endif |