-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalPrefs.h
24 lines (18 loc) · 926 Bytes
/
GlobalPrefs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* Copyright 2021 the SumatraPDF project authors (see AUTHORS file).
License: GPLv3 */
extern GlobalPrefs* gGlobalPrefs;
FileState* NewDisplayState(const char* filePath);
void DeleteDisplayState(FileState* fs);
Favorite* NewFavorite(int pageNo, const WCHAR* name, const WCHAR* pageLabel);
void DeleteFavorite(Favorite* fav);
GlobalPrefs* NewGlobalPrefs(const char* data);
ByteSlice SerializeGlobalPrefs(GlobalPrefs* prefs, const char* prevData);
void DeleteGlobalPrefs(GlobalPrefs* gp);
SessionData* NewSessionData();
TabState* NewTabState(FileState* fs);
void ResetSessionState(Vec<SessionData*>* sessionData);
ParsedColor* GetParsedColor(const char* s, ParsedColor& parsed);
void SetFileStatePath(FileState* fs, const char* path);
void SetFileStateRelativePath(FileState* fs, const char* path);
void SetFileStatePath(FileState* fs, const WCHAR* path);
#define GetPrefsColor(name) GetParsedColor(name, name##Parsed)