path: root/common.h
diff options
authorDeepak Kodihalli <>2017-04-28 04:44:38 -0500
committerDeepak Kodihalli <>2017-06-27 08:40:30 -0500
commit393821dd663f54384ea5b12cf30ab7944ceae5a6 (patch)
treec338d1ad69b3962ae3fdfd2d606bfa1e0dcf8f0d /common.h
parent90b92fe48ec72b6c15cce24d33ac983548368b98 (diff)
pnor : generate partition table
Implement a class that, upon construction, generates the virtual PNOR partition table. The virtual PNOR is typically a subset of the full PNOR image, by choosing partitions of interest. The generation is based on upon information read from the PNOR partition files and table of contents (toc) file. Provide an interface to the virtual PNOR partition table. Change-Id: I7a68e3833b8cf66e92eb6ca274f6a3c376ce0add Signed-off-by: Deepak Kodihalli <>
Diffstat (limited to 'common.h')
1 files changed, 8 insertions, 0 deletions
diff --git a/common.h b/common.h
index 83ead0c..90a0fc9 100644
--- a/common.h
+++ b/common.h
@@ -46,6 +46,10 @@ extern enum verbose verbosity;
extern void (*mbox_vlog)(int p, const char *fmt, va_list args);
+#ifdef __cplusplus
+extern "C" {
void mbox_log_console(int p, const char *fmt, va_list args);
__attribute__((format(printf, 2, 3)))
@@ -100,4 +104,8 @@ static inline bool is_power_of_2(unsigned val)
char *get_dev_mtd(void);
+#ifdef __cplusplus
#endif /* COMMON_H */
OpenPOWER on IntegriCloud