1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-25 04:17:59 +01:00

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

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. */