| 1 | # Copyright (c) 2026 Philipp Schafft | ||
| 2 | |||
| 3 | # licensed under Artistic License 2.0 (see LICENSE file) | ||
| 4 | |||
| 5 | # ABSTRACT: Work with Tag databases, plugin base package | ||
| 6 | |||
| 7 | package Data::TagDB::Interface::Plugin; | ||
| 8 | |||
| 9 | use v5.10; | ||
| 10 | use strict; | ||
| 11 | use warnings; | ||
| 12 | |||
| 13 | use parent (); | ||
| 14 | |||
| 15 | our $VERSION = v0.16; | ||
| 16 | |||
| 17 | our %_known_plugins; | ||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | sub plugin_attach { | ||
| 22 | my ($pkg, $db, $conf, %opts) = @_; | ||
| 23 | |||
| 24 | return {}; | ||
| 25 | } | ||
| 26 | |||
| 27 | # ---- Private helpers ---- | ||
| 28 | |||
| 29 | sub import { | ||
| 30 | my ($caller) = caller(0); | ||
| 31 | $_known_plugins{$caller} = undef; | ||
| 32 | @_ = (parent::, -norequire, __PACKAGE__); | ||
| 33 | goto &parent::import; | ||
| 34 | } | ||
| 35 | |||
| 36 | |||
| 37 | 1; | ||
| 38 | |||
| 39 | __END__ |