xdg: Introduce xdg_search_cache_dirs

This commit is contained in:
Jason Zaman 2018-06-24 17:56:09 +08:00 committed by Chris PeBenito
parent 49a5d06120
commit 5b85f31124
1 changed files with 20 additions and 0 deletions

View File

@ -63,6 +63,26 @@ interface(`xdg_data_content',`
userdom_user_home_content($1)
')
########################################
## <summary>
## Search through the xdg cache home directories
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`xdg_search_cache_dirs',`
gen_require(`
type xdg_cache_t;
')
search_dirs_pattern($1, xdg_cache_t, xdg_cache_t)
userdom_search_user_home_dirs($1)
')
########################################
## <summary>
## Read the xdg cache home files