Main Page   Modules   Data Structures   File List   Data Fields   Globals  

statistics.cpp

Go to the documentation of this file.
00001 /*
00002  * statistics.cpp
00003  * Created on 25 Feb 2005
00004  * Authors:
00005  *    Wesley Leggette <wleggette@kaylix.net>
00006  * 
00007  * 
00008  * 
00009  * libdarc
00010  * 
00011  * 
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025  * 
00026  * $Id: statistics_8cpp-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028 
00035 #include "statistics.h"
00036 #if LIBDARC_HAVE_LIBDAR_HPP
00037 #include <dar/libdar.hpp>
00038 #endif
00039 
00040 NAMESPACE_LIBDAR_START
00041 
00042 
00043 extern "C" void dar_statistics_destroy( dar_statistics* ref )
00044 {
00045     if ( ref->treated != NULL )
00046         dar_infinint_destroy(ref->treated);
00047     if ( ref->hard_links != NULL )
00048         dar_infinint_destroy(ref->hard_links);
00049     if ( ref->skipped != NULL )
00050         dar_infinint_destroy(ref->skipped);
00051     if ( ref->ignored != NULL )
00052         dar_infinint_destroy(ref->ignored);
00053     if ( ref->target_changed != NULL )
00054         dar_infinint_destroy(ref->target_changed);
00055     if ( ref->error != NULL )
00056         dar_infinint_destroy(ref->error);
00057     if ( ref->deleted != NULL )
00058         dar_infinint_destroy(ref->deleted);
00059     if ( ref->ea_treated != NULL )
00060         dar_infinint_destroy(ref->ea_treated);
00061     if ( ref->total != NULL )
00062         dar_infinint_destroy(ref->total);
00063         
00064     ref->treated = NULL;
00065     ref->hard_links = NULL;
00066     ref->skipped = NULL;
00067     ref->ignored = NULL;
00068     ref->target_changed = NULL;
00069     ref->error = NULL;
00070     ref->deleted = NULL;
00071     ref->ea_treated = NULL;
00072     ref->total = NULL;
00073     
00074     return;
00075 }
00076 
00077 
00078 NAMESPACE_LIBDAR_END
00079