diff options
author | Richard van der Hoff <richard@matrix.org> | 2015-10-19 17:28:42 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2015-10-19 17:28:42 +0100 |
commit | 9b1f0aa4805f62355423522a07d04bb089829bfa (patch) | |
tree | 8f783d0512c31c77a35d74a4c1809062774ad924 /matrix-sync.h | |
parent | 257a42345d1b7b6780caaf77c06d7c28e9428b9d (diff) | |
download | purple-matrix-9b1f0aa4805f62355423522a07d04bb089829bfa.tar.gz |
Refactor a load of code
Move things around quite a lot, to make it a bit saner
Diffstat (limited to 'matrix-sync.h')
-rw-r--r-- | matrix-sync.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/matrix-sync.h b/matrix-sync.h new file mode 100644 index 0000000..21537ac --- /dev/null +++ b/matrix-sync.h @@ -0,0 +1,30 @@ +/** + * Handle the 'sync' loop + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * 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 02111-1301 USA + */ + +#ifndef MATRIX_SYNC_H_ +#define MATRIX_SYNC_H_ + +#include "libmatrix.h" + +/* + * Start the sync loop for a matrix account. This will repeatedly call + * '/sync' to get room information and new events. + */ +void matrix_sync_start_loop(MatrixAccount *ma); + +#endif /* MATRIX_SYNC_H_ */ |