1 // Copyright 2018 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef SYSTEM_API_DBUS_VM_CICERONE_DBUS_CONSTANTS_H_
6 #define SYSTEM_API_DBUS_VM_CICERONE_DBUS_CONSTANTS_H_
7 
8 namespace vm_tools {
9 namespace cicerone {
10 
11 const char kVmCiceroneInterface[] = "org.chromium.VmCicerone";
12 const char kVmCiceroneServicePath[] = "/org/chromium/VmCicerone";
13 const char kVmCiceroneServiceName[] = "org.chromium.VmCicerone";
14 
15 // Methods to be called from vm_concierge.
16 const char kNotifyVmStartedMethod[] = "NotifyVmStarted";
17 const char kNotifyVmStoppedMethod[] = "NotifyVmStopped";
18 const char kGetContainerTokenMethod[] = "GetContainerToken";
19 const char kIsContainerRunningMethod[] = "IsContainerRunning";
20 
21 // Methods to be called from Chrome.
22 const char kLaunchContainerApplicationMethod[] = "LaunchContainerApplication";
23 const char kGetContainerAppIconMethod[] = "GetContainerAppIcon";
24 const char kLaunchVshdMethod[] = "LaunchVshd";
25 const char kGetLinuxPackageInfoMethod[] = "GetLinuxPackageInfo";
26 const char kInstallLinuxPackageMethod[] = "InstallLinuxPackage";
27 const char kCreateLxdContainerMethod[] = "CreateLxdContainer";
28 const char kStartLxdContainerMethod[] = "StartLxdContainer";
29 const char kGetLxdContainerUsernameMethod[] = "GetLxdContainerUsername";
30 const char kSetUpLxdContainerUserMethod[] = "SetUpLxdContainerUser";
31 
32 // Methods to be called from debugd.
33 const char kGetDebugInformation[] = "GetDebugInformation";
34 
35 // Signals.
36 const char kContainerStartedSignal[] = "ContainerStarted";
37 const char kContainerShutdownSignal[] = "ContainerShutdown";
38 const char kInstallLinuxPackageProgressSignal[] =
39     "InstallLinuxPackageProgress";
40 const char kLxdContainerCreatedSignal[] = "LxdContainerCreated";
41 const char kLxdContainerDownloadingSignal[] = "LxdContainerDownloading";
42 const char kTremplinStartedSignal[] = "TremplinStarted";
43 
44 }  // namespace cicerone
45 }  // namespace vm_tools
46 
47 
48 #endif  // SYSTEM_API_DBUS_VM_CICERONE_DBUS_CONSTANTS_H_
49