Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
22
_module/nss/nwnx_redis_ps.nss
Normal file
22
_module/nss/nwnx_redis_ps.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
/// @ingroup redis
|
||||
/// @brief Interface to Redis PUBSUB
|
||||
/// @{
|
||||
/// @file nwnx_redis_ps.nss
|
||||
|
||||
/// A redis PUBSUB message
|
||||
struct NWNX_Redis_PubSubMessageData {
|
||||
string channel; ///< The channel
|
||||
string message; ///< The message
|
||||
};
|
||||
|
||||
/// @brief Get a PUBSUB message
|
||||
/// @return A NWNX_Redis_PubSubMessageData struct.
|
||||
struct NWNX_Redis_PubSubMessageData NWNX_Redis_GetPubSubMessageData()
|
||||
{
|
||||
struct NWNX_Redis_PubSubMessageData ret;
|
||||
NWNXCall("NWNX_Redis", "GetPubSubData");
|
||||
ret.message = NWNXPopString();
|
||||
ret.channel = NWNXPopString();
|
||||
return ret;
|
||||
}
|
||||
/// @}
|
Reference in New Issue
Block a user