• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium 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 TOOLS_ANDROID_COMMON_DAEMON_H_
6 #define TOOLS_ANDROID_COMMON_DAEMON_H_
7 
8 class CommandLine;
9 
10 namespace tools {
11 
12 bool HasHelpSwitch(const CommandLine& command_line);
13 
14 bool HasNoSpawnDaemonSwitch(const CommandLine& command_line);
15 
16 void ShowHelp(const char* program,
17               const char* extra_title,
18               const char* extra_descriptions);
19 
20 // Spawns a daemon process and exits the current process with exit_status.
21 // Any code executed after this function returns will be executed in the
22 // spawned daemon process.
23 void SpawnDaemon(int exit_status);
24 
25 }  // namespace tools
26 
27 #endif  // TOOLS_ANDROID_COMMON_DAEMON_H_
28 
29