~ubuntu-branches/ubuntu/utopic/pcmanfm/utopic-proposed

« back to all changes in this revision

Viewing changes to src/pcmanfm-modules.h

  • Committer: Package Import Robot
  • Author(s): Andriy Grytsenko
  • Date: 2014-02-25 04:07:51 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140225040751-oo835klpwl58mcy4
Tags: 1.2.0-1
* Bump Standards-Version to actual one (fixes lintian warning, see QA page).
* Adding files NEWS to pcmanfm documentation.
* Bump Standards-Version to 3.9.5.
* Updating watch file to support XZ tarball format and non-numeric versions.
* Merging upstream version 1.2.0. (Closes: #656298, #731549)
* Use single docs directory for all packages.
* Raising version of libfm required to >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      pcmanfm-modules.h
 
3
 *
 
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.
 
6
 *
 
7
 *      Copyright 2014 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
 
8
 *
 
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.
 
13
 *
 
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.
 
18
 *
 
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,
 
22
 *      MA 02110-1301, USA.
 
23
 */
 
24
 
 
25
#ifndef __PCMANFM_MODULES_H__
 
26
#define __PCMANFM_MODULES_H__
 
27
 
 
28
#include <libfm/fm.h>
 
29
 
 
30
G_BEGIN_DECLS
 
31
 
 
32
#define FM_MODULE_tab_page_status_VERSION 1
 
33
 
 
34
/**
 
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
 
39
 *
 
40
 * The structure describing callbacks for FmTabPage statusbar update
 
41
 * extension specific for some file type - tab_page_status plugins.
 
42
 *
 
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
 
46
 * allocated or %NULL.
 
47
 *
 
48
 * The @init callback is done once on module loading. It it exists then
 
49
 * it should return %TRUE after successful initialization.
 
50
 *
 
51
 * The @finalize is done on the file manager termination. It should free
 
52
 * any resources allocated in @init callback.
 
53
 *
 
54
 * The key for module of this type is ignored in this implementation.
 
55
 */
 
56
typedef struct {
 
57
    gboolean (*init)(void);
 
58
    void (*finalize)(void);
 
59
    char * (*sel_message)(FmFileInfoList *files, gint n_files);
 
60
} FmTabPageStatusInit;
 
61
 
 
62
extern FmTabPageStatusInit fm_module_init_tab_page_status;
 
63
 
 
64
G_END_DECLS
 
65
 
 
66
#endif /* __PCMANFM_MODULES_H__ */