X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Futils.h;h=85331bc64943fc616a138db21bee2b567e554066;hb=eb4967eab943e8ba74279864c23d980ac10c753c;hp=20077f0b231a7a1e4881180fa058dbbbf6416d5a;hpb=ae34932c79709af67026243896dafb53609262ff;p=ncmpc.git diff --git a/src/utils.h b/src/utils.h index 20077f0..85331bc 100644 --- a/src/utils.h +++ b/src/utils.h @@ -20,10 +20,10 @@ #ifndef UTILS_H #define UTILS_H -#include "mpdclient.h" - #include +struct mpdclient; + /* functions for lists containing strings */ GList *string_list_free(GList *string_list); GList *string_list_find(GList *string_list, const gchar *str); @@ -36,12 +36,14 @@ GList *string_list_remove(GList *string_list, const gchar *str); #define GCMP_TYPE_RFILE (GCMP_TYPE_DIR | GCMP_TYPE_FILE) #define GCMP_TYPE_RPLAYLIST (GCMP_TYPE_DIR | GCMP_TYPE_PLAYLIST) -GList *gcmp_list_from_path(mpdclient_t *c, - const gchar *path, - GList *list, - gint types); +GList * +gcmp_list_from_path(struct mpdclient *c, const gchar *path, + GList *list, gint types); + +void +format_duration_short(char *buffer, size_t length, unsigned duration); -char * -time_seconds_to_durationstr(unsigned long time_seconds); +void +format_duration_long(char *buffer, size_t length, unsigned long duration); #endif