1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #ifndef NACL_IO_DEMO_H_ 7 #define NACL_IO_DEMO_H_ 8 9 #include <stdarg.h> 10 #include "ppapi/c/pp_var.h" 11 12 struct PP_Var CStrToVar(const char* str); 13 char* VprintfToNewString(const char* format, va_list args); 14 char* PrintfToNewString(const char* format, ...); 15 struct PP_Var PrintfToVar(const char* format, ...); 16 uint32_t VarToCStr(struct PP_Var var, char* buffer, uint32_t length); 17 18 #endif /* NACL_IO_DEMO_H_ */ 19