00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef MPD_UPDATE_ARCHIVE_H
00021 #define MPD_UPDATE_ARCHIVE_H
00022
00023 #include "check.h"
00024
00025 #include <stdbool.h>
00026 #include <sys/stat.h>
00027
00028 struct directory;
00029 struct archive_plugin;
00030
00031 #ifdef ENABLE_ARCHIVE
00032
00033 bool
00034 update_archive_file(struct directory *directory,
00035 const char *name, const char *suffix,
00036 const struct stat *st);
00037
00038 #else
00039
00040 #include <glib.h>
00041
00042 static inline bool
00043 update_archive_file(G_GNUC_UNUSED struct directory *directory,
00044 G_GNUC_UNUSED const char *name,
00045 G_GNUC_UNUSED const char *suffix,
00046 G_GNUC_UNUSED const struct stat *st)
00047 {
00048 return false;
00049 }
00050
00051 #endif
00052
00053 #endif