Main Page   Modules   Data Structures   File List   Data Fields   Globals  

mask.h

Go to the documentation of this file.
00001 /*
00002  * mask.h
00003  * Created on 13 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: mask_8h-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028 
00034 #ifndef MASK_H
00035 #define MASK_H
00036 
00037 #include "translations.h"
00038 
00039 NAMESPACE_LIBDAR_START
00040 
00041 #ifdef __cplusplus
00042 extern "C"
00043 {
00044 #endif
00045 
00046     struct _dar_mask;
00047     typedef struct _dar_mask dar_mask;
00048 
00049 
00145     DLLIMPORT dar_mask *dar_mask_create_same_path( char* path, bool case_sensit );
00147     DLLIMPORT dar_mask *dar_mask_create_bool( bool always );
00172     DLLIMPORT dar_mask *dar_mask_create_and( );
00201     DLLIMPORT dar_mask *dar_mask_create_or( );
00266     DLLIMPORT dar_mask *dar_mask_create_exclude_dir( char* path, bool case_sensit );
00291     DLLIMPORT dar_mask *dar_mask_create_not( dar_mask* mask );
00295     DLLIMPORT dar_mask *dar_mask_create_regular( char* expr, bool case_sensit );
00299     DLLIMPORT dar_mask *dar_mask_create_simple( char* expr, bool case_sensit );
00331     DLLIMPORT dar_mask *dar_mask_create_simple_path( char* path, bool case_sensit );
00332     
00334     DLLIMPORT void dar_mask_destroy( dar_mask* mask );
00335     
00345     DLLIMPORT void dar_mask_and_add(dar_mask* ref, dar_mask* new_mask);
00354     DLLIMPORT void dar_mask_and_clear( dar_mask* ref );
00361     DLLIMPORT U_I dar_mask_and_size( dar_mask* ref );
00362     
00369     DLLIMPORT void dar_mask_or_add(dar_mask *ref, dar_mask* new_mask);
00376     DLLIMPORT void dar_mask_or_clear( dar_mask* ref );
00382     DLLIMPORT U_I dar_mask_or_size( dar_mask* ref );
00383     
00390 #ifdef __cplusplus
00391 }
00392 #endif
00393 
00394 
00395 
00396 NAMESPACE_LIBDAR_END
00397 
00398 
00399 
00400 #endif /* end of MASK_H */