Merge pull request #49 from dfj/devel

Use the XML_PARSE_NONET option to prevent parameter entity SSRF and XXE
Revert "Remove assertion on batchInInput in obix_batch_process"

This reverts commit ec77a971e5eebc105fbd802de7169ef547aa7d70.
Revert "Fixed defect in update_node: if it's called more than twice from the same stack subsequent calls will fail"

This reverts commit 8c1058e634a25b4aea3a873dc8ebac3e13c73e80.
Revert "local userspace version of linked-lists."

This reverts commit 0d2b11d9137bc0ec79f188651895231f20727c6d.
Revert "Remove FindKernelHeaders.cmake, cross-platform again hooray\!"

This reverts commit ef4f2665f69967414ba396feda64a64cbc7bbd62.
Revert "Moved my_list.h import declarations to list.h"

This reverts commit 0d077809f7106b29cabedd156f19cb9b4c11a626.
Revert "remove my_list.h"

This reverts commit 7aaa6f0e4a4ffc36d69f7c498474a7832cc86c73.
Revert "fix the derp formatting on batch.c"

This reverts commit e0194883238a8ecbf02f485bd5af11c5938f8e83.
Revert "remove types.h, not used"

This reverts commit 4dd0fa237c8948c9d0e07f69fa45bef3a45812ba.
Revert "remove xpath from batch processing mechanism"

This reverts commit 72d1dca3b175b9cebd1f7397aa3afcb06f8c9c8d.
Revert "Switching cmake so that 3.x kernel builds by default"

This reverts commit 343fea26c6d1359d75f7bf720b0fe832ceb0869b.
Fix a race condition in the history initialisation code.

At starts-up, history facilities will be created for every single folder
in the history directory for different devices. A race condition emerges
when history facilities for child href and parent href co-exist, e.g.,

M1.MESN.MsbA
M1.MESN

Dots in the folder names are converted to slashes to support a hierarchy
structure in the history service. If "M1.MESN.MsbA" folder is handled first,
then the XML node with below href

/obix/historyService/histories/M1/MESN/

will be automatically created so that a sub node with relative href "MsbA"
can be added under it. Later when processing the "M1.MESN" folder another
node with the same above parent href will be inserted again.

Obviously, history XML nodes should not be added unconditionally. Moreover,
automatically generated history XML nodes must be copied from the history
stub template so as to be consistent with those nodes created as response
to the history.Get operation.

Signed-off-by: Qingtao Cao <harry.cao@nextdc.com>
A new era of oBIX client side APIs

This massive set of patches redo the client side API implementation,
basically to make it starting to be really usable for real production
in every respects.
Resurrect the hard copy of list.h from Linux kernel source tree

To avoid unnecessary dependency to linux-devel package which will
invite build issues on old 2.6.x kernel used by RHEL6, a hard copy
of <linux/list.h> and friends from the Linux kernel source tree is
included directly.
Remove the XPath predicate usage from batch.c

This is for performance improvement since the batchIn document
generally speaking won't be difficult to parse manually and also
XPath could not handle different namespace not registered earlier

Thanks Tyler!
Zero out holding registers layout on a particular BCM device

This is to prevent potential license issues, the end use of the
mg_adaptor.c would have to figure this out by themselves by
referencing relevant hardware specification.
Merge pull request #53 from Qingtao-Cao/devel

Regression tests on the new example_adaptor, existing bms_adaptor and mg_adaptor are all green, while the further memory tests on oBIX server will be done next week.

Merge all these changes so that Andrew could pull out obix-adaptors stuff since the start of next week.
CMakeLists for the adaptors package now dies if the dependency libraries are not installed on the target system
Cosmetic changes for bms_adaptor

Add notes about not to copy around or touch CSV files before being
processed by the bms_adaptor's worker thread, since such operations
will update all timestamp information in their inode structure and
consequently break down the worker thread's attempt to organise and
handle CSV files based on their last modification time.
Merge pull request #54 from Qingtao-Cao/devel

Cosmetic changes for bms_adaptor