Dillo v3.1.1-91-g6d5b3ee3
Loading...
Searching...
No Matches
paths.hh
Go to the documentation of this file.
1/*
2 * File: paths.hh
3 *
4 * Copyright 2006-2009 Jorge Arellano Cid <jcid@dillo.org>
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 3 of the License, or
9 * (at your option) any later version.
10 */
11
12#ifndef __PATHS_HH__
13#define __PATHS_HH__
14
15#define PATHS_RC_PREFS "dillorc"
16#define PATHS_RC_KEYS "keysrc"
17#define PATHS_RC_DOMAIN "domainrc"
18#define PATHS_HSTS_PRELOAD "hsts_preload"
19
20class Paths {
21public:
22 static void init(void);
23 static void free(void);
24 static char *getOldWorkingDir(void);
25 static FILE *getPrefsFP(const char *rcFile);
26};
27
28#endif /* __PATHS_HH__ */
Definition paths.hh:20
static char * getOldWorkingDir(void)
Return the initial current working directory in a string.
Definition paths.cc:64
static void init(void)
Changes current working directory to /tmp and creates ~/.dillo if not exists.
Definition paths.cc:31
static FILE * getPrefsFP(const char *rcFile)
Examines the path for "rcFile" and assign its file pointer to "fp".
Definition paths.cc:80
static void free(void)
Free memory.
Definition paths.cc:72