Index: public/fpdfview.h |
diff --git a/public/fpdfview.h b/public/fpdfview.h |
index bfa13c43c16a77f9121c334f74c312155b7774f2..f8997098738aaa71721cbd5a8a1999f1f0b8ef0c 100644 |
--- a/public/fpdfview.h |
+++ b/public/fpdfview.h |
@@ -158,7 +158,7 @@ DLLEXPORT void STDCALL FPDF_InitLibrary(); |
// Process-wide options for initializing library. |
typedef struct FPDF_LIBRARY_CONFIG_ { |
- // Version number of the interface. Currently must be 1. |
+ // Version number of the interface. Currently must be 2. |
int version; |
// Array of paths to scan in place of the defaults when using built-in |
@@ -166,6 +166,17 @@ typedef struct FPDF_LIBRARY_CONFIG_ { |
// The Array may be NULL itself to use the default paths. May be ignored |
// entirely depending upon the platform. |
const char** m_pUserFontPaths; |
+ |
+ // Version 2. |
+ |
+ // pointer to the v8::Isolate to use, or NULL to force PDFium to create one. |
+ void* m_pIsolate; |
+ |
+ // The embedder data slot to use in the v8::Isolate to store PDFium's |
+ // per-isolate data. The value needs to be between 0 and |
+ // v8::Internals::kNumIsolateDataLots (exclusive). Note that 0 is fine |
+ // for most embedders. |
+ unsigned int m_v8EmbedderSlot; |
} FPDF_LIBRARY_CONFIG; |
// Function: FPDF_InitLibraryWithConfig |