1 /*
2 Copyright (C) 2015-2021, Dirk Krause
3 SPDX-License-Identifier: BSD-3-Clause
4 */
5 
6 /*
7 	WARNING: This file was generated by the dkct program (see
8 	http://dktools.sourceforge.net/ for details).
9 	Changes you make here will be lost if dkct is run again!
10 	You should modify the original source and run dkct on it.
11 	Original source: dk4filei8.ctr
12 */
13 
14 #ifndef DK4FILEI8_H_INCLUDED
15 /** Avoid multiple inclusions. */
16 #define DK4FILEI8_H_INCLUDED 1
17 
18 
19 /**	@file	dk4filei8.h	File information for files specified
20 	by char path name.
21 */
22 
23 #ifndef DK4FILEIT_H_INCLUDED
24 #if DK4_BUILDING_DKTOOLS4
25 #include <libdk4c/dk4fileit.h>
26 #else
27 #include <dktools-4/dk4fileit.h>
28 #endif
29 #endif
30 
31 #ifndef DK4ERROR_H_INCLUDED
32 #if DK4_BUILDING_DKTOOLS4
33 #include <libdk4base/dk4error.h>
34 #else
35 #include <dktools-4/dk4error.h>
36 #endif
37 #endif
38 
39 #ifdef __cplusplus
40 extern "C" {
41 #endif
42 
43 /**	Retrieve full information for a path name.
44 	For symbolic links attempt to retrieve information both
45 	about the link and about the link target.
46 	@param	dptr	Pointer to result structure.
47 	@param	fn	File path name.
48 	@param	erp	Error report, may be NULL.
49 	@return	1 if information is found, 0 otherwise.
50 	If information about the link is found and no information about
51 	the target, the function returns 1 as we can recognize the
52 	directory item as a dangling link (link with non-existing target).
53 */
54 int
55 dk4fileinfo_c8(dk4_file_info_t *dptr, const char *fn, dk4_er_t *erp);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 
62 
63 #endif
64