Index: ppapi/c/ppb_var.h |
diff --git a/ppapi/c/ppb_var.h b/ppapi/c/ppb_var.h |
index 5ebae16131cc175a7a1e7795c6b02cdd321b80f3..3e6e4818d490471392163faa3c1c3e8a40664435 100644 |
--- a/ppapi/c/ppb_var.h |
+++ b/ppapi/c/ppb_var.h |
@@ -3,7 +3,7 @@ |
* found in the LICENSE file. |
*/ |
-/* From ppb_var.idl modified Wed Aug 24 20:49:04 2011. */ |
+/* From ppb_var.idl modified Tue Dec 6 11:26:58 2011. */ |
#ifndef PPAPI_C_PPB_VAR_H_ |
#define PPAPI_C_PPB_VAR_H_ |
@@ -15,7 +15,8 @@ |
#include "ppapi/c/pp_var.h" |
#define PPB_VAR_INTERFACE_1_0 "PPB_Var;1.0" |
-#define PPB_VAR_INTERFACE PPB_VAR_INTERFACE_1_0 |
+#define PPB_VAR_INTERFACE_1_1 "PPB_Var;1.1" |
+#define PPB_VAR_INTERFACE PPB_VAR_INTERFACE_1_1 |
/** |
* @file |
@@ -66,16 +67,13 @@ struct PPB_Var { |
* On error (basically out of memory to allocate the string, or input that |
* is not valid UTF-8), this function will return a Null var. |
* |
- * @param[in] module A PP_Module uniquely identifying the module or .nexe. |
* @param[in] data A string |
* @param[in] len The length of the string. |
* |
* @return A <code>PP_Var</code> structure containing a reference counted |
* string object. |
*/ |
- struct PP_Var (*VarFromUtf8)(PP_Module module, |
- const char* data, |
- uint32_t len); |
+ struct PP_Var (*VarFromUtf8)(const char* data, uint32_t len); |
/** |
* VarToUtf8() converts a string-type var to a char* encoded in UTF-8. This |
* string is NOT NULL-terminated. The length will be placed in |
@@ -96,6 +94,15 @@ struct PPB_Var { |
*/ |
const char* (*VarToUtf8)(struct PP_Var var, uint32_t* len); |
}; |
+ |
+struct PPB_Var_1_0 { |
+ void (*AddRef)(struct PP_Var var); |
+ void (*Release)(struct PP_Var var); |
+ struct PP_Var (*VarFromUtf8)(PP_Module module, |
+ const char* data, |
+ uint32_t len); |
+ const char* (*VarToUtf8)(struct PP_Var var, uint32_t* len); |
+}; |
/** |
* @} |
*/ |