Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
21b84e7a
Commit
21b84e7a
authored
Mar 26, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Rename URLCacheContainers_* functions to cache_containers_*.
parent
4e624561
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
urlcache.c
dlls/wininet/urlcache.c
+25
-25
No files found.
dlls/wininet/urlcache.c
View file @
21b84e7a
...
...
@@ -531,7 +531,7 @@ static void cache_container_close_index(cache_container *pContainer)
pContainer
->
mapping
=
NULL
;
}
static
BOOL
URLCacheContainers_AddContainer
(
LPCWSTR
cache_prefix
,
static
BOOL
cache_containers_add
(
LPCWSTR
cache_prefix
,
LPCWSTR
path
,
DWORD
default_entry_type
,
LPWSTR
mutex_name
)
{
cache_container
*
pContainer
=
heap_alloc
(
sizeof
(
cache_container
));
...
...
@@ -590,7 +590,7 @@ static void cache_container_delete_container(cache_container *pContainer)
heap_free
(
pContainer
);
}
static
void
URLCacheContainers_CreateDefaults
(
void
)
static
void
cache_containers_init
(
void
)
{
static
const
WCHAR
UrlSuffix
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
'.'
,
'I'
,
'E'
,
'5'
,
0
};
static
const
WCHAR
UrlPrefix
[]
=
{
0
};
...
...
@@ -644,12 +644,12 @@ static void URLCacheContainers_CreateDefaults(void)
wszCachePath
[
path_len
+
suffix_len
+
2
]
=
'\0'
;
}
URLCacheContainers_AddContainer
(
DefaultContainerData
[
i
].
cache_prefix
,
wszCachePath
,
cache_containers_add
(
DefaultContainerData
[
i
].
cache_prefix
,
wszCachePath
,
DefaultContainerData
[
i
].
default_entry_type
,
wszMutexName
);
}
}
static
void
URLCacheContainers_DeleteAll
(
void
)
static
void
cache_containers_free
(
void
)
{
while
(
!
list_empty
(
&
UrlContainers
))
cache_container_delete_container
(
...
...
@@ -657,7 +657,7 @@ static void URLCacheContainers_DeleteAll(void)
);
}
static
DWORD
URLCacheContainers_FindContainer
W
(
LPCWSTR
lpwszUrl
,
cache_container
**
ppContainer
)
static
DWORD
cache_containers_find
W
(
LPCWSTR
lpwszUrl
,
cache_container
**
ppContainer
)
{
cache_container
*
pContainer
;
...
...
@@ -680,7 +680,7 @@ static DWORD URLCacheContainers_FindContainerW(LPCWSTR lpwszUrl, cache_container
return
ERROR_FILE_NOT_FOUND
;
}
static
DWORD
URLCacheContainers_FindContainer
A
(
LPCSTR
lpszUrl
,
cache_container
**
ppContainer
)
static
DWORD
cache_containers_find
A
(
LPCSTR
lpszUrl
,
cache_container
**
ppContainer
)
{
LPWSTR
url
=
NULL
;
DWORD
ret
;
...
...
@@ -688,12 +688,12 @@ static DWORD URLCacheContainers_FindContainerA(LPCSTR lpszUrl, cache_container *
if
(
lpszUrl
&&
!
(
url
=
heap_strdupAtoW
(
lpszUrl
)))
return
ERROR_OUTOFMEMORY
;
ret
=
URLCacheContainers_FindContainer
W
(
url
,
ppContainer
);
ret
=
cache_containers_find
W
(
url
,
ppContainer
);
heap_free
(
url
);
return
ret
;
}
static
BOOL
URLCacheContainers_E
num
(
LPCWSTR
lpwszSearchPattern
,
DWORD
dwIndex
,
cache_container
**
ppContainer
)
static
BOOL
cache_containers_e
num
(
LPCWSTR
lpwszSearchPattern
,
DWORD
dwIndex
,
cache_container
**
ppContainer
)
{
DWORD
i
=
0
;
cache_container
*
pContainer
;
...
...
@@ -1768,7 +1768,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExA(
if
(
dwFlags
&
~
GET_INSTALLED_ENTRY
)
FIXME
(
"ignoring unsupported flags: %x
\n
"
,
dwFlags
);
error
=
URLCacheContainers_FindContainer
A
(
lpszUrl
,
&
pContainer
);
error
=
cache_containers_find
A
(
lpszUrl
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -1911,7 +1911,7 @@ BOOL WINAPI GetUrlCacheEntryInfoExW(
if
(
dwFlags
)
FIXME
(
"ignoring unsupported flags: %x
\n
"
,
dwFlags
);
error
=
URLCacheContainers_FindContainer
W
(
lpszUrl
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrl
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -1994,7 +1994,7 @@ BOOL WINAPI SetUrlCacheEntryInfoA(
TRACE
(
"(%s, %p, 0x%08x)
\n
"
,
debugstr_a
(
lpszUrlName
),
lpCacheEntryInfo
,
dwFieldControl
);
error
=
URLCacheContainers_FindContainer
A
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
A
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2051,7 +2051,7 @@ BOOL WINAPI SetUrlCacheEntryInfoW(LPCWSTR lpszUrl, LPINTERNET_CACHE_ENTRY_INFOW
TRACE
(
"(%s, %p, 0x%08x)
\n
"
,
debugstr_w
(
lpszUrl
),
lpCacheEntryInfo
,
dwFieldControl
);
error
=
URLCacheContainers_FindContainer
W
(
lpszUrl
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrl
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2126,7 +2126,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileA(
return
FALSE
;
}
error
=
URLCacheContainers_FindContainer
A
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
A
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2224,7 +2224,7 @@ BOOL WINAPI RetrieveUrlCacheEntryFileW(
return
FALSE
;
}
error
=
URLCacheContainers_FindContainer
W
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2660,7 +2660,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileA(
return
FALSE
;
}
error
=
URLCacheContainers_FindContainer
A
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
A
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2736,7 +2736,7 @@ BOOL WINAPI UnlockUrlCacheEntryFileW( LPCWSTR lpszUrlName, DWORD dwReserved )
return
FALSE
;
}
error
=
URLCacheContainers_FindContainer
W
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -2929,7 +2929,7 @@ BOOL WINAPI CreateUrlCacheEntryW(
szFile
[
0
]
=
0
;
}
error
=
URLCacheContainers_FindContainer
W
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -3117,7 +3117,7 @@ static BOOL urlcache_entry_commit(
file_size
.
u
.
LowPart
=
file_attr
.
nFileSizeLow
;
file_size
.
u
.
HighPart
=
file_attr
.
nFileSizeHigh
;
error
=
URLCacheContainers_FindContainer
W
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -3641,7 +3641,7 @@ BOOL WINAPI DeleteUrlCacheEntryA(LPCSTR lpszUrlName)
TRACE
(
"(%s)
\n
"
,
debugstr_a
(
lpszUrlName
));
error
=
URLCacheContainers_FindContainer
A
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
A
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
SetLastError
(
error
);
...
...
@@ -3695,7 +3695,7 @@ BOOL WINAPI DeleteUrlCacheEntryW(LPCWSTR lpszUrlName)
return
FALSE
;
}
error
=
URLCacheContainers_FindContainer
W
(
lpszUrlName
,
&
pContainer
);
error
=
cache_containers_find
W
(
lpszUrlName
,
&
pContainer
);
if
(
error
!=
ERROR_SUCCESS
)
{
heap_free
(
urlA
);
...
...
@@ -3934,7 +3934,7 @@ static BOOL urlcache_find_next_entry(
return
FALSE
;
}
for
(;
URLCacheContainers_E
num
(
pEntryHandle
->
url_search_pattern
,
pEntryHandle
->
container_idx
,
&
pContainer
);
for
(;
cache_containers_e
num
(
pEntryHandle
->
url_search_pattern
,
pEntryHandle
->
container_idx
,
&
pContainer
);
pEntryHandle
->
container_idx
++
,
pEntryHandle
->
hash_table_idx
=
0
)
{
urlcache_header
*
pHeader
;
...
...
@@ -4284,7 +4284,7 @@ BOOL WINAPI IsUrlCacheEntryExpiredA( LPCSTR url, DWORD dwFlags, FILETIME* pftLas
FIXME
(
"unknown flags 0x%08x
\n
"
,
dwFlags
);
/* Any error implies that the URL is expired, i.e. not in the cache */
if
(
URLCacheContainers_FindContainer
A
(
url
,
&
pContainer
))
if
(
cache_containers_find
A
(
url
,
&
pContainer
))
{
memset
(
pftLastModified
,
0
,
sizeof
(
*
pftLastModified
));
return
TRUE
;
...
...
@@ -4352,7 +4352,7 @@ BOOL WINAPI IsUrlCacheEntryExpiredW( LPCWSTR url, DWORD dwFlags, FILETIME* pftLa
FIXME
(
"unknown flags 0x%08x
\n
"
,
dwFlags
);
/* Any error implies that the URL is expired, i.e. not in the cache */
if
(
URLCacheContainers_FindContainer
W
(
url
,
&
pContainer
))
if
(
cache_containers_find
W
(
url
,
&
pContainer
))
{
memset
(
pftLastModified
,
0
,
sizeof
(
*
pftLastModified
));
return
TRUE
;
...
...
@@ -4468,7 +4468,7 @@ BOOL init_urlcache(void)
return
FALSE
;
}
URLCacheContainers_CreateDefaults
();
cache_containers_init
();
return
TRUE
;
}
...
...
@@ -4480,7 +4480,7 @@ void free_urlcache(void)
CloseHandle
(
free_cache_running
);
CloseHandle
(
dll_unload_event
);
URLCacheContainers_DeleteAll
();
cache_containers_free
();
}
/***********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment