diff options
author | Rr42 | 2018-05-25 18:13:24 +0530 |
---|---|---|
committer | Rr42 | 2018-05-25 18:13:24 +0530 |
commit | fc0a5f41e04859ea62a97f6c14c6854aa0ae8486 (patch) | |
tree | e85e11a8c79f1ee92d75f94d30c98e38094a419f /common/linux/freeze.h | |
parent | dcbd1d4e87abd5a90f903296a42a1464c007cc67 (diff) | |
download | LDMicroGtk-fc0a5f41e04859ea62a97f6c14c6854aa0ae8486.tar.gz LDMicroGtk-fc0a5f41e04859ea62a97f6c14c6854aa0ae8486.tar.bz2 LDMicroGtk-fc0a5f41e04859ea62a97f6c14c6854aa0ae8486.zip |
added linux freeze library (nonfunctional)
Diffstat (limited to 'common/linux/freeze.h')
-rw-r--r-- | common/linux/freeze.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/common/linux/freeze.h b/common/linux/freeze.h new file mode 100644 index 0000000..892b5b1 --- /dev/null +++ b/common/linux/freeze.h @@ -0,0 +1,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 |