Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenxdg.h
Go to the documentation of this file.
00001 /* 00002 * This library is free software; you can redistribute it and/or 00003 * modify it under the terms of the GNU Lesser General Public 00004 * License as published by the Free Software Foundation; either 00005 * version 2.1 of the License, or (at your option) any later version. 00006 * 00007 * This library is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00010 * Lesser General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU Lesser General Public 00013 * License along with this library; if not, write to the Free Software 00014 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00015 */ 00016 #ifndef __XDG_H__ 00017 #define __XDG_H__ 00018 00019 /* 00020 * XDG directories access 00021 */ 00022 #define XDG_DATA_HOME 0 00023 #define XDG_CONFIG_HOME 1 00024 #define XDG_DATA_DIRS 2 00025 #define XDG_CONFIG_DIRS 3 00026 #define XDG_CACHE_HOME 4 00027 00028 const char *XDG_GetPath(int path_id); 00029 char *XDG_BuildPath(int root_id, const char *subpath); 00030 int XDG_MakeDirs(const char *path); 00031 00032 #define XDG_URLENCODE 0x1 00033 BOOL XDG_WriteDesktopStringEntry(int fd, const char *keyName, DWORD dwFlags, const char *value); 00034 00035 typedef struct tagXDG_PARSED_FILE XDG_PARSED_FILE; 00036 00037 XDG_PARSED_FILE *XDG_ParseDesktopFile(int fd); 00038 char *XDG_GetStringValue(XDG_PARSED_FILE *file, const char *group_name, const char *value_name, DWORD dwFlags); 00039 void XDG_FreeParsedFile(XDG_PARSED_FILE *file); 00040 00041 /* implemented in trash.c */ 00042 typedef struct tagTRASH_ELEMENT TRASH_ELEMENT; 00043 00044 BOOL TRASH_CanTrashFile(LPCWSTR wszPath); 00045 BOOL TRASH_TrashFile(LPCWSTR wszPath); 00046 HRESULT TRASH_UnpackItemID(LPCSHITEMID id, TRASH_ELEMENT *element, WIN32_FIND_DATAW *data); 00047 HRESULT TRASH_EnumItems(LPITEMIDLIST **pidls, int *count); 00048 void TRASH_DisposeElement(TRASH_ELEMENT *element); 00049 00050 00051 #endif /* ndef __XDG_H__ */ Generated on Sun May 27 2012 04:26:31 for ReactOS by
1.7.6.1
|