doc
|
00001 /* 00002 * libcsync -- a library to sync a directory with another 00003 * 00004 * Copyright (c) 2012 by Andreas Schneider <asn@cryptomilk.org> 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef _CSYNC_MISC_H 00022 #define _CSYNC_MISC_H 00023 00024 #include "csync.h" 00025 00026 char *csync_get_user_home_dir(void); 00027 char *csync_get_local_username(void); 00028 00029 int csync_fnmatch(__const char *__pattern, __const char *__name, int __flags); 00030 00031 /** 00032 * @brief csync_errno_to_csync_error - errno to csync error code 00033 * 00034 * This function tries to convert the value of the current set errno 00035 * to a csync error code. 00036 * 00037 * @return the corresponding csync error code. 00038 */ 00039 CSYNC_ERROR_CODE csync_errno_to_csync_error(CSYNC_ERROR_CODE default_err); 00040 00041 #endif /* _CSYNC_MISC_H */