~ubuntu-branches/ubuntu/precise/rpm/precise-proposed

« back to all changes in this revision

Viewing changes to lib/rpmts_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Michal Čihař
  • Date: 2010-06-28 11:12:30 UTC
  • mfrom: (17.2.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100628111230-8ggjjhgpvrnr3ybx
Tags: 4.8.1-5
Fix compilation on hurd and kfreebsd (Closes: #587366).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define _RPMTS_INTERNAL_H
3
3
 
4
4
#include <rpm/rpmts.h>
5
 
#include <rpm/rpmal.h>  /* XXX availablePackage */
6
5
 
 
6
#include "lib/rpmal.h"          /* XXX availablePackage */
7
7
#include "lib/rpmhash.h"        /* XXX hashTable */
8
8
#include "lib/fprint.h"
9
9
 
10
 
/** \ingroup rpmts
11
 
 */
12
 
typedef struct diskspaceInfo_s * rpmDiskSpaceInfo;
13
 
 
14
 
/** \ingroup rpmts
15
 
 */
16
 
struct diskspaceInfo_s {
17
 
    dev_t dev;          /*!< File system device number. */
18
 
    int64_t bneeded;    /*!< No. of blocks needed. */
19
 
    int64_t ineeded;    /*!< No. of inodes needed. */
20
 
    int64_t bsize;      /*!< File system block size. */
21
 
    int64_t bavail;     /*!< No. of blocks available. */
22
 
    int64_t iavail;     /*!< No. of inodes available. */
23
 
    int64_t obneeded;   /*!< Bookkeeping to avoid duplicate reports */
24
 
    int64_t oineeded;   /*!< Bookkeeping to avoid duplicate reports */
25
 
};
26
 
 
27
 
/** \ingroup rpmts
28
 
 * Adjust for root only reserved space. On linux e2fs, this is 5%.
29
 
 */
30
 
#define adj_fs_blocks(_nb)      (((_nb) * 21) / 20)
31
 
 
32
 
/* argon thought a shift optimization here was a waste of time...  he's
33
 
   probably right :-( */
34
 
#define BLOCK_ROUND(size, block) (((size) + (block) - 1) / (block))
35
 
 
 
10
typedef struct diskspaceInfo_s * rpmDiskSpaceInfo;
36
11
 
37
12
/** \ingroup rpmts
38
13
 * The set of packages to be installed/removed atomically.
51
26
    rpmprobFilterFlags ignoreSet;
52
27
                                /*!< Bits to filter current problems. */
53
28
 
54
 
    unsigned int filesystemCount;       /*!< No. of mounted filesystems. */
55
 
    const char ** filesystems;  /*!< Mounted filesystem names. */
56
29
    rpmDiskSpaceInfo dsi;       /*!< Per filesystem disk/inode usage. */
57
30
 
58
31
    rpmdb rdb;                  /*!< Install database handle. */
68
41
    rpmte * order;              /*!< Packages sorted by dependencies. */
69
42
    int orderCount;             /*!< No. of transaction elements. */
70
43
    int orderAlloced;           /*!< No. of allocated transaction elements. */
71
 
    int unorderedSuccessors;    /*!< Index of 1st element of successors. */
72
44
    int ntrees;                 /*!< No. of dependency trees. */
73
45
    int maxDepth;               /*!< Maximum depth of dependency tree(s). */
74
46