diff --git a/src/utils.h b/src/utils.h
index 20077f0b231a7a1e4881180fa058dbbbf6416d5a..85331bc64943fc616a138db21bee2b567e554066 100644 (file)
--- a/src/utils.h
+++ b/src/utils.h
#ifndef UTILS_H
#define UTILS_H
#ifndef UTILS_H
#define UTILS_H
-#include "mpdclient.h"
-
#include <glib.h>
#include <glib.h>
+struct mpdclient;
+
/* functions for lists containing strings */
GList *string_list_free(GList *string_list);
GList *string_list_find(GList *string_list, const gchar *str);
/* functions for lists containing strings */
GList *string_list_free(GList *string_list);
GList *string_list_find(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)
#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
#endif