Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Unified Diff: include/lib/lib_vpd.h

Issue 6849018: Support -g option to dump value string only (no key string, no quotes). (Closed) Base URL: ssh://gitrw.chromium.org:9222/vpd.git@master
Patch Set: remove newline Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/lib_vpd.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
*
« no previous file with comments | « no previous file | lib/lib_vpd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698