1*f491972cSAugustin Cavalier /* 2*f491972cSAugustin Cavalier * Copyright (c) 2007, Novell Inc. 3*f491972cSAugustin Cavalier * 4*f491972cSAugustin Cavalier * This program is licensed under the BSD license, read LICENSE.BSD 5*f491972cSAugustin Cavalier * for further information 6*f491972cSAugustin Cavalier */ 7*f491972cSAugustin Cavalier 8*f491972cSAugustin Cavalier /* 9*f491972cSAugustin Cavalier * repo_write.h 10*f491972cSAugustin Cavalier * 11*f491972cSAugustin Cavalier */ 12*f491972cSAugustin Cavalier 13*f491972cSAugustin Cavalier #ifndef REPO_WRITE_H 14*f491972cSAugustin Cavalier #define REPO_WRITE_H 15*f491972cSAugustin Cavalier 16*f491972cSAugustin Cavalier #include <stdio.h> 17*f491972cSAugustin Cavalier 18*f491972cSAugustin Cavalier #include "repo.h" 19*f491972cSAugustin Cavalier #include "queue.h" 20*f491972cSAugustin Cavalier 21*f491972cSAugustin Cavalier #ifdef __cplusplus 22*f491972cSAugustin Cavalier extern "C" { 23*f491972cSAugustin Cavalier #endif 24*f491972cSAugustin Cavalier 25*f491972cSAugustin Cavalier extern int repo_write(Repo *repo, FILE *fp); 26*f491972cSAugustin Cavalier extern int repo_write_filtered(Repo *repo, FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq); 27*f491972cSAugustin Cavalier 28*f491972cSAugustin Cavalier extern int repodata_write(Repodata *data , FILE *fp); 29*f491972cSAugustin Cavalier extern int repodata_write_filtered(Repodata *data , FILE *fp, int (*keyfilter)(Repo *repo, Repokey *key, void *kfdata), void *kfdata, Queue *keyq); 30*f491972cSAugustin Cavalier 31*f491972cSAugustin Cavalier extern int repo_write_stdkeyfilter(Repo *repo, Repokey *key, void *kfdata); 32*f491972cSAugustin Cavalier 33*f491972cSAugustin Cavalier #ifdef __cplusplus 34*f491972cSAugustin Cavalier } 35*f491972cSAugustin Cavalier #endif 36*f491972cSAugustin Cavalier 37*f491972cSAugustin Cavalier #endif 38