diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-15 16:06:24 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2018-08-30 12:16:47 +0100 |
commit | 7852370aca24e96b7a398164094ba8dcb637b748 (patch) | |
tree | d97bf759570bf54e0ae58a765e3241a2e9901e44 | |
parent | af02dd42e2e9adb341900dac10f96e684458dee6 (diff) | |
download | libnslayout-7852370aca24e96b7a398164094ba8dcb637b748.tar.gz libnslayout-7852370aca24e96b7a398164094ba8dcb637b748.tar.bz2 |
WIP: Layout node stuff. Not a lot here.
-rw-r--r-- | src/Makefile | 2 | ||||
-rw-r--r-- | src/node.c | 25 | ||||
-rw-r--r-- | src/node.h | 20 |
3 files changed, 46 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 7a6251d..b02f0b9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,6 +6,6 @@ # Released under the ISC License (see COPYING file) # Sources -DIR_SOURCES := layout.c +DIR_SOURCES := layout.c node.c include $(NSBUILD)/Makefile.subdir diff --git a/src/node.c b/src/node.c new file mode 100644 index 0000000..233e6c4 --- /dev/null +++ b/src/node.c @@ -0,0 +1,25 @@ +/* + * 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/node.c + * Layout node handling + */ + +#include <assert.h> +#include <stdlib.h> + +#include "libnslayout/nslayout.h" + +#include "layout.h" +#include "util/util.h" +#include "util/dom-str.h" + + +/** + * The layout node object. + */ +struct nsl_node { +}; diff --git a/src/node.h b/src/node.h new file mode 100644 index 0000000..9e85db1 --- /dev/null +++ b/src/node.h @@ -0,0 +1,20 @@ +/* + * 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/node.h + * Layout node handling + */ + +#ifndef nsl_node_h_ +#define nsl_node_h_ + +typedef struct nsl_node nsl_node; + +nsl_error nsl__node_create(nsl_node **node_out); + +void nsl__node_destroy(nsl_node *node_out); + +#endif |