Set compression framing enum value by appearance

0 = none (oldest)
1 = comp-lzo
2 = compress (newest)
This commit is contained in:
Davide De Rosa 2018-08-31 01:57:51 +02:00
parent a4375ba08a
commit 97866e6f23
2 changed files with 5 additions and 5 deletions

View File

@ -34,13 +34,13 @@ extension SessionProxy {
/// No compression framing.
case disabled
/// Framing compatible with 2.4 `compress`.
case compress
/// Framing compatible with `comp-lzo` (deprecated).
@available(*, deprecated)
case compLZO
/// Framing compatible with 2.4 `compress`.
case compress
var native: CompressionFramingNative {
guard let val = CompressionFramingNative(rawValue: rawValue) else {
fatalError("Unhandled CompressionFraming bridging")

View File

@ -27,6 +27,6 @@
typedef NS_ENUM(NSInteger, CompressionFramingNative) {
CompressionFramingNativeDisabled,
CompressionFramingNativeCompress,
CompressionFramingNativeCompLZO __attribute__((deprecated))
CompressionFramingNativeCompLZO __attribute__((deprecated)),
CompressionFramingNativeCompress
};