mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-03 17:13:16 +00:00
Added ability to merge AgentCapabilities from db
This commit is contained in:
@@ -3235,6 +3235,17 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
|
||||
}
|
||||
}
|
||||
|
||||
// Check to see if any capabilities are specified in the db
|
||||
{
|
||||
int dbCapabilities = 0;
|
||||
if (ILibSimpleDataStore_Get(agentHost->masterDb, "AgentCapabilities", NULL, 0) == 4)
|
||||
{
|
||||
ILibSimpleDataStore_Get(agentHost->masterDb, "AgentCapabilities", &dbCapabilities, 4);
|
||||
agentHost->capabilities |= dbCapabilities;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
// If running as a Windows service, set basic values to the registry, this allows other applications to know what the mesh agent is doing.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user