add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development

This was SVN commit r13821.
This commit is contained in:
stwf
2013-09-10 14:17:04 +00:00
parent d037d97d55
commit b1bd61938e
28 changed files with 352 additions and 65 deletions
+3 -3
View File
@@ -66,7 +66,7 @@ struct BuildDirEntListState
};
// called for each matching directory entry; add its full pathname to array.
static Status BuildDirEntListCB(const VfsPath& pathname, const FileInfo& UNUSED(fileINfo), uintptr_t cbData)
static Status BuildDirEntListCB(const VfsPath& pathname, const CFileInfo& UNUSED(fileINfo), uintptr_t cbData)
{
BuildDirEntListState* s = (BuildDirEntListState*)cbData;
@@ -140,7 +140,7 @@ JSBool JSI_VFS::GetFileMTime(JSContext* cx, uintN argc, jsval* vp)
if (!ToPrimitive<CStrW> (cx, JS_ARGV(cx, vp)[0], filename))
return JS_FALSE;
FileInfo fileInfo;
CFileInfo fileInfo;
Status err = g_VFS->GetFileInfo(filename, &fileInfo);
JS_CHECK_FILE_ERR(err);
@@ -161,7 +161,7 @@ JSBool JSI_VFS::GetFileSize(JSContext* cx, uintN argc, jsval* vp)
if (!ToPrimitive<CStrW> (cx, JS_ARGV(cx, vp)[0], filename))
return JS_FALSE;
FileInfo fileInfo;
CFileInfo fileInfo;
Status err = g_VFS->GetFileInfo(filename, &fileInfo);
JS_CHECK_FILE_ERR(err);