summaryrefslogtreecommitdiff
path: root/tools/repo_write.h
blob: 544ff728e41ca4b6076db45aaaa05a70b1abd943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright (c) 2007, Novell Inc.
 *
 * This program is licensed under the BSD license, read LICENSE.BSD
 * for further information
 */

/*
 * repo_write.h
 *
 */

#ifndef REPO_WRITE_H
#define REPO_WRITE_H

#include <stdio.h>

#include "pool.h"
#include "repo.h"

/* Describes a repodata file */
typedef struct _Repodatafile
{
  /* These have the same meaning as the equally named fields in
     Repodata.  */
  char *location;
  char *checksum;
  unsigned int nchecksum;
  unsigned int checksumtype;
  struct _Repokey *keys;
  unsigned int nkeys;
  Id *addedfileprovides;
  unsigned char *rpmdbcookie;
} Repodatafile;

void repo_write(Repo *repo, FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Repodatafile *fileinfo, int nsubfiles);

#endif