Delta Chat Core C-API
mrchatlist-private.h
1 /*******************************************************************************
2  *
3  * Delta Chat Core
4  * Copyright (C) 2017 Björn Petersen
5  * Contact: r10s@b44t.com, http://b44t.com
6  *
7  * This program is free software: you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License as published by the Free Software
9  * Foundation, either version 3 of the License, or (at your option) any later
10  * version.
11  *
12  * This program is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15  * details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program. If not, see http://www.gnu.org/licenses/ .
19  *
20  ******************************************************************************/
21 
22 
23 #ifndef __MRCHATLIST_PRIVATE_H__
24 #define __MRCHATLIST_PRIVATE_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
31 struct _mrchatlist
32 {
34  uint32_t m_magic;
35  mrmailbox_t* m_mailbox;
36  #define MR_CHATLIST_IDS_PER_RESULT 2
37  size_t m_cnt;
38  mrarray_t* m_chatNlastmsg_ids;
39 };
40 
41 
42 int mrchatlist_load_from_db__ (mrchatlist_t*, int listflags, const char* query);
43 
44 
45 #ifdef __cplusplus
46 } /* /extern "C" */
47 #endif
48 #endif /* __MRCHATLIST_PRIVATE_H__ */
An object containing a simple array.
An object representing a single chatlist in memory.
An object representing a single mailbox.