aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-25 23:12:43 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-25 23:12:43 +0100
commita9aa04f6cdff69d6cb32e14a645322431c183b7f (patch)
treee1e411ff6235080eae77c54cb5784999754bbc64 /com32/hdt
parent3fd82f86c1484f61d91669a3e9b407ff4de50918 (diff)
downloadsyslinux-a9aa04f6cdff69d6cb32e14a645322431c183b7f.tar.gz
syslinux-a9aa04f6cdff69d6cb32e14a645322431c183b7f.tar.xz
syslinux-a9aa04f6cdff69d6cb32e14a645322431c183b7f.zip
hdt: Adding add_ahi & addhs for dump mode
This ease at adding hardware items to an array
Diffstat (limited to 'com32/hdt')
-rw-r--r--com32/hdt/hdt-dump.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/hdt/hdt-dump.h b/com32/hdt/hdt-dump.h
index 577edba5..d0e252e2 100644
--- a/com32/hdt/hdt-dump.h
+++ b/com32/hdt/hdt-dump.h
@@ -37,7 +37,9 @@
#define APPEND_ARRAY ZZJSON *temp_array; temp_array = zzjson_array_append(config, *item, zzjson_create_object(config,
#define CREATE_ARRAY *item = zzjson_create_array(config, zzjson_create_object(config,
#define add_ai(name,value) name,zzjson_create_number_i(config,value),
+#define add_ahi(value) add_ai(#value,hardware->value)
#define add_as(name,value) name,zzjson_create_string(config,value),
+#define add_ahs(value) add_as(#value,hardware->value)
#define END_OF_ARRAY NULL),NULL)
#define END_OF_APPEND NULL)); *item=temp_array;
#define add_i(name,value) *item = zzjson_object_append(config, *item, name, zzjson_create_number_i(config, value))