Set compression framing enum value by appearance
0 = none (oldest) 1 = comp-lzo 2 = compress (newest)
This commit is contained in:
parent
a4375ba08a
commit
97866e6f23
|
@ -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")
|
||||
|
|
|
@ -27,6 +27,6 @@
|
|||
|
||||
typedef NS_ENUM(NSInteger, CompressionFramingNative) {
|
||||
CompressionFramingNativeDisabled,
|
||||
CompressionFramingNativeCompress,
|
||||
CompressionFramingNativeCompLZO __attribute__((deprecated))
|
||||
CompressionFramingNativeCompLZO __attribute__((deprecated)),
|
||||
CompressionFramingNativeCompress
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue