mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-14 09:40:20 +00:00
cfgfiles: Introduce an after_update callback
This allows individual preferences to take action when their value is changed. Signed-off-by: Ben Gamari <ben@smart-cactus.org>
This commit is contained in:
committed by
Patrick Griffis
parent
6a0e131b88
commit
a970c1ae2e
@@ -71,6 +71,11 @@ struct prefs
|
||||
unsigned short offset;
|
||||
unsigned short len;
|
||||
unsigned short type;
|
||||
/*
|
||||
* an optional function which will be called after the preference value has
|
||||
* been updated.
|
||||
*/
|
||||
void (*after_update)(void);
|
||||
};
|
||||
|
||||
#define TYPE_STR 0
|
||||
|
||||
Reference in New Issue
Block a user