1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

libdm: add DM_ARRAY_SIZE

Add macro for reading detecting size of array.
This commit is contained in:
Zdenek Kabelac 2013-07-06 20:35:43 +02:00
parent 7c6526aae2
commit 1b4f888bc5
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 1.02.78 -
===================================
Add DM_ARRAY_SIZE public macro.
Move syslog code out of signal handle in dmeventd.
Add DM_TO_STRING public macro.
Always return success on dmeventd -V command call.

View File

@ -38,6 +38,8 @@
#define DM_TO_STRING_EXP(A) #A
#define DM_TO_STRING(A) DM_TO_STRING_EXP(A)
#define DM_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#ifdef __cplusplus
extern "C" {
#endif