File: dirhistory.h

package info (click to toggle)
gentoo 0.11.46-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,648 kB
  • ctags: 4,313
  • sloc: ansic: 33,912; sh: 3,903; makefile: 649; yacc: 316; sed: 16
file content (34 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (3)
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
/*
** 1998-11-26 -	Header for the directory history handling module. Mainly called from the dirpane module.
*/

#if !defined DIRHISTORY_H
#define	DIRHISTORY_H

/* ----------------------------------------------------------------------------------------- */

typedef struct DHSel		DHSel;
typedef struct DirHistory	DirHistory;

/* ----------------------------------------------------------------------------------------- */

extern DirHistory *	dph_dirhistory_new(void);

const gchar *		dph_dirhistory_get_entry(const DirHistory *dh, guint index);

extern DHSel *		dph_dirsel_new(DirPane *dp);
extern void		dph_dirsel_apply(DirPane *dp, const DHSel *sel);
extern void		dph_dirsel_destroy(DHSel *sel);

extern gfloat		dph_vpos_get(const DirPane *dp);
extern void		dph_vpos_set(DirPane *dp, gfloat vpos);

extern void		dph_state_save(DirPane *dp);
extern void		dph_state_restore(DirPane *dp);

extern const gchar *	dph_history_get_first(const DirPane *dp);

extern void		dph_history_save(MainInfo *min, const DirPane *dp, gsize num);
extern void		dph_history_load(MainInfo *min, DirPane *dp, gsize num);

#endif		/* DIRHISTORY_H */