Add back accidentally deleted getFeatures() methods

This commit is contained in:
Paul Schaub 2024-01-24 19:05:50 +01:00
parent 02f6e37c4f
commit f8b53f0eda
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,12 @@ interface SelfSignatureSubpackets : BaseSignatureSubpackets {
fun setFeatures(features: Features?): SelfSignatureSubpackets
fun getFeatures(): List<Feature> = getFeaturesPacket()
?.let { Feature.fromBitmask(it.features.toInt()) }
.orEmpty()
fun getFeaturesPacket(): Features?
companion object {
/** Factory method for a [Callback] that does nothing. */