Code

po: updated Russian translation
[ncmpc.git] / src / utils.h
1 #ifndef UTILS_H
2 #define UTILS_H
4 #include "mpdclient.h"
6 #include <glib.h>
8 /* functions for lists containing strings */
9 GList *string_list_free(GList *string_list);
10 GList *string_list_find(GList *string_list, const gchar *str);
11 GList *string_list_remove(GList *string_list, const gchar *str);
13 /* create a string list from path - used for completion */
14 #define GCMP_TYPE_DIR       (0x01 << 0)
15 #define GCMP_TYPE_FILE      (0x01 << 1)
16 #define GCMP_TYPE_PLAYLIST  (0x01 << 2)
17 #define GCMP_TYPE_RFILE     (GCMP_TYPE_DIR | GCMP_TYPE_FILE)
18 #define GCMP_TYPE_RPLAYLIST (GCMP_TYPE_DIR | GCMP_TYPE_PLAYLIST)
20 GList *gcmp_list_from_path(mpdclient_t *c,
21                            const gchar *path,
22                            GList *list,
23                            gint types);
25 #endif