swift: Update to the current version of cbindgen

...which handles enum variants slightly differently under the
configuration options we have ('remove_underscores', relevant for
generic types rather than enum variants). The new style is closer to
Apple-idiomatic anyway.
This commit is contained in:
Jordan Rose
2023-02-27 12:24:35 -08:00
parent df05576739
commit f781b17e74
8 changed files with 101 additions and 108 deletions

View File

@@ -17,16 +17,16 @@ public class CiphertextMessage: NativeHandleOwner {
}
public static var whisper: Self {
return Self(SignalCiphertextMessageType_Whisper)
return Self(SignalCiphertextMessageTypeWhisper)
}
public static var preKey: Self {
return Self(SignalCiphertextMessageType_PreKey)
return Self(SignalCiphertextMessageTypePreKey)
}
public static var senderKey: Self {
return Self(SignalCiphertextMessageType_SenderKey)
return Self(SignalCiphertextMessageTypeSenderKey)
}
public static var plaintext: Self {
return Self(SignalCiphertextMessageType_Plaintext)
return Self(SignalCiphertextMessageTypePlaintext)
}
}