2006-07-19 16:36:42 +00:00
|
|
|
/*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
#ifndef __XDG_H__
|
|
|
|
#define __XDG_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
* XDG directories access
|
|
|
|
*/
|
|
|
|
#define XDG_DATA_HOME 0
|
|
|
|
#define XDG_CONFIG_HOME 1
|
|
|
|
#define XDG_DATA_DIRS 2
|
|
|
|
#define XDG_CONFIG_DIRS 3
|
|
|
|
#define XDG_CACHE_HOME 4
|
|
|
|
|
2011-04-26 17:23:52 +00:00
|
|
|
char *XDG_BuildPath(int root_id, const char *subpath) DECLSPEC_HIDDEN;
|
|
|
|
int XDG_MakeDirs(const char *path) DECLSPEC_HIDDEN;
|
2006-07-19 16:36:42 +00:00
|
|
|
|
|
|
|
#define XDG_URLENCODE 0x1
|
2011-04-26 17:23:52 +00:00
|
|
|
BOOL XDG_WriteDesktopStringEntry(int fd, const char *keyName, DWORD dwFlags, const char *value) DECLSPEC_HIDDEN;
|
2006-07-19 16:36:42 +00:00
|
|
|
|
2006-08-17 16:28:51 +00:00
|
|
|
typedef struct tagXDG_PARSED_FILE XDG_PARSED_FILE;
|
|
|
|
|
2011-04-26 17:23:52 +00:00
|
|
|
XDG_PARSED_FILE *XDG_ParseDesktopFile(int fd) DECLSPEC_HIDDEN;
|
|
|
|
char *XDG_GetStringValue(XDG_PARSED_FILE *file, const char *group_name, const char *value_name, DWORD dwFlags) DECLSPEC_HIDDEN;
|
|
|
|
void XDG_FreeParsedFile(XDG_PARSED_FILE *file) DECLSPEC_HIDDEN;
|
2006-08-17 16:28:51 +00:00
|
|
|
|
2011-04-26 17:23:52 +00:00
|
|
|
BOOL TRASH_CanTrashFile(LPCWSTR wszPath) DECLSPEC_HIDDEN;
|
|
|
|
BOOL TRASH_TrashFile(LPCWSTR wszPath) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT TRASH_UnpackItemID(LPCSHITEMID id, WIN32_FIND_DATAW *data) DECLSPEC_HIDDEN;
|
|
|
|
HRESULT TRASH_EnumItems(LPITEMIDLIST **pidls, int *count) DECLSPEC_HIDDEN;
|
2011-07-08 14:47:08 +00:00
|
|
|
HRESULT TRASH_RestoreItem(LPCITEMIDLIST pidl) DECLSPEC_HIDDEN;
|
2011-07-08 14:46:49 +00:00
|
|
|
HRESULT TRASH_EraseItem(LPCITEMIDLIST pidl) DECLSPEC_HIDDEN;
|
2006-08-03 17:04:11 +00:00
|
|
|
|
2011-04-26 17:23:52 +00:00
|
|
|
HRESULT XDG_UserDirLookup(const char * const *xdg_dirs, const unsigned int num_dirs, char *** out_ptr) DECLSPEC_HIDDEN;
|
2006-07-19 16:36:42 +00:00
|
|
|
|
|
|
|
#endif /* ndef __XDG_H__ */
|