master - libdm: add DM_ARRAY_SIZE
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1b4f888bc5be23563167eb056582e7567b832f0b Commit: 1b4f888bc5be23563167eb056582e7567b832f0b Parent: 7c6526aae277c049aa4a6e41b7c2b30d366c9852 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat Jul 6 20:35:43 2013 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Jul 8 14:00:17 2013 +0200
libdm: add DM_ARRAY_SIZE
Add macro for reading detecting size of array.
--- WHATS_NEW_DM | 1 + libdm/libdevmapper.h | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-)
WHATS_NEW_DM +1 -0
@@ -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.
libdm/libdevmapper.h +2 -0
@@ -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 __cplusplusextern "C" {#endif