MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / addAppManifest

Function addAppManifest

Tactility/Source/app/AppRegistration.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static Mutex hash_mutex;
18
19void addAppManifest(const AppManifest& manifest) {
20 LOGGER.info("Registering manifest {}", manifest.appId);
21
22 hash_mutex.lock();
23
24 if (app_manifest_map.contains(manifest.appId)) {
25 LOGGER.warn("Overwriting existing manifest for {}", manifest.appId);
26 }
27
28 app_manifest_map[manifest.appId] = std::make_shared<AppManifest>(manifest);
29
30 hash_mutex.unlock();
31}
32
33bool removeAppManifest(const std::string& id) {
34 LOGGER.info("Removing manifest for {}", id);

Callers 4

registerInternalAppsFunction · 0.85
registerInstalledAppFunction · 0.85
runFunction · 0.85
installFunction · 0.85

Calls 4

infoMethod · 0.80
warnMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected