library: expand VAL macros to include the context parm
This patch will set the stage for validating the types referenced in the result union. For now, the parameter representing that 'info' structure will remain unused. [ and while we're at it, let us correct a faulty GET ] [ macro in the diskstats header. that puppy missed a ] [ parm which ain't so good if that guy is ever used! ] Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -89,10 +89,10 @@ struct diskstats_reap {
|
||||
#define DISKSTATS_TYPE_DISK -11111
|
||||
#define DISKSTATS_TYPE_PARTITION -22222
|
||||
|
||||
#define DISKSTATS_GET( info, actual_enum, type ) \
|
||||
procps_diskstats_get( info, actual_enum ) -> result . type
|
||||
#define DISKSTATS_GET( info, name, actual_enum, type ) \
|
||||
procps_diskstats_get( info, name, actual_enum ) -> result . type
|
||||
|
||||
#define DISKSTATS_VAL( relative_enum, type, stack) \
|
||||
#define DISKSTATS_VAL( relative_enum, type, stack, info ) \
|
||||
stack -> head [ relative_enum ] . result . type
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user