22 #ifndef __EDELIB_XSETTINGSCOMMON_H__
23 #define __EDELIB_XSETTINGSCOMMON_H__
25 #include "edelib-global.h"
28 #define XSETTINGS_PAD(n, p) ((n + p - 1) & (~(p - 1)))
148 struct XSettingsBuffer {
159 EDELIB_API
bool xsettings_list_add(XSettingsList** list, XSettingsSetting* setting);
164 EDELIB_API
bool xsettings_list_remove(XSettingsList** list,
const char* name);
169 EDELIB_API XSettingsSetting* xsettings_list_find(XSettingsList* list,
const char* name);
174 EDELIB_API
void xsettings_list_free(XSettingsList* list);
181 EDELIB_API XSettingsSetting* xsettings_setting_copy(XSettingsSetting* setting);
186 EDELIB_API
void xsettings_setting_free(XSettingsSetting* setting);
191 EDELIB_API
bool xsettings_setting_equal(XSettingsSetting* s1, XSettingsSetting* s2);
196 EDELIB_API
int xsettings_setting_len(
const XSettingsSetting* setting);
201 EDELIB_API
char xsettings_byte_order(
void);
208 EDELIB_API XSettingsList* xsettings_decode(
unsigned char* data,
int len,
unsigned long* serial);
213 EDELIB_API
void xsettings_encode(
const XSettingsSetting* setting, XSettingsBuffer* buffer);
217 void xsettings_manager_notify(XSettingsData* data);
218 void xsettings_manager_set_setting(XSettingsData* data, XSettingsSetting* setting);
219 void xsettings_manager_delete_setting(XSettingsData* data,
const char* name);
char * name
Definition: XSettingsCommon.h:63
Atom selection_atom
Definition: XSettingsCommon.h:132
unsigned short alpha
Definition: XSettingsCommon.h:54
Atom manager_atom
Definition: XSettingsCommon.h:135
string (char*) type
Definition: XSettingsCommon.h:38
List internaly used by XSETTINGS classes.
Definition: XSettingsCommon.h:82
int screen
Definition: XSettingsCommon.h:126
int type
Definition: XSettingsCommon.h:37
Window class.
Definition: Window.h:73
XSettingsList * settings
Definition: XSettingsCommon.h:141
RGBA type.
Definition: XSettingsCommon.h:39
XSettingsList * next
Definition: XSettingsCommon.h:86
Main data shared between client and manager.
Definition: XSettingsCommon.h:122
unsigned long last_change_serial
Definition: XSettingsCommon.h:75
unsigned long serial
Definition: XSettingsCommon.h:144
XSettingsType
Types used for XSETTINGS.
Definition: XSettingsCommon.h:36
Structure for tracking XSETTINGS values.
Definition: XSettingsCommon.h:61
XSettingsSetting * setting
Definition: XSettingsCommon.h:84
unsigned short blue
Definition: XSettingsCommon.h:52
XSettingsType type
Definition: XSettingsCommon.h:65
unsigned short red
Definition: XSettingsCommon.h:48
Color data for XSETTINGS.
Definition: XSettingsCommon.h:46
Window manager_win
Definition: XSettingsCommon.h:129
unsigned short green
Definition: XSettingsCommon.h:50
Atom xsettings_atom
Definition: XSettingsCommon.h:138
Display * display
Definition: XSettingsCommon.h:124