|
1 | | -// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0 |
2 | | - |
3 | | -package glide |
4 | | - |
5 | | -// #cgo LDFLAGS: -lglide_ffi |
6 | | -// #cgo !windows LDFLAGS: -lm |
7 | | -// #cgo darwin LDFLAGS: -framework Security |
8 | | -// #cgo darwin,amd64 LDFLAGS: -framework CoreFoundation |
9 | | -// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/rustbin/x86_64-unknown-linux-gnu |
10 | | -// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/rustbin/aarch64-unknown-linux-gnu |
11 | | -// #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/rustbin/aarch64-apple-darwin |
12 | | -// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/rustbin/x86_64-apple-darwin |
13 | | -// #include "../lib.h" |
14 | | -// |
15 | | -// void successCallback(void *channelPtr, struct CommandResponse *message); |
16 | | -// void failureCallback(void *channelPtr, char *errMessage, RequestErrorType errType); |
17 | | -// void pubSubCallback(void *clientPtr, enum PushKind kind, |
18 | | -// const uint8_t *message, int64_t message_len, |
19 | | -// const uint8_t *channel, int64_t channel_len, |
20 | | -// const uint8_t *pattern, int64_t pattern_len); |
21 | | -import "C" |
| 1 | +// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0 |
| 2 | + |
| 3 | +package glide |
| 4 | + |
| 5 | +// #cgo LDFLAGS: -lglide_ffi |
| 6 | +// #cgo !windows LDFLAGS: -lm |
| 7 | +// #cgo darwin LDFLAGS: -framework Security |
| 8 | +// #cgo darwin,amd64 LDFLAGS: -framework CoreFoundation |
| 9 | +// #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/rustbin/x86_64-unknown-linux-gnu |
| 10 | +// #cgo linux,arm64 LDFLAGS: -L${SRCDIR}/rustbin/aarch64-unknown-linux-gnu |
| 11 | +// #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/rustbin/aarch64-apple-darwin |
| 12 | +// #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/rustbin/x86_64-apple-darwin |
| 13 | +// #include "../lib.h" |
| 14 | +import "C" |
0 commit comments