Changed mft_h264_decoder's API to match with video_decode_engine.h. Also changed...
[chromium-blink-merge.git] / base / setproctitle_linux.h
blob769338cdece6e93c91e2a36f8ed28e26a2042a55
1 // Copyright (c) 2009 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.
5 #ifndef BASE_SETPROCTITLE_LINUX_H_
6 #define BASE_SETPROCTITLE_LINUX_H_
7 #pragma once
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
13 // Set the process title that will show in "ps" and similar tools. Takes
14 // printf-style format string and arguments. After calling setproctitle()
15 // the original main() argv[] array should not be used. By default, the
16 // original argv[0] is prepended to the format; this can be disabled by
17 // including a '-' as the first character of the format string.
18 void setproctitle(const char* fmt, ...);
20 // Initialize state needed for setproctitle() on Linux. Pass the argv pointer
21 // from main() to setproctitle_init() before calling setproctitle().
22 void setproctitle_init(char** main_argv);
24 #ifdef __cplusplus
26 #endif
28 #endif // BASE_SETPROCTITLE_LINUX_H_