Main Page   Modules   Data Structures   File List   Data Fields   Globals  

path.h

Go to the documentation of this file.
00001 /*
00002  * path.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: path_8h-source.html 708 2005-03-21 12:30:37Z leggwes $
00027  */
00028  
00033 #ifndef PATH_H
00034 #define PATH_H
00035 
00036 #include "translations.h"
00037 
00038 NAMESPACE_LIBDAR_START
00039 
00040 #ifdef __cplusplus
00041 extern "C"
00042 {
00043 #endif
00044 
00045     struct _dar_path; 
00046     typedef struct _dar_path dar_path;
00047 
00096     DLLIMPORT dar_path *dar_path_create( char* path );
00098     DLLIMPORT dar_path *dar_path_copy( dar_path* ref );
00100     DLLIMPORT void dar_path_destroy( dar_path* ref );
00101     
00103     DLLIMPORT bool dar_path_compare( dar_path* ref, dar_path* path );
00105     DLLIMPORT bool dar_path_is_relative( dar_path* ref );
00111     DLLIMPORT bool dar_path_is_subdir_of( dar_path* ref,
00112                                 dar_path* path, bool case_sensit );
00113     
00115     DLLIMPORT char *dar_path_iterate_next( dar_path* ref );
00117     DLLIMPORT void dar_path_iterate_reset( dar_path* ref );
00118     
00125     DLLIMPORT bool dar_path_stack_push( dar_path* ref, dar_path* path );
00134     DLLIMPORT bool dar_path_stack_peek( dar_path* ref, char** name );
00138     DLLIMPORT bool dar_path_stack_pop( dar_path* ref, char** name );
00142     DLLIMPORT bool dar_path_stack_pop_front( dar_path* ref, char** name );
00143     
00147     DLLIMPORT char *dar_path_get_string( dar_path* ref );
00156     DLLIMPORT unsigned int dar_path_get_depth( dar_path* ref );
00157     
00168 #ifdef __cplusplus
00169 }
00170 #endif
00171 
00172 
00173 NAMESPACE_LIBDAR_END
00174 
00175 
00176 #endif /* end of PATH_H */