diff --git a/grpc-haskell.cabal b/grpc-haskell.cabal index 2a4685b..35e3264 100644 --- a/grpc-haskell.cabal +++ b/grpc-haskell.cabal @@ -19,6 +19,7 @@ cabal-version: >=1.10 library exposed-modules: Network.GRPC + Network.GRPC.Constants Network.GRPC.Time -- other-modules: -- other-extensions: diff --git a/src/Network/GRPC/Constants.hsc b/src/Network/GRPC/Constants.hsc new file mode 100644 index 0000000..1642fca --- /dev/null +++ b/src/Network/GRPC/Constants.hsc @@ -0,0 +1,13 @@ +module Network.GRPC.Constants where + +#include "grpc/grpc.h" + +argEnableCensus = #const GRPC_ARG_ENABLE_CENSUS +argMaxConcurrentStreams = #const GRPC_ARG_MAX_CONCURRENT_STREAMS +argMaxMessageLength = #const GRPC_ARG_MAX_MESSAGE_LENGTH + +writeBufferHint :: Int +writeBufferHint = #const GRPC_WRITE_BUFFER_HINT + +writeNoCompress :: Int +writeNoCompress = #const GRPC_WRITE_NO_COMPRESS