server.expose(this, "", (unsigned int)(InternalEncryptionServer::getSupportedOptions)());
server.expose(this, "", (std::string)(InternalEncryptionServer::getDevicePath)());
- server.createNotification("InternalEncryptionServer::mount");
-
std::string source = findDevPath();
if (getStateInternal() == State::Encrypted) {
try {
engine->mount(key, getOptions());
- server.notify("InternalEncryptionServer::mount");
+ EventNotifier::emit("internal", "mounted");
runtime::File("/tmp/.lazy_mount").create(O_WRONLY);
runtime::File("/tmp/.unlock_mnt").create(O_WRONLY);
INFO(SINK, "Encryption completed.");
::vconf_set_str(VCONFKEY_ODE_CRYPTO_STATE, "encrypted");
- server.notify("InternalEncryptionServer::mount");
+ EventNotifier::emit("internal", "encrypted");
file.remove();