Delta Chat Core C-API
mrsimplify.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 __MRSIMPLIFY_H__
24 #define __MRSIMPLIFY_H__
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 
30 /*** library-private **********************************************************/
31 
32 typedef struct mrsimplify_t
33 {
34  int m_is_forwarded;
35 } mrsimplify_t;
36 
37 
38 mrsimplify_t* mrsimplify_new ();
39 void mrsimplify_unref (mrsimplify_t*);
40 
41 /* Simplify and normalise text: Remove quotes, signatures, unnecessary
42 lineends etc.
43 The data returned from Simplify() must be free()'d when no longer used, private */
44 char* mrsimplify_simplify (mrsimplify_t*, const char* txt_unterminated, int txt_bytes, int is_html);
45 
46 
47 #ifdef __cplusplus
48 } /* /extern "C" */
49 #endif
50 #endif /* __MRSIMPLIFY_H__ */
51