Pass number of parameters to daemon value functions

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Allocate memory before trying to use it

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Fix segfault in main read loop

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Intial support for settings values over the wire

Note that although this currently works, it does need revisiting
very soon to implement the smack support (checking access type)

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Implement get-value on the wire protocol

Note that testing has currently been done using strings, so there may
still be issues with minimum lengths, etc. However, testing set + get
over the wire using strings works as intended.

Now we'll need to implement smack control within the get/set methods
using the existing smack helpers in the library.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Fix minimum size of buxton control messages

Previously it was too large, meaning anything other than a string
was not being deserialized, as it was considered an invalid message.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Update TODO

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
Fix free of null pointer when key is not found

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
cli: Print error if key cannot be updated

If the key has been updated, we simply return EXIT_SUCCESS and print
nothing.

Signed-off-by: Michael Ikey Doherty <michael.i.doherty@intel.com>
core: Fix parameter count check

Signed-off-by: William Douglas <william.douglas@intel.com>