Main Page   Modules   Data Structures   File List   Data Fields   Globals  

mask_tools.h

Go to the documentation of this file.
00001 /*
00002  * mask_tools.h
00003  * Created on 17 Mar 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__tools_8h-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028 
00034 #ifndef MASK_TOOLS_H
00035 #define MASK_TOOLS_H
00036 
00037 #include "translations.h"
00038 #include "mask.h"
00039 
00040 
00041 NAMESPACE_LIBDAR_START
00042 
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif
00047 
00048 
00049 typedef enum
00050 {
00051     dar_mask_type_same_path,
00052     dar_mask_type_bool,
00053     dar_mask_type_and,
00054     dar_mask_type_or,
00055     dar_mask_type_exclude_dir,
00056     dar_mask_type_not,
00057     dar_mask_type_regular,
00058     dar_mask_type_simple,
00059     dar_mask_type_simple_path
00060 } dar_mask_type;
00061 
00062 
00063 
00064 typedef struct
00065 {
00066     char* content;
00067     bool case_sensitive;
00068 } dar_mask_content;
00069 
00070 
00078 DLLIMPORT int dar_mask_get_children(dar_mask* ref, dar_mask** children, int* size);
00079 
00080 
00086 DLLIMPORT dar_mask_type dar_mask_get_type(dar_mask* ref);
00087 
00101 DLLIMPORT void dar_mask_get_content(dar_mask_content* cont);
00102 
00103 
00104 #ifdef __cplusplus
00105 }
00106 #endif
00107 
00108 NAMESPACE_LIBDAR_END
00109 
00110 #endif /* !MASK_TOOLS_H */