blob: 5602b9139c515b6425a77cc823edb6955f45f5f4 (
plain)
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
|
/** \file tree.h
* \brief Header: directory tree browser
*/
#ifndef MC__TREE_H
#define MC__TREE_H
#include "lib/global.h"
/*** typedefs(not structures) and defined constants **********************************************/
/*** enums ***************************************************************************************/
/*** structures declarations (and typedefs of structures)*****************************************/
typedef struct WTree WTree;
/*** global variables defined in .c file *********************************************************/
extern WTree *the_tree;
extern gboolean xtree_mode;
/*** declarations of public functions ************************************************************/
WTree *tree_new (const WRect *r, gboolean is_panel);
void tree_chdir (WTree *tree, const vfs_path_t *dir);
const vfs_path_t *tree_selected_name (const WTree *tree);
MC_MOCKABLE void sync_tree (const vfs_path_t *vpath);
WTree *find_tree (const WDialog *h);
/*** inline functions ****************************************************************************/
#endif
|