diff options
Diffstat (limited to 'src/dom/watcher.h')
-rw-r--r-- | src/dom/watcher.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/dom/watcher.h b/src/dom/watcher.h new file mode 100644 index 0000000..87f0a1b --- /dev/null +++ b/src/dom/watcher.h @@ -0,0 +1,32 @@ +/* + * This file is part of LibNSLayout + * Licensed under the ISC License, http://opensource.org/licenses/ISC + * Copyright 2015 Michael Drake <tlsa@netsurf-browser.org> + */ + +/** \file src/dom/watcher.h + * Layout object handling + */ + +#ifndef nslayout_dom_watcher_h_ +#define nslayout_dom_watcher_h_ + +#include <libnslayout/nslayout.h> + +/** + * Add DOM change watchers to the layout's document.' + * + * \param[in] layout nslayout_layout object to set watchers for. + * \return NSLAYOUT_OK on success, appropriate error otherwise. + */ +nslayout_error nsl_dom_watcher_add_for_layout(nslayout_layout *layout); + +/** + * Remove DOM change watchers from the layout's document. + * + * \param[in] layout nslayout_layout object remove watchers from. + * \return NSLAYOUT_OK on success, appropriate error otherwise. + */ +nslayout_error nsl_dom_watcher_remove_for_layout(nslayout_layout *layout); + +#endif |