mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
libeventserver: formatting code using astyle
Origin commit data
------------------
Branch: ni/coolstream
Commit: 34627f15d8
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Origin message was:
------------------
- libeventserver: formatting code using astyle
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -34,9 +34,9 @@
|
||||
|
||||
class CEventServer
|
||||
{
|
||||
public:
|
||||
public:
|
||||
|
||||
enum initiators
|
||||
enum initiators
|
||||
{
|
||||
INITID_CONTROLD,
|
||||
INITID_SECTIONSD,
|
||||
@@ -48,46 +48,46 @@ class CEventServer
|
||||
};
|
||||
|
||||
|
||||
struct commandRegisterEvent
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int clientID;
|
||||
char udsName[50];
|
||||
};
|
||||
struct commandRegisterEvent
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int clientID;
|
||||
char udsName[50];
|
||||
};
|
||||
|
||||
struct commandUnRegisterEvent
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int clientID;
|
||||
};
|
||||
struct commandUnRegisterEvent
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int clientID;
|
||||
};
|
||||
|
||||
struct eventHead
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int initiatorID;
|
||||
unsigned int dataSize;
|
||||
};
|
||||
struct eventHead
|
||||
{
|
||||
unsigned int eventID;
|
||||
unsigned int initiatorID;
|
||||
unsigned int dataSize;
|
||||
};
|
||||
|
||||
void registerEvent2(const unsigned int eventID, const unsigned int ClientID, const std::string &udsName);
|
||||
void registerEvent(const int fd);
|
||||
void unRegisterEvent2(const unsigned int eventID, const unsigned int ClientID);
|
||||
void unRegisterEvent(const int fd);
|
||||
void sendEvent(const unsigned int eventID, const initiators initiatorID, const void* eventbody = NULL, const unsigned int eventbodysize = 0);
|
||||
void registerEvent2(const unsigned int eventID, const unsigned int ClientID, const std::string &udsName);
|
||||
void registerEvent(const int fd);
|
||||
void unRegisterEvent2(const unsigned int eventID, const unsigned int ClientID);
|
||||
void unRegisterEvent(const int fd);
|
||||
void sendEvent(const unsigned int eventID, const initiators initiatorID, const void *eventbody = NULL, const unsigned int eventbodysize = 0);
|
||||
|
||||
protected:
|
||||
protected:
|
||||
|
||||
struct eventClient
|
||||
{
|
||||
char udsName[50];
|
||||
};
|
||||
struct eventClient
|
||||
{
|
||||
char udsName[50];
|
||||
};
|
||||
|
||||
//key: ClientID // Map is a Sorted Associative Container
|
||||
typedef std::map<unsigned int, eventClient> eventClientMap; // -> clients with lower ClientID receive events first
|
||||
//key: ClientID // Map is a Sorted Associative Container
|
||||
typedef std::map<unsigned int, eventClient> eventClientMap; // -> clients with lower ClientID receive events first
|
||||
|
||||
//key: eventID
|
||||
std::map<unsigned int, eventClientMap> eventData;
|
||||
//key: eventID
|
||||
std::map<unsigned int, eventClientMap> eventData;
|
||||
|
||||
bool sendEvent2Client(const unsigned int eventID, const initiators initiatorID, const eventClient* ClientData, const void* eventbody = NULL, const unsigned int eventbodysize = 0);
|
||||
bool sendEvent2Client(const unsigned int eventID, const initiators initiatorID, const eventClient *ClientData, const void *eventbody = NULL, const unsigned int eventbodysize = 0);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user