00001 /* 00002 * Copyright 2008,2009 Alexandros Frantzis, Michael Iatrou 00003 * 00004 * This file is part of libbls. 00005 * 00006 * libbls is free software: you can redistribute it and/or modify it under the 00007 * terms of the GNU Lesser General Public License as published by the Free 00008 * Software Foundation, either version 3 of the License, or (at your option) 00009 * any later version. 00010 * 00011 * libbls is distributed in the hope that it will be useful, but WITHOUT ANY 00012 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00013 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 00014 * details. 00015 * 00016 * You should have received a copy of the GNU General Public License along with 00017 * libbls. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 /** 00021 * @file util.h 00022 * 00023 * Utility functions and macros used by libbls. 00024 */ 00025 #ifndef _UTIL_H 00026 #define _UTIL_H 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 #define UNUSED_PARAM(x) (void)(x) 00033 00034 int path_join(char **result, char *path1, char *path2); 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 00040 #endif /* _UTIL_H */ 00041