messages: implement single-instance message factory 68/189868/6
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 21 Sep 2018 08:37:34 +0000 (10:37 +0200)
committerKrzysztof Wieclaw <k.wieclaw@samsung.com>
Wed, 26 Sep 2018 15:40:42 +0000 (17:40 +0200)
commita27a213a02b2edf46e6724c4149c2ec68cbfd211
tree2807b7ce741b8a20c564659e798a797ab58c973d
parent469441f646f95fa7e2d0ce50afd4ed0f2bd956c3
messages: implement single-instance message factory

To avoid dynamic memory allocation, only single message instance
returned by the factory can be valid at given time.

Change-Id: I155a9ba9507a27a28b7c60b6f617c3bdd34a0874
inc/messages/message_factory.h [new file with mode: 0644]
src/messages/message_factory.c [new file with mode: 0644]