1/*
2 * ProFTPD - FTP server daemon
3 * Copyright (c) 2007 The ProFTPD Project team //krazy:exclude=copyright
4 * Copyright (c) 2007 Alex Merry <alex.merry@kdemail.net>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the
18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
20 */
21
22#ifndef PROCTITLE_H
23#define PROCTITLE_H
24
25/**
26 * Initialises the program data variables to allow the
27 * changing of the process title. This _must_ be called
28 * before proctitle_set, and must only be called once.
29 *
30 * @param argc argc, as passed to main()
31 * @param argv argv, as passed to main()
32 * @param envp envp, as passed to main()
33 */
34void proctitle_init(int argc, char *argv[], char *envp[]);
35
36/**
37 * Change the process title. It accepts a variable number
38 * of arguments (a va_list) in the manner of the printf
39 * family of functions. See the documentation for
40 * printf for a description of the format string.
41 */
42void proctitle_set(const char *fmt, ...)
43#ifdef __GNUC__
44 __attribute__ (( format ( printf, 1, 2 ) ) )
45#endif
46;
47
48#endif /* PROCTITLE_H */
49