Skip to content

Commit

Permalink
[C++] Expose ZSTD and Snappy compression to C API (apache#7014)
Browse files Browse the repository at this point in the history
### Motivation

I'd like to be able to use zstd and/or Snappy compression with the C API, so I've added them to the `pulsar_compression_type` enum.

### Modifications

I've added `pulsar_CompressionZSTD` and `pulsar_CompressionSNAPPY` to `pulsar_compression_type`
  • Loading branch information
fretiq authored and huangdx0726 committed Aug 24, 2020
1 parent 5706fad commit 0f5d72d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pulsar-client-cpp/include/pulsar/c/producer_configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ typedef enum { pulsar_Murmur3_32Hash, pulsar_BoostHash, pulsar_JavaStringHash }
typedef enum {
pulsar_CompressionNone = 0,
pulsar_CompressionLZ4 = 1,
pulsar_CompressionZLib = 2
pulsar_CompressionZLib = 2,
pulsar_CompressionZSTD = 3,
pulsar_CompressionSNAPPY = 4
} pulsar_compression_type;

typedef enum {
Expand Down

0 comments on commit 0f5d72d

Please sign in to comment.