shared: Add some regular helpers 14/23614/4
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 22 Jan 2020 16:09:01 +0000 (18:09 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 29 Jan 2020 23:03:08 +0000 (01:03 +0200)
commit219a513fd959b86517fc5c48cb8deda3830262ef
tree07afeeb243b420995762a850e78fbffb241796e2
parente5027ce09a4440b6bff25e45091fe07c8e7961d6
shared: Add some regular helpers

Imported from weston, useful when will be adding systemd-notify, and
potentially other bits. Adds MIN/MAX/container_of.

Bug-AGL: SPEC-3119

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I2cb53784943ab3c5bdbc447611f30036f7c64e21
shared/helpers.h [new file with mode: 0644]