1 /* 2 INI LIBRARY 3 4 Header file for the meta data related functions. 5 6 Copyright (C) Dmitri Pal <dpal@redhat.com> 2009 7 8 INI Library is free software: you can redistribute it and/or modify 9 it under the terms of the GNU Lesser General Public License as published by 10 the Free Software Foundation, either version 3 of the License, or 11 (at your option) any later version. 12 13 INI Library is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU Lesser General Public License for more details. 17 18 You should have received a copy of the GNU Lesser General Public License 19 along with INI Library. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #ifndef INI_METADATA_H 23 #define INI_METADATA_H 24 25 #include <stdint.h> 26 #include <stdio.h> 27 #include "collection.h" 28 29 30 /* Prepare metadata */ 31 int prepare_metadata(uint32_t metaflags, 32 struct collection_item **metadata, 33 int *save_error); 34 35 /* Collect metadata for the file */ 36 int collect_metadata(uint32_t metaflags, 37 struct collection_item **metadata, 38 FILE *config_file, 39 const char *config_filename); 40 41 42 43 #endif 44