Annotation of rpm2html/rpmdata.h, revision 1.3
1.1 veillard 1: /*
2: * rpmdata.h : describes the data gathered for each RPM analyzed.
3: *
1.3 ! veillard 4: * $Id: rpmdata.h,v 1.2 1997/11/11 11:10:10 veillard Exp $
1.2 veillard 5: *
6: * $Log: rpmdata.h,v $
1.3 ! veillard 7: * Revision 1.2 1997/11/11 11:10:10 veillard
! 8: * State after one night of work, Daniel
! 9: *
1.2 veillard 10: * Revision 1.1.1.1 1997/11/11 07:12:32 veillard
11: * First revision of RPM-Check
1.1 veillard 12: *
13: */
14:
15: #ifndef __RPMDATA_H__
16: #define __RPMDATA_H__
17:
18: #include <rpm/header.h>
19:
20: /*
21: * structure associated with an rpm
22: */
23:
24: #define MAX_RESS 35
25:
26: typedef struct rpm_data {
27: struct rpm_data *next; /* next in the list */
1.2 veillard 28: char *filename; /* name of the file */
1.1 veillard 29: char *name; /* name of the software */
30: char *version; /* version of the software */
31: char *release; /* software release */
1.2 veillard 32: char *arch; /* the target platform */
1.1 veillard 33: char *distribution; /* general OS distribution */
34: char *vendor; /* general OS vendor */
35: char *group; /* type of software */
1.2 veillard 36: char *summary; /* 1 line summary */
37: char *description; /* short description */
38: char *srcrpm; /* source RPM */
39: time_t date; /* date of packaging */
1.1 veillard 40: int_32 size; /* size of the software */
41: char *host; /* build host */
42: int nb_ressources; /* #of ressources provided */
43: struct rpm_ressource *
44: ressources[MAX_RESS]; /* list of them */
45: } rpmData, *rpmDataPtr;
46:
47: /*
48: * structure associated with a resource
49: */
50:
51: #define MAX_PROVIDE 30
52:
53: typedef struct rpm_ressource {
54: struct rpm_ressource *next; /* next in the list */
55: char *name; /* name of the ressource */
56: int nb_provider; /* #of ressources provided */
57: struct rpm_data *
58: provider[MAX_PROVIDE];/* list of them */
59: } rpmRess, *rpmRessPtr;
60:
61:
62: extern rpmDataPtr rpmList;
63: extern rpmRessPtr ressList;
64:
65: extern void rpmDataPrint(rpmDataPtr rpm);
66: extern void rpmDataPrintAll(void);
67: extern rpmRessPtr rpmRessAdd(char *ress, rpmDataPtr rpm);
1.2 veillard 68: extern int rpmOpen(char *nameRpm);
1.3 ! veillard 69:
! 70: void rpmGroupSort(void);
! 71: void rpmDistribSort(void);
! 72: void rpmVendorSort(void);
! 73: void rpmDateSort(void);
1.1 veillard 74:
75: #endif /* __RPMDATA_H__ */
Webmaster