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: dk4fileiu.ctr
12 */
13 
14 #ifndef DK4FILEIU_H_INCLUDED
15 /** Avoid multiple inclusions. */
16 #define DK4FILEIU_H_INCLUDED 1
17 
18 
19 /**	@file	dk4fileiu.h	Retrieve unique file identifier from
20 	file information structure.
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 DK4UFI_H_INCLUDED
32 #if DK4_BUILDING_DKTOOLS4
33 #include <libdk4c/dk4ufi.h>
34 #else
35 #include <dktools-4/dk4ufi.h>
36 #endif
37 #endif
38 
39 #ifndef DK4ERROR_H_INCLUDED
40 #if DK4_BUILDING_DKTOOLS4
41 #include <libdk4base/dk4error.h>
42 #else
43 #include <dktools-4/dk4error.h>
44 #endif
45 #endif
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 /**	Retrieve unique file identifier from file information structure.
52 	@param	dptr	Pointer to destination variable.
53 	@param	src	File information structure to retrieve information from.
54 	@param	ch	For symbolic links choose between information
55 			for link itself (DK4_FILE_INFO_CONTENTS_DATA_LINK)
56 			or link target (DK4_FILE_INFO_CONTENTS_DATA_TARGET).
57 	@param	erp	Error report, may be NULL.
58 	@return	1 on success, 0 on error.
59 	Error codes:
60 	DK4_E_INVALID_ARGUMENTS	if dptr or src is NULL,
61 	DK4_E_NOT_FOUND		if the information is not present in the
62 				file information structure.
63 */
64 int
65 dk4fileinfo_ufi(
66   dk4_ufi_t *dptr, const dk4_file_info_t *src, int ch, dk4_er_t *erp
67 );
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 
74 #endif
75