/** * Append a string to the response dictionary. * @param[in,out] response_var The response PP_var. * @param[in] value The value to add to the response args. * @param[out] out_error An error message, if this call failed. */ static void AppendResponseString(struct PP_Var* response_var, const char* value, const char** out_error) { struct PP_Var value_var = CStrToVar(value); AppendResponseVar(response_var, value_var, out_error); g_ppb_var->Release(value_var); }
/** * Append an int to the response dictionary. * @param[in,out] response_var The response PP_var. * @param[in] value The value to add to the response args. * @param[out] out_error An error message, if this call failed. */ static void AppendResponseInt(struct PP_Var* response_var, int32_t value, const char** out_error) { AppendResponseVar(response_var, PP_MakeInt32(value), out_error); }