From: <svn...@op...> - 2009-03-28 20:06:12
|
Author: dgollub Date: Sat Mar 28 21:06:04 2009 New Revision: 5406 URL: http://www.opensync.org/changeset/5406 Log: Remove osync_remove_directory_recursively() from the public installed header. This function wasn't exported but got isntalled with the public headers. Added: trunk/opensync/common/opensync_file_internals.h Modified: trunk/opensync/common/opensync_file.h trunk/opensync/group/opensync_updater.c Modified: trunk/opensync/common/opensync_file.h ============================================================================== --- trunk/opensync/common/opensync_file.h Sat Mar 28 20:58:10 2009 (r5405) +++ trunk/opensync/common/opensync_file.h Sat Mar 28 21:06:04 2009 (r5406) @@ -56,18 +56,6 @@ */ OSYNC_EXPORT osync_bool osync_file_read(const char *filename, char **data, unsigned int *size, OSyncError **error); -/** @brief Removes a directory recursively - * - * Removes a directory recursively. This is an - * internal function for portability. - * - * @param dirname Directory which will be deleted - * @returns 0 if successful, -1 otherwise - * - */ - -int osync_remove_directory_recursively(const char *dirname); - /*@} */ #endif /* _OPENSYNC_FILE_H */ Added: trunk/opensync/common/opensync_file_internals.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/opensync/common/opensync_file_internals.h Sat Mar 28 21:06:04 2009 (r5406) @@ -0,0 +1,47 @@ +/* + * libopensync - A synchronization framework + * Copyright (C) 2004-2005 Armin Bauer <arm...@op...> + * + * 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +#ifndef _OPENSYNC_FILE_INTERNALS_H +#define _OPENSYNC_FILE_INTERNALS_H + +/** + * @defgroup OSyncFileInternalAPI OpenSync File + * @ingroup OSyncCommonPrivate + * @brief Functions for handling common file operations + */ + +/*@{*/ + +/** @brief Removes a directory recursively + * + * Removes a directory recursively. This is an + * internal function for portability. + * + * @param dirname Directory which will be deleted + * @returns 0 if successful, -1 otherwise + * + */ + +int osync_remove_directory_recursively(const char *dirname); + +/*@} */ + +#endif /* _OPENSYNC_FILE_INTERNALS_H */ + Modified: trunk/opensync/group/opensync_updater.c ============================================================================== --- trunk/opensync/group/opensync_updater.c Sat Mar 28 20:58:10 2009 (r5405) +++ trunk/opensync/group/opensync_updater.c Sat Mar 28 21:06:04 2009 (r5406) @@ -38,6 +38,7 @@ #include "common/opensync_xml_internals.h" #include "common/opensync_file.h" +#include "common/opensync_file_internals.h" #include "opensync_updater.h" #include "opensync_updater_private.h" |