summaryrefslogtreecommitdiff
path: root/common/linux/freeze.h
blob: 892b5b1fbd83fca29c04e9ff7760f4ada078e576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * A library for storing parameters in a key file
 * 
 * This library is an analog to the windows freeze library
 * developed by Jonathan Westhues.
 * 
 * R Ramana, 2018
 */

#ifndef __FREEZE_H
#define __FREEZE_H

// #ifndef FREEZE_SUBKEY
// #error must define FREEZE_SUBKEY to a string uniquely identifying the app
// #endif

// #define FreezeWindowPos(hwnd) FreezeWindowPosF(hwnd, FREEZE_SUBKEY, #hwnd)
// void FreezeWindowPosF(HWND hWnd, char *subKey, char *name);

// #define ThawWindowPos(hwnd) ThawWindowPosF(hwnd, FREEZE_SUBKEY, #hwnd)
// void ThawWindowPosF(HWND hWnd, char *subKey, char *name);

// #define FreezeDWORD(val) FreezeDWORDF(val, FREEZE_SUBKEY, #val)
// void FreezeDWORDF(DWORD val, char *subKey, char *name);

// #define ThawDWORD(val) val = ThawDWORDF(val, FREEZE_SUBKEY, #val)
// DWORD ThawDWORDF(DWORD val, char *subKey, char *name);

// #define FreezeString(val) FreezeStringF(val, FREEZE_SUBKEY, #val)
// void FreezeStringF(char *val, char *subKey, char *name);

// #define ThawString(val, max) ThawStringF(val, max, FREEZE_SUBKEY, #val)
// void ThawStringF(char *val, int max, char *subKey, char *name);


#endif