Python plugin: Make it possible to get folder tree from a Mailbox
[claws.git] / src / plugins / python / python-hooks.h
1 /*
2  * Copyright (c) 2008-2009  Christian Hammond
3  * Copyright (c) 2008-2009  David Trowbridge
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a
6  * copy of this software and associated documentation files (the "Software"),
7  * to deal in the Software without restriction, including without limitation
8  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
9  * and/or sell copies of the Software, and to permit persons to whom the
10  * Software is furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included
13  * in all copies or substantial portions of the Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21  * THE SOFTWARE.
22  */
23 #ifndef _GTKPARASITE_PYTHON_MODULE_H_
24 #define _GTKPARASITE_PYTHON_MODULE_H_
25
26 #include <glib.h>
27
28
29 typedef void (*ParasitePythonLogger)(const char *text, gpointer user_data);
30
31 int parasite_python_init(char **error);
32 void parasite_python_run(const char *command,
33                          ParasitePythonLogger stdout_logger,
34                          ParasitePythonLogger stderr_logger,
35                          gpointer user_data);
36 gboolean parasite_python_is_enabled(void);
37
38 #endif // _GTKPARASITE_PYTHON_MODULE_H_