summaryrefslogtreecommitdiffstats
path: root/src/vendorcode/google/chromeos/cros_vpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vendorcode/google/chromeos/cros_vpd.h')
-rw-r--r--src/vendorcode/google/chromeos/cros_vpd.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/cros_vpd.h b/src/vendorcode/google/chromeos/cros_vpd.h
new file mode 100644
index 000000000000..674dbf65d9cb
--- /dev/null
+++ b/src/vendorcode/google/chromeos/cros_vpd.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_VPD_H__
+#define __CROS_VPD_H__
+
+/*
+ * Reads VPD string value by key.
+ *
+ * Reads in at most one less than size characters from VPD and stores them
+ * into buffer. A terminating null byte ('\0') is stored after the last
+ * character in the buffer.
+ *
+ * Returns NULL if key is not found, otherwise buffer.
+ */
+char *cros_vpd_gets(const char *key, char *buffer, int size);
+
+#endif /* __CROS_VPD_H__ */