Add always-available Git Bash menu item
[git-cheetah/kirill.git] / cheetahmenu.h
bloba77177e5df603e60a2044e50a27dbfcf6f691f08
1 #ifndef CHEETAHMENU_H
2 #define CHEETAHMENU_H
4 void build_cheetah_menu(struct git_data *data, void *platform_data);
6 /*
7 * Prototypes of functions that must be provided by the client
8 */
9 void reset_platform(void *platform);
10 BOOL build_separator(struct git_data *data, const struct menu_item *item,
11 void *platform);
12 BOOL build_item(struct git_data *data, const struct menu_item *item,
13 void *platform);
16 * Cheetah-specific flags and functions
18 * Generally, nobody is interested in these flags & functions, but
19 * they may be useful for unit testing.
21 * 2 bits to indicate each choise are required because
22 * menu_item.selection is used as a mask and there are
23 * actually three choices:
24 * - selected;
25 * - not selected;
26 * - irrelevant
28 #define MENU_ITEM_FILE (1 << 0)
29 #define MENU_ITEM_DIR (1 << 1)
30 #define MENU_ITEM_NOREPO (1 << 2)
31 #define MENU_ITEM_REPO (1 << 3)
32 #define MENU_ITEM_TRACK (1 << 4)
33 #define MENU_ITEM_NOTRACK (1 << 5)
35 UINT cheetah_menu_mask(struct git_data *this_);
37 #endif /* CHEETAHMENU_H */