Index: include/lib/lib_vpd.h |
diff --git a/include/lib/lib_vpd.h b/include/lib/lib_vpd.h |
index 91621ff2d266a4989b13358167b04a36f9518cec..55f5ae6e5c444f5f7dc88daddcad2781e4714b63 100644 |
--- a/include/lib/lib_vpd.h |
+++ b/include/lib/lib_vpd.h |
@@ -37,8 +37,9 @@ enum { |
VPD_AS_LONG_AS = -1, |
}; |
-enum { |
+enum { /* export_type */ |
VPD_EXPORT_KEY_VALUE = 1, |
+ VPD_EXPORT_VALUE, |
VPD_EXPORT_AS_PARAMETER, |
}; |
@@ -47,6 +48,7 @@ struct StringPair { |
unsigned char *key; |
unsigned char *value; |
int pad_len; |
+ int filter_out; /* TRUE means not exported. */ |
struct StringPair *next; |
}; |
@@ -172,6 +174,12 @@ int encodeContainer(const struct PairContainer *container, |
unsigned char *buf, |
int *generated); |
+/* Set filter for exporting functions. |
+ * If filter is NULL, resets the filter so that everything can be exported. |
+ */ |
+int setContainerFilter(struct PairContainer *container, |
+ const uint8_t *filter); |
+ |
/* |
* Export the container content with human-readable text. |
* |