]> git.ipfire.org Git - network.git/commit
header-zone: refactor hook_edit nad hook_new
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 19 Jul 2017 14:10:20 +0000 (16:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 17:10:11 +0000 (19:10 +0200)
commit79e5203ec294cb9f51a48d070b64c1ce79e28855
treee1e4a0680a193700a051895597fd4c830c14f6b2
parent4cc762559bfe4e7de697e6ddd2c578d7e3b7091c
header-zone: refactor hook_edit nad hook_new

We now return error codes and break when something important goes wrong.
because of that, we have to split hook_new and hook_edit.
When zone_settins-read fails in hook_edit we cannot go but it would every time we would call it in hook_new.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/header-zone