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#ifndef NACL_IO_DEMO_H_
6#define NACL_IO_DEMO_H_
7
8#include <stdarg.h>
9#include "ppapi/c/pp_instance.h"
10#include "ppapi/c/pp_var.h"
11#include "ppapi/c/ppb_var.h"
12#include "ppapi/c/ppb_var_array.h"
13#include "ppapi/c/ppb_var_dictionary.h"
14#include "sdk_util/macros.h"  // for PRINTF_LIKE
15
16struct PP_Var CStrToVar(const char* str);
17char* VprintfToNewString(const char* format, va_list args) PRINTF_LIKE(1, 0);
18char* PrintfToNewString(const char* format, ...) PRINTF_LIKE(1, 2);
19struct PP_Var GetDictVar(struct PP_Var var, const char* key);
20
21extern PPB_Var* g_ppb_var;
22extern PPB_VarArray* g_ppb_var_array;
23extern PPB_VarDictionary* g_ppb_var_dictionary;
24
25#endif /* NACL_IO_DEMO_H_ */
26