- make unknown elements less fatal
[platform/upstream/libsolv.git] / tools / repo_write.h
1 /*
2  * Copyright (c) 2007, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 /*
9  * repo_write.h
10  *
11  */
12
13 #ifndef REPO_WRITE_H
14 #define REPO_WRITE_H
15
16 #include <stdio.h>
17
18 #include "pool.h"
19 #include "repo.h"
20
21 /* Describes a repodata file */
22 typedef struct _Repodatafile
23 {
24   /* These have the same meaning as the equally named fields in
25      Repodata.  */
26   char *location;
27   char *checksum;
28   unsigned int nchecksum;
29   unsigned int checksumtype;
30   struct _Repokey *keys;
31   unsigned int nkeys;
32   Id *addedfileprovides;
33   unsigned char *rpmdbcookie;
34 } Repodatafile;
35
36 void repo_write(Repo *repo, FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Id **keyarrayp);
37
38 #endif