summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Markdown/GFM/SyntaxExtensionList.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Markdown/GFM/SyntaxExtensionList.pm')
-rw-r--r--Bugzilla/Markdown/GFM/SyntaxExtensionList.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/Bugzilla/Markdown/GFM/SyntaxExtensionList.pm b/Bugzilla/Markdown/GFM/SyntaxExtensionList.pm
new file mode 100644
index 000000000..06a9798c2
--- /dev/null
+++ b/Bugzilla/Markdown/GFM/SyntaxExtensionList.pm
@@ -0,0 +1,23 @@
+package Bugzilla::Markdown::GFM::SyntaxExtensionList;
+
+use 5.10.1;
+use strict;
+use warnings;
+
+sub SETUP {
+ my ($class, $FFI) = @_;
+
+ $FFI->custom_type(
+ markdown_syntax_extension_list_t => {
+ native_type => 'opaque',
+ native_to_perl => sub {
+ bless \$_[0], $class if $_[0];
+ },
+ perl_to_native => sub { $_[0] ? ${ $_[0] } : 0 },
+ }
+ );
+}
+
+1;
+
+__END__