~ubuntu-branches/debian/stretch/debfoster/stretch

« back to all changes in this revision

Viewing changes to src/status.h

  • Committer: Bazaar Package Importer
  • Author(s): Ivo Timmermans
  • Date: 2002-01-17 23:08:39 UTC
  • Revision ID: james.westby@ubuntu.com-20020117230839-s22xl5hew1z4s3r5
Tags: upstream-2.5
ImportĀ upstreamĀ versionĀ 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _STATUS_H
 
2
#define _STATUS_H
 
3
 
 
4
#include "AVLTree.h"
 
5
#include "symbol.h"
 
6
 
 
7
struct package {
 
8
        symbol_t name;
 
9
        AVLTree depends;                /* list of packages this one depends on directly */
 
10
        AVLTree dependents;             /* list of packages depending on this one */
 
11
        AVLTree provides;                /* list of dependencies met by this package */
 
12
        AVLTree providers;              /* list of packaged providing this dependency */
 
13
        int provider_count;             /* number of alternative packages providing this dependency */
 
14
        int orphan_depends;             /* number of orphan packages this one depends on (used for sorting) */
 
15
        unsigned short installed:1;     /* Is this an installed package? */
 
16
        unsigned short task:1;          /* This is a virtual task package */
 
17
        unsigned short keep:1;          /* Keep this package in any case */
 
18
        unsigned short nokeep:1;        /* Don't keep this package unless there is a dependency */
 
19
};
 
20
 
 
21
extern int pkgcmp(struct package *a, struct package *b);
 
22
extern struct package *pkg_find(symbol_t s);
 
23
extern void free_package(struct package *pkg);
 
24
 
 
25
extern AVLTree *packages;
 
26
 
 
27
extern void readstatus(void);
 
28
extern symbol_t guessbase(symbol_t);
 
29
 
 
30
extern char *chop(char *);
 
31
extern int chomp(char *);
 
32
 
 
33
#endif