aboutsummaryrefslogtreecommitdiff
path: root/paludis/version_metadata.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/version_metadata.hh')
-rw-r--r--paludis/version_metadata.hh14
1 files changed, 12 insertions, 2 deletions
diff --git a/paludis/version_metadata.hh b/paludis/version_metadata.hh
index 3995f3540..2a5193fba 100644
--- a/paludis/version_metadata.hh
+++ b/paludis/version_metadata.hh
@@ -57,11 +57,19 @@ namespace paludis
};
/**
- * A pointer to a parse function.
+ * A pointer to a parse function for package dependencies.
*
* \ingroup grpversions
*/
- typedef std::tr1::shared_ptr<const CompositeDepSpec> (* ParserFunction) (const std::string &);
+ typedef std::tr1::shared_ptr<const CompositeDepSpec> (* DepParserFunction) (const std::string &,
+ const PackageDepSpecParseMode);
+
+ /**
+ * A pointer to a parse function for text.
+ *
+ * \ingroup grpversions
+ */
+ typedef std::tr1::shared_ptr<const CompositeDepSpec> (* TextParserFunction) (const std::string &);
#include <paludis/version_metadata-sr.hh>
@@ -78,6 +86,8 @@ namespace paludis
public:
virtual ~VersionMetadata();
+ PackageDepSpecParseMode eapi_as_package_dep_spec_parse_mode() const;
+
protected:
VersionMetadata(const VersionMetadataBase::Params<> &, const VersionMetadataCapabilities &);