Top |
#define | LI_TYPE_PACKAGE_GRAPH |
LiPackageGraph * | li_package_graph_new () |
LiPackageGraph * | li_package_graph_new_from_pkiarray () |
void | li_package_graph_initialize () |
void | li_package_graph_reset () |
GPtrArray * | li_package_graph_branch_to_array () |
gboolean | li_package_graph_node_get_any_parent_manual () |
GPtrArray * | li_package_graph_add_package () |
GPtrArray * | li_package_graph_add_package_install_todo () |
LiPackage * | li_package_graph_get_install_candidate () |
gboolean | li_package_graph_mark_installed () |
guint | li_package_graph_get_install_todo_count () |
gboolean | li_package_graph_test_foundation_dependency () |
void | li_package_graph_set_ignore_foundations () |
gboolean | li_package_graph_node_is_origin () |
LiPkgInfo * | li_find_satisfying_pkg () |
This class represents a graph of packages (nodes are LiPkgInfo instances, edges represent a dependency), as well as a hash-table of packages which need installation. It is mainly used by LiInstaller at time.
LiPackageGraph * li_package_graph_new_from_pkiarray (GPtrArray *pkiarray
,GError **error
);
Create a new package graph and populate it with data from an array of LiPkgInfo objects.
void li_package_graph_initialize (LiPackageGraph *pg
,GError **error
);
Load additional data to aid the resolving process.
void
li_package_graph_reset (LiPackageGraph *pg
);
Remove all nodes from the graph, except for the root node.
GPtrArray * li_package_graph_branch_to_array (LiPackageGraph *pg
,LiPkgInfo *root
,gboolean include_root
);
Get an array of LiPkgInfo objects this node depends on.
gboolean li_package_graph_node_get_any_parent_manual (LiPackageGraph *pg
,LiPkgInfo *root
);
Check if a node has children containing packages which were installed manually.
GPtrArray * li_package_graph_add_package (LiPackageGraph *pg
,LiPkgInfo *parent
,LiPkgInfo *pki
,LiPkgInfo *satisfied_dep
);
GPtrArray * li_package_graph_add_package_install_todo (LiPackageGraph *pg
,LiPkgInfo *parent
,LiPackage *pkg
,LiPkgInfo *satisfied_dep
);
LiPackage * li_package_graph_get_install_candidate (LiPackageGraph *pg
,LiPkgInfo *pki
);
gboolean li_package_graph_mark_installed (LiPackageGraph *pg
,LiPkgInfo *pki
);
guint
li_package_graph_get_install_todo_count
(LiPackageGraph *pg
);
Get the number of packages which need to be installed.
gboolean li_package_graph_test_foundation_dependency (LiPackageGraph *pg
,LiPkgInfo *dep_pki
,GError **error
);
Check if we have a foundation dependency.
void li_package_graph_set_ignore_foundations (LiPackageGraph *pg
,gboolean ignore
);
pg |
An instance of LiPackageGraph |
|
ignore |
|
gboolean li_package_graph_node_is_origin (LiPackageGraph *pg
,LiPkgInfo *root
);
Check if this node is an origin (it is no child of any other node).
“progress”
signalvoid user_function (LiPackageGraph *lipackagegraph, guint arg1, gpointer arg2, gpointer user_data)
lipackagegraph |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“stage-changed”
signalvoid user_function (LiPackageGraph *lipackagegraph, guint arg1, gpointer arg2, gpointer user_data)
lipackagegraph |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last