cfengine  3.15.4
About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.
  Fossies Dox: cfengine-3.15.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

known_dirs.h
Go to the documentation of this file.
1 /*
2  Copyright 2020 Northern.tech AS
3 
4  This file is part of CFEngine 3 - written and maintained by Northern.tech AS.
5 
6  This program is free software; you can redistribute it and/or modify it
7  under the terms of the GNU General Public License as published by the
8  Free Software Foundation; version 3.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 
19  To the extent this program is licensed as part of the Enterprise
20  versions of CFEngine, the applicable Commercial Open Source License
21  (COSL) may apply to this file if you as a licensee so wish it. See
22  included file COSL.txt.
23 */
24 
25 #ifndef CFENGINE_KNOWN_DIRS_H
26 #define CFENGINE_KNOWN_DIRS_H
27 
28 #include <platform.h>
29 
30 const char *GetDefaultDir_helper(char dir[PATH_MAX], const char *root_dir,
31  const char *append_dir);
32 
33 const char *GetWorkDir(void);
34 const char *GetBinDir(void);
35 const char *GetLogDir(void);
36 const char *GetPidDir(void);
37 const char *GetMasterDir(void);
38 const char *GetInputDir(void);
39 const char *GetStateDir(void);
40 
41 #ifdef __MINGW32__
42 
43 const char *GetDefaultWorkDir(void);
44 const char *GetDefaultLogDir(void);
45 const char *GetDefaultPidDir(void);
46 const char *GetDefaultMasterDir(void);
47 const char *GetDefaultInputDir(void);
48 
49 #endif
50 
51 #endif
const char * GetDefaultInputDir(void)
Definition: known_dirs.c:107
const char * GetDefaultLogDir(void)
Definition: known_dirs.c:104
const char * GetDefaultPidDir(void)
Definition: known_dirs.c:105
const char * GetDefaultWorkDir(void)
Definition: known_dirs.c:102
const char * GetDefaultMasterDir(void)
Definition: known_dirs.c:106
const char * GetInputDir(void)
Definition: known_dirs.c:182
const char * GetLogDir(void)
Definition: known_dirs.c:146
const char * GetPidDir(void)
Definition: known_dirs.c:153
const char * GetStateDir(void)
Definition: known_dirs.c:186
const char * GetBinDir(void)
Definition: known_dirs.c:121
const char * GetDefaultDir_helper(char dir[4096], const char *root_dir, const char *append_dir)
const char * GetMasterDir(void)
Definition: known_dirs.c:184
const char * GetWorkDir(void)
Definition: known_dirs.c:114
#define PATH_MAX
Definition: platform.h:176