Split file src/keybind.[ch] to lib/keybind.[ch] and src/keybind-defaults.[ch].
[midnight-commander.git] / src / tree.h
blob93c50d8830ae73d1d6f99da55696d9482366546c
1 /** \file tree.h
2 * \brief Header: directory tree browser
3 */
5 #ifndef MC__TREE_H
6 #define MC__TREE_H
8 #include "lib/global.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 /*** enums ***************************************************************************************/
14 /*** structures declarations (and typedefs of structures)*****************************************/
16 typedef struct WTree WTree;
18 /*** global variables defined in .c file *********************************************************/
20 extern WTree *the_tree;
21 extern int xtree_mode;
23 struct Dlg_head;
25 /*** declarations of public functions ************************************************************/
27 WTree *tree_new (int y, int x, int lines, int cols, gboolean is_panel);
29 void tree_chdir (WTree * tree, const char *dir);
30 char *tree_selected_name (const WTree * tree);
32 void sync_tree (const char *pathname);
34 WTree *find_tree (struct Dlg_head *h);
36 /*** inline functions ****************************************************************************/
37 #endif /* MC__TREE_H */