2 * Copyright (c) 2013, Novell Inc.
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
9 * linkedpkg.h (internal)
12 #ifndef LIBSOLV_LINKEDPKG_H
13 #define LIBSOLV_LINKEDPKG_H
16 has_package_link(Pool *pool, Solvable *s)
18 const char *name = pool_id2str(pool, s->name);
19 if (name[0] == 'a' && !strncmp("application:", name, 12))
21 if (name[0] == 'p' && !strncmp("pattern:", name, 8))
23 if (name[0] == 'p' && !strncmp("product:", name, 8))
28 extern void find_application_link(Pool *pool, Solvable *s, Id *reqidp, Queue *qr, Id *prvidp, Queue *qp);
29 extern void find_product_link(Pool *pool, Solvable *s, Id *reqidp, Queue *qr, Id *prvidp, Queue *qp);
30 extern void find_pattern_link(Pool *pool, Solvable *s, Id *reqidp, Queue *qr, Id *prvidp, Queue *qp);
32 extern Id find_autopattern_name(Pool *pool, Solvable *s);
33 extern Id find_autoproduct_name(Pool *pool, Solvable *s);
36 extern void find_package_link(Pool *pool, Solvable *s, Id *reqidp, Queue *qr, Id *prvidp, Queue *qp);
37 extern int pool_link_evrcmp(Pool *pool, Solvable *s1, Solvable *s2);
38 extern void extend_updatemap_to_buddies(Solver *solv);