-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmax-private.h
58 lines (45 loc) · 1.58 KB
/
smax-private.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* \file
*
* \date Jun 25, 2019
* \author Attila Kovacs
*
* \brief
* A set of private SMA-X routines used by the API library but should not be exposed outside.
*
*/
#ifndef SMAX_PRIVATE_H_
#define SMAX_PRIVATE_H_
#define __XCHANGE_INTERNAL_API__ ///< User internal definitions
#include <smax.h>
#define RELEASEID "<release>" ///< Redis PUB/SUB channel prefix for wait release notifications.
/// \cond PROTECTED
typedef struct PullRequest {
char *group;
char *key;
void *value; ///< Pointer to storage (such as double*), or pointer to pointers (char**) for X_STRING
XType type;
int count;
XMeta *meta;
struct PullRequest *next;
} PullRequest;
int smaxLockConfig();
int smaxUnlockConfig();
int smaxLockNotify();
int smaxUnlockNotify();
int smaxConfigTLSAsync(Redis *redis);
long smaxGetHash(const char *buf, int size);
int smaxRead(PullRequest *req, int channel);
int smaxWrite(const char *group, const XField *f);
void smaxDestroyPullRequest(PullRequest *p);
int smaxProcessReadResponse(RESP *reply, PullRequest *req);
void smaxProcessPipedWritesAsync(RESP *reply);
unsigned char smaxGetHashLookupIndex(const char *group, int lGroup, const char *key, int lKey);
char *smaxGetUpdateChannelPattern(const char *table, const char *key);
int smaxStorePush(const char *table, const XField *field);
void smaxSocketErrorHandler(Redis *r, enum redisx_channel channel, const char *op);
int smaxScriptError(const char *name, int status);
int smaxScriptErrorAsync(const char *name, int status);
boolean smaxIsDisabled();
/// \endcond
#endif /* SMAX_PRIVATE_H_ */