mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
435a566751
* sumatrapdf - vendor import * everything compiles (libjpeg, poppler, fitz, sumatrapdf) * does NOT link (remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it) svn path=/trunk/; revision=29295
38 lines
742 B
C
38 lines
742 B
C
/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
|
|
The author disclaims copyright to this source code. */
|
|
#ifndef PREFS_H_
|
|
#define PREFS_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
typedef enum pref_type pref_type;
|
|
enum pref_type {
|
|
PT_INVALID = 0,
|
|
PT_INT,
|
|
PT_STRING
|
|
};
|
|
|
|
typedef struct prefs_data prefs_data;
|
|
|
|
/* describes all preferences in a program */
|
|
struct prefs_data {
|
|
const TCHAR * name;
|
|
pref_type type;
|
|
union {
|
|
void * data_void;
|
|
int * data_int;
|
|
TCHAR ** data_str;
|
|
} data;
|
|
};
|
|
|
|
TCHAR *prefs_to_tstr(prefs_data *prefs, size_t *tstr_len_cb_ptr);
|
|
int prefs_from_tstr(prefs_data *prefs, const TCHAR *str, size_t str_len_cb);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|