Code

added type argument to gcmp_list_from_path()
[ncmpc.git] / src / utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
5 /* functions for lists containing strings */
6 GList *string_list_free(GList *string_list);
7 GList *string_list_find(GList *string_list, gchar *str);
8 GList *string_list_remove(GList *string_list, gchar *str);
10 /* create a string list from path - used for completion */
11 #define GCMP_TYPE_DIR       (0x01 << 0)
12 #define GCMP_TYPE_FILE      (0x01 << 1)
13 #define GCMP_TYPE_PLAYLIST  (0x01 << 2)
14 #define GCMP_TYPE_RFILE     (GCMP_TYPE_DIR | GCMP_TYPE_FILE)
15 #define GCMP_TYPE_RPLAYLIST (GCMP_TYPE_DIR | GCMP_TYPE_PLAYLIST)
17 GList *gcmp_list_from_path(mpdclient_t *c, 
18                            gchar *path, 
19                            GList *list,
20                            gint types);
22 #endif