uuid: Add module for UUID generation 95/21895/2
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 16 Jul 2019 13:27:29 +0000 (15:27 +0200)
committerJose Bollo <jose.bollo@iot.bzh>
Thu, 18 Jul 2019 13:39:52 +0000 (15:39 +0200)
commitc53b1b3433a9fcb0f4f3afe8eca1daf75d43673f
tree69c16c2b0f38542d6cce3ba30648f7b62f4a9b87
parent328c4b574dfb30155b8e27d96d97a1a50b51ebb8
uuid: Add module for UUID generation

This commit allow modules of afb-daemon to request UUID.

This introduce an abstraction above libuuid for 3 reasons:

 1. Using uuid had bad side effect inthe past because it
    required enought entropy at start time, leading to hanging
    initialisations in wait for enough entropy.

 2. Solving bug SPEC-2625 will require use of UUID.

 3. Porting to systems that haven't libuuid is made more
    easy after that.

Bug-AGL: SPEC-2625

Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Change-Id: I20b58cf074ca88994de049acbeb8f827359e1b69
src/CMakeLists.txt
src/afb-session.c
src/uuid.c [new file with mode: 0644]
src/uuid.h [new file with mode: 0644]