4
* This file is a part of PCManFM package: definitions for modules.
5
* It can be used with LibFM and PCManFM version 1.2.0 or newer.
7
* Copyright 2014 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
9
* This program is free software; you can redistribute it and/or modify
10
* it under the terms of the GNU General Public License as published by
11
* the Free Software Foundation; either version 2 of the License, or
12
* (at your option) any later version.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25
#ifndef __PCMANFM_MODULES_H__
26
#define __PCMANFM_MODULES_H__
32
#define FM_MODULE_tab_page_status_VERSION 1
35
* FmTabPageStatusInit:
36
* @init: (allow-none): once-done initialization callback
37
* @finalize: (allow-none): once-done finalization callback
38
* @sel_message: callback to make selection-specific statusbar addition
40
* The structure describing callbacks for FmTabPage statusbar update
41
* extension specific for some file type - tab_page_status plugins.
43
* The @sel_message callback is called when the page statusbar for the
44
* selected files is about to be updated so module may add some specific
45
* message to the end of the status text. Returned text should either be
48
* The @init callback is done once on module loading. It it exists then
49
* it should return %TRUE after successful initialization.
51
* The @finalize is done on the file manager termination. It should free
52
* any resources allocated in @init callback.
54
* The key for module of this type is ignored in this implementation.
57
gboolean (*init)(void);
58
void (*finalize)(void);
59
char * (*sel_message)(FmFileInfoList *files, gint n_files);
60
} FmTabPageStatusInit;
62
extern FmTabPageStatusInit fm_module_init_tab_page_status;
66
#endif /* __PCMANFM_MODULES_H__ */