libusbgx: Add offsetof() and container_of() macros
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 14 Apr 2015 09:00:45 +0000 (11:00 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:35 +0000 (21:45 +0100)
commit1ef2546b35105ee8b36ecf2f64daf961a67564c9
tree26f752bd488fd245b63c45b1526cf1abe2e2254e
parent785c326baab94baa5ca287bee6098f0e5de8f019
libusbgx: Add offsetof() and container_of() macros

Add some macros which are widely used in linux
kernel and may be useful also in this library.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Reviewed-by: Pawel Szewczyk <p.szewczyk@samsung.com>
include/usbg/usbg_internal.h