summaryrefslogtreecommitdiffstats
path: root/lib/Xconfig/xfree.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Xconfig/xfree.pm')
-rw-r--r--lib/Xconfig/xfree.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Xconfig/xfree.pm b/lib/Xconfig/xfree.pm
index 23c0910..edb1541 100644
--- a/lib/Xconfig/xfree.pm
+++ b/lib/Xconfig/xfree.pm
@@ -535,6 +535,11 @@ sub remove_extension {
delete $raw->{$extension};
%$raw or $raw_X->remove_Section('Extensions');
}
+sub get_extension {
+ my ($raw_X, $extension) = @_;
+ my $raw = $raw_X->get_Section('Extensions');
+ $raw && $raw->{Composite} && $raw->{Composite}[0]{val};
+}
################################################################################
# ModulePath ###################################################################