XPRMgetnextdep
XPRMgetnextdep |
Purpose
Synopsis
void *XPRMgetnextdep(XPRMmodel model, void *ref, const char **name, int *version, int *dso_pkg);
Arguments
model
|
Reference to a model
|
ref
|
Reference pointer or
NULL
|
name
|
Returned name of the package/module
|
version
|
Returned version of the package/module
|
dso_pkg
|
Returned type of the dependency:
0 for a module,
1 for a required package and
2 for an imported package
|
Return value
Reference pointer for the next call to
XPRMgetnextdep.
Further information
1. This function returns the next dependency of a model: model dependencies are the packages it includes and the modules it requires. The second parameter is used to store the current location in the table of dependencies; if this parameter is
NULL, the first dependency of the table is returned. This function returns
NULL if it is called with the reference to the last dependency defined by the given model. Otherwise, the returned value can be used as the input parameter
ref to get the following dependency and so on.
2. The data is returned ordered: the modules are first reported, then the required packages and finally the imported packages.
3. If the model (or package) has dynamic dependencies and it has not been loaded with option
"-l" (see
XPRMloadmod) the returned information includes data related to the loaded packages.
Related topics