1
0
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:
Bryan Roe
2019-01-17 18:06:33 -08:00
parent ba28e98ef7
commit a0767cd665

View File

@@ -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.
{