TagFile: use Path instead of const char *

This commit is contained in:
Max Kellermann
2013-10-26 15:14:54 +02:00
parent 4a5aad0948
commit a40246d312
16 changed files with 52 additions and 32 deletions

View File

@@ -20,6 +20,7 @@
#include "config.h"
#include "ApeLoader.hxx"
#include "system/ByteOrder.hxx"
#include "fs/FileSystem.hxx"
#include <glib.h>
@@ -102,11 +103,9 @@ ape_scan_internal(FILE *fp, ApeTagCallback callback)
}
bool
tag_ape_scan(const char *path_fs, ApeTagCallback callback)
tag_ape_scan(Path path_fs, ApeTagCallback callback)
{
FILE *fp;
fp = fopen(path_fs, "rb");
FILE *fp = FOpen(path_fs, "rb");
if (fp == nullptr)
return false;