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 cdbartholomew committed Jul 24, 2020
1 parent ea427e5 commit c55147c
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 c55147c

Please sign in to comment.