idnode: allow NOSAVE options to be "loaded".

This is needed since this routine is used to also load config on creation.
So if a NOSAVE option is included there it will not load it. If it really
is NOSAVE it shouldn't be in the config files anyway (due to NOSAVE check
on actual save).
This commit is contained in:
Adam Sutton 2013-09-19 22:17:59 +01:00
parent f720eb35e2
commit 3fdac50ad4

View file

@ -139,7 +139,7 @@ int idnode_write0 (idnode_t *self, htsmsg_t *m, int optmask, int dosave);
#define idclass_serialize(idc) idclass_serialize0(idc, 0)
#define idnode_serialize(in) idnode_serialize0(in, 0)
#define idnode_load(in, m) idnode_write0(in, m, PO_NOSAVE, 0)
#define idnode_load(in, m) idnode_write0(in, m, 0, 0)
#define idnode_save(in, m) idnode_read0(in, m, PO_NOSAVE)
#define idnode_update(in, m) idnode_write0(in, m, PO_RDONLY | PO_WRONCE, 1)