aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/xml_things_handle.hh
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-11-15 22:31:48 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-11-15 22:32:47 +0000
commit0007fc154be85f50a3d0f653cee66632b59e8652 (patch)
treeb5d5dde988a81ea1ccbd71f7277335ba2ecaf619 /paludis/repositories/e/xml_things_handle.hh
parent975390470d5f3635b1e2a4885af390cd3f405d17 (diff)
downloadpaludis-0007fc154be85f50a3d0f653cee66632b59e8652.tar.gz
paludis-0007fc154be85f50a3d0f653cee66632b59e8652.tar.xz
Don't segfault if one but not both of GLSAs and metadata.xml is enabled.
Diffstat (limited to 'paludis/repositories/e/xml_things_handle.hh')
-rw-r--r--paludis/repositories/e/xml_things_handle.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/paludis/repositories/e/xml_things_handle.hh b/paludis/repositories/e/xml_things_handle.hh
index 35ab7aac4..5d267f96a 100644
--- a/paludis/repositories/e/xml_things_handle.hh
+++ b/paludis/repositories/e/xml_things_handle.hh
@@ -41,10 +41,13 @@ namespace paludis
~XMLThingsHandle();
public:
- bool available() const PALUDIS_ATTRIBUTE((warn_unused_result));
+ typedef std::tr1::shared_ptr<GLSA> (* CreateGLSAFromXMLFilePtr) (const std::string &);
+ typedef std::tr1::shared_ptr<MetadataXML> (* CreateMetadataXMLFromXMLFilePtr) (const FSEntry &);
- std::tr1::shared_ptr<GLSA> (* create_glsa_from_xml_file() const) (const std::string &);
- std::tr1::shared_ptr<MetadataXML> (* create_metadata_xml_from_xml_file() const) (const FSEntry &);
+ CreateGLSAFromXMLFilePtr create_glsa_from_xml_file() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
+ CreateMetadataXMLFromXMLFilePtr create_metadata_xml_from_xml_file() const
+ PALUDIS_ATTRIBUTE((warn_unused_result));
};
}