mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 09:16:14 +02:00
f14c041e51
- qpkg.h (struct pkg): added "arch" field for the architecture - gobble.c (gobble_buf): record the architecture - gobble.c (gobble_buf): fail if trying to set the file name twice - qpkg.c (main): initialize trees before doing anything else, so that the argument processing stays together
52 lines
942 B
C
52 lines
942 B
C
/*
|
|
* qpkg.h - Quick package database query
|
|
*
|
|
* Written 2010 by Werner Almesberger
|
|
* Copyright 2010 Werner Almesberger
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
#ifndef QPKG_H
|
|
#define QPKG_H
|
|
|
|
enum flags {
|
|
QPKG_INSTALLED = 1 << 0, /* installed on target */
|
|
};
|
|
|
|
enum relop {
|
|
rel_eq,
|
|
rel_ge,
|
|
rel_lt,
|
|
};
|
|
|
|
struct pkg;
|
|
|
|
struct ref {
|
|
struct id *pkg;
|
|
struct id *version;
|
|
enum relop relop; /* undefined if version == NULL */
|
|
struct ref *next;
|
|
};
|
|
|
|
struct pkg {
|
|
struct id *id;
|
|
struct id *version;
|
|
const char *arch;
|
|
struct ref *conflicts;
|
|
struct ref *depends;
|
|
const char *filename;
|
|
int flags; /* see enum flags */
|
|
struct pkg *more;
|
|
int mark;
|
|
};
|
|
|
|
|
|
struct tree *packages;
|
|
struct tree *versions;
|
|
|
|
#endif /* !QPKG_H */
|