Make all public libsolv headers C++ safe
[platform/upstream/libsolv.git] / src / solverdebug.h
1 /*
2  * Copyright (c) 2008, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 /*
9  * solverdebug.h
10  *
11  */
12
13 #ifndef LIBSOLV_SOLVERDEBUG_H
14 #define LIBSOLV_SOLVERDEBUG_H
15
16 #include "pooltypes.h"
17 #include "pool.h"
18 #include "solver.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 extern Id *solver_create_decisions_obsoletesmap(Solver *solv);
25 extern void solver_printruleelement(Solver *solv, int type, Rule *r, Id v);
26 extern void solver_printrule(Solver *solv, int type, Rule *r);
27 extern void solver_printruleclass(Solver *solv, int type, Rule *r);
28 extern void solver_printproblem(Solver *solv, Id v);
29 extern void solver_printwatches(Solver *solv, int type);
30 extern void solver_printdecisionq(Solver *solv, int type);
31 extern void solver_printdecisions(Solver *solv);
32 extern void solver_printproblemruleinfo(Solver *solv, Id rule);
33 extern void solver_printprobleminfo(Solver *solv, Id problem);
34 extern void solver_printcompleteprobleminfo(Solver *solv, Id problem);
35 extern void solver_printsolution(Solver *solv, Id problem, Id solution);
36 extern void solver_printallsolutions(Solver *solv);
37 extern void solver_printtrivial(Solver *solv);
38
39 extern void transaction_print(Transaction *trans);
40
41 extern const char *solver_select2str(Pool *pool, Id select, Id what);
42 extern const char *pool_job2str(Pool *pool, Id how, Id what, Id flagmask);
43 extern const char *pool_selection2str(Pool *pool, Queue *selection, Id flagmask);
44 extern const char *solver_problemruleinfo2str(Solver *solv, SolverRuleinfo type, Id source, Id target, Id dep);
45 extern const char *solver_solutionelement2str(Solver *solv, Id p, Id rp);
46 extern const char *policy_illegal2str(Solver *solv, int illegal, Solvable *s, Solvable *rs);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* LIBSOLV_SOLVERDEBUG_H */
53