-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibpkgconf_pkg.pxd
88 lines (73 loc) · 3.74 KB
/
libpkgconf_pkg.pxd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
from libcpp cimport bool
from libpkgconf_iter cimport *
from libpkgconf_client cimport *
ctypedef enum pkgconf_pkg_comparator_t:
PKGCONF_CMP_NOT_EQUAL
PKGCONF_CMP_ANY
PKGCONF_CMP_LESS_THAN
PKGCONF_CMP_LESS_THAN_EQUAL
PKGCONF_CMP_EQUAL
PKGCONF_CMP_GREATER_THAN
PKGCONF_CMP_GREATER_THAN_EQUAL
cdef enum property_flags:
None = 0x0
Virtual = 0x1
Cached = 0x2
Seen = 0x4
Uninstalled = 0x8
cdef enum resolver_err:
NoError = 0x0
PackageNotFound = 0x1
VersionMismatch = 0x2
PackageConflict = 0x4
DependencyGraphBreak = 0x8
ctypedef pkgconf_dependency_ pkgconf_dependency_t
ctypedef pkgconf_pkg_ pkgconf_pkg_t
ctypedef bool (*pkgconf_pkg_iteration_func_t)(const pkgconf_pkg_t *pkg, void *data)
ctypedef void (*pkgconf_pkg_traverse_func_t)(pkgconf_client_t *client, pkgconf_pkg_t *pkg, void *data, unsigned int flags)
ctypedef bool (*pkgconf_queue_apply_func_t)(pkgconf_client_t *client, pkgconf_pkg_t *world, void *data, int maxdepth, unsigned int flags)
cdef extern from "libpkgconf/libpkgconf.h":
struct pkgconf_dependency_:
pkgconf_node_t iter
char *package
pkgconf_pkg_comparator_t compare
char *version
pkgconf_pkg_t *parent
struct pkgconf_pkg_:
pkgconf_node_t cache_iter
int refcount
char *id
char *filename
char *realname
char *version
char *description
char *url
char *pc_filedir
pkgconf_list_t libs
pkgconf_list_t libs_private
pkgconf_list_t cflags
pkgconf_list_t cflags_private
pkgconf_list_t requires
pkgconf_list_t requires_private
pkgconf_list_t conflicts
pkgconf_list_t provides
pkgconf_list_t vars
unsigned int flags
pkgconf_pkg_t *pkgconf_pkg_ref(const pkgconf_client_t *client, pkgconf_pkg_t *pkg)
void pkgconf_pkg_unref(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
void pkgconf_pkg_free(pkgconf_client_t *client, pkgconf_pkg_t *pkg)
pkgconf_pkg_t *pkgconf_pkg_find(pkgconf_client_t *client, const char *name, unsigned int flags)
unsigned int pkgconf_pkg_traverse(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_pkg_traverse_func_t func, void *data, int maxdepth, unsigned int flags)
unsigned int pkgconf_pkg_verify_graph(pkgconf_client_t *client, pkgconf_pkg_t *root, int depth, unsigned int flags)
pkgconf_pkg_t *pkgconf_pkg_verify_dependency(pkgconf_client_t *client, pkgconf_dependency_t *pkgdep, unsigned int flags, unsigned int *eflags)
const char *pkgconf_pkg_get_comparator(const pkgconf_dependency_t *pkgdep)
unsigned int pkgconf_pkg_cflags(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth, unsigned int flags)
unsigned int pkgconf_pkg_libs(pkgconf_client_t *client, pkgconf_pkg_t *root, pkgconf_list_t *list, int maxdepth, unsigned int flags)
pkgconf_pkg_comparator_t pkgconf_pkg_comparator_lookup_by_name(const char *name)
pkgconf_pkg_t *pkgconf_builtin_pkg_get(const char *name)
void pkgconf_queue_push(pkgconf_list_t *list, const char *package)
bool pkgconf_queue_compile(pkgconf_client_t *client, pkgconf_pkg_t *world, pkgconf_list_t *list)
void pkgconf_queue_free(pkgconf_list_t *list)
bool pkgconf_queue_apply(pkgconf_client_t *client, pkgconf_list_t *list, pkgconf_queue_apply_func_t func, int maxdepth, unsigned int flags, void *data)
bool pkgconf_queue_validate(pkgconf_client_t *client, pkgconf_list_t *list, int maxdepth, unsigned int flags)
pkgconf_pkg_t *pkgconf_scan_all(pkgconf_client_t *client, void *ptr, pkgconf_pkg_iteration_func_t func)