Add completions to the dive location, buddy and divemaster entries

This way you can just type the first few characters of a location you've
been to before, and it will show you a list of possible completions.
Same for buddies and divemasters (which take the completions from a list
of people you've used before).

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-10-23 09:47:19 +03:00
parent bf33bf879f
commit bbe7f06189
3 changed files with 69 additions and 4 deletions

3
dive.h
View file

@ -260,6 +260,9 @@ extern void run_ui(void);
extern void report_error(GError* error);
extern void add_cylinder_description(cylinder_type_t *);
extern void add_people(const char *string);
extern void add_location(const char *string);
extern void dive_list_update_dives(void);
extern void flush_divelist(struct dive *dive);