/usr/include/libfm-1.0/fm-nav-history.h is in libfm-dev 1.2.4-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*
* fm-nav-history.h
*
* Copyright 2009 PCMan <pcman.tw@gmail.com>
* Copyright 2012 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
*
* This file is a part of the Libfm library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __FM_NAV_HISTORY_H__
#define __FM_NAV_HISTORY_H__
#include <glib-object.h>
#include "fm-path.h"
G_BEGIN_DECLS
/* FIXME: Do we really need GObject for such a simple data structure? */
#define FM_NAV_HISTORY_TYPE (fm_nav_history_get_type())
#define FM_NAV_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
FM_NAV_HISTORY_TYPE, FmNavHistory))
#define FM_NAV_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
FM_NAV_HISTORY_TYPE, FmNavHistoryClass))
#define FM_IS_NAV_HISTORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
FM_NAV_HISTORY_TYPE))
#define FM_IS_NAV_HISTORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
FM_NAV_HISTORY_TYPE))
typedef struct _FmNavHistory FmNavHistory;
typedef struct _FmNavHistoryItem FmNavHistoryItem;
typedef struct _FmNavHistoryClass FmNavHistoryClass;
/**
* FmNavHistoryItem
* @path: active path to folder
* @scroll_pos: how much folder was scrolled in view
*/
struct _FmNavHistoryItem
{
FmPath* path;
int scroll_pos;
/*< private >*/
int _reserved1;
gpointer _reserved2;
};
GType fm_nav_history_get_type (void);
FmNavHistory* fm_nav_history_new (void);
#define FM_NAV_HISTORY_DEFAULT_SIZE 10
#ifndef FM_DISABLE_DEPRECATED
/* The returned GList belongs to FmNavHistory and shouldn't be freed. */
const GList* fm_nav_history_list(FmNavHistory* nh);
const FmNavHistoryItem* fm_nav_history_get_cur(FmNavHistory* nh);
const GList* fm_nav_history_get_cur_link(FmNavHistory* nh);
void fm_nav_history_back(FmNavHistory* nh, int old_scroll_pos);
gboolean fm_nav_history_can_forward(FmNavHistory* nh);
void fm_nav_history_forward(FmNavHistory* nh, int old_scroll_pos);
void fm_nav_history_jump(FmNavHistory* nh, GList* l, int old_scroll_pos);
#endif
guint fm_nav_history_get_cur_index(FmNavHistory* nh);
FmPath* fm_nav_history_get_nth_path(FmNavHistory* nh, guint n);
FmPath* fm_nav_history_go_to(FmNavHistory* nh, guint n, gint old_scroll_pos);
gint fm_nav_history_get_scroll_pos(FmNavHistory* nh);
gboolean fm_nav_history_can_back(FmNavHistory* nh);
void fm_nav_history_chdir(FmNavHistory* nh, FmPath* path, gint old_scroll_pos);
void fm_nav_history_clear(FmNavHistory* nh);
void fm_nav_history_set_max(FmNavHistory* nh, guint num);
G_END_DECLS
#endif /* __FM_NAV_HISTORY_H__ */
|