#include <libpackman/package.h>
Go to the source code of this file.
Data Structures | |
struct | _PmDependency |
A dependency. More... | |
PmDependency (De)allocation Functions | |
PmDependency * | pmNewDependency (void) |
Creates a new PmDependency. | |
PmDependency * | pmDuplicateDependency (PmDependency *baseDep) |
Duplicates an existing PmDependency. | |
void | pmDestroyDependency (PmDependency *dependency) |
Destroys the specified PmDependency. | |
Attribute Modification Functions | |
void | pmSetDependencyName (PmDependency *dep, const char *name) |
Sets the name of the specified dependency. | |
void | pmSetDependencyVersion (PmDependency *dep, const char *version, PmRelationship rel) |
Sets the version and the relationship for the dependency. | |
void | pmSetDependencyOwner (PmDependency *dep, const char *owner) |
Sets the name of the dependency's owner. | |
void | pmSetDependencyType (PmDependency *dep, PmDependencyType type) |
Sets the dependency's type. | |
Attribute Retrieval Functions | |
const char * | pmGetDependencyName (PmDependency *dep) |
Returns the name of the specified dependency. | |
const char * | pmGetDependencyVersion (PmDependency *dep, const char **version, PmRelationship *rel) |
Returns the version and the relationship of the specified dependency. | |
const char * | pmGetDependencyOwner (PmDependency *dep) |
Returns the name of the dependency's owner. | |
PmDependencyType | pmGetDependencyType (PmDependency *dep) |
Returns the dependency's type. | |
Requirements Iteration Functions | |
PmDependency * | pmFirstRequirement (PmPackage *package) |
Returns the first requirement in the list. | |
PmDependency * | pmNextRequirement (PmDependency *dep) |
Returns the next requirement in the list. | |
PmDependency * | pmPreviousRequirement (PmDependency *dep) |
Returns the previous requirement in the list. | |
Alternative Dependency Functions | |
void | pmAddAltRequirement (PmDependency *base, PmDependency *alt) |
Adds an alternative required dependency to an existing dependency. | |
PmDependency * | pmFirstAltRequirement (PmDependency *dep) |
Returns the first alternative required dependency. | |
unsigned int | pmGetAltRequirementCount (PmDependency *dep) |
Returns the number of alternative required dependencies for a specified dependency. | |
Provisions Iteration Functions | |
PmDependency * | pmFirstProvide (PmPackage *package) |
Returns the first provide in the list. | |
PmDependency * | pmNextProvide (PmDependency *dep) |
Returns the next provide in the list. | |
PmDependency * | pmPreviousProvide (PmDependency *dep) |
Returns the previous provide in the list. | |
Typedefs | |
typedef _PmDependency | PmDependency |
PmDependency. | |
typedef enum _PmDependencyType | PmDependencyType |
PmDependencyType. | |
Enumerations | |
enum | _PmDependencyType { PM_DEP_UNKNOWN = 0, PM_DEP_PROVIDES, PM_DEP_REQUIRED, PM_DEP_PRE_REQUIRED, PM_DEP_RECOMMENDED, PM_DEP_SUGGESTED, PM_DEP_ENHANCES, PM_DEP_REPLACES, PM_DEP_CONFLICTS, PM_DEP_VIRTUAL } |
A dependency type. More... |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
PmDependency.
|
|
PmDependencyType.
|
|
|
Adds an alternative required dependency to an existing dependency.
|
|
Destroys the specified PmDependency.
|
|
Duplicates an existing PmDependency.
|
|
Returns the first alternative required dependency.
|
|
Returns the first provide in the list.
|
|
Returns the first requirement in the list.
|
|
Returns the number of alternative required dependencies for a specified dependency.
|
|
Returns the name of the specified dependency.
|
|
Returns the name of the dependency's owner.
|
|
Returns the dependency's type.
|
|
Returns the version and the relationship of the specified dependency.
|
|
Creates a new PmDependency.
|
|
Returns the next provide in the list.
|
|
Returns the next requirement in the list.
|
|
Returns the previous provide in the list.
|
|
Returns the previous requirement in the list.
|
|
Sets the name of the specified dependency.
|
|
Sets the name of the dependency's owner.
|
|
Sets the dependency's type.
|
|
Sets the version and the relationship for the dependency. The relationship specifies whether the version needed is <, <=, =, >=, or > the value of version.
|