[SyncFS] Build indexes from FileTracker entries on disk.
[chromium-blink-merge.git] / native_client_sdk / src / examples / demo / nacl_io_demo / handlers.h
blob532914f10d62b4f86dc03d4ccc51ffb3a4727fd8
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. */
5 #ifndef HANDLERS_H_
6 #define HANDLERS_H_
8 #include "ppapi/c/pp_var.h"
10 typedef int (*HandleFunc)(struct PP_Var params,
11 struct PP_Var* out_var,
12 const char** error);
14 int HandleFopen(struct PP_Var params, struct PP_Var* out, const char** error);
15 int HandleFwrite(struct PP_Var params, struct PP_Var* out, const char** error);
16 int HandleFread(struct PP_Var params, struct PP_Var* out, const char** error);
17 int HandleFseek(struct PP_Var params, struct PP_Var* out, const char** error);
18 int HandleFclose(struct PP_Var params, struct PP_Var* out, const char** error);
19 int HandleFflush(struct PP_Var params, struct PP_Var* out, const char** error);
20 int HandleStat(struct PP_Var params, struct PP_Var* out, const char** error);
22 int HandleOpendir(struct PP_Var params, struct PP_Var* out, const char** error);
23 int HandleReaddir(struct PP_Var params, struct PP_Var* out, const char** error);
24 int HandleClosedir(struct PP_Var params, struct PP_Var* out,
25 const char** error);
27 int HandleMkdir(struct PP_Var params, struct PP_Var* out, const char** error);
28 int HandleRmdir(struct PP_Var params, struct PP_Var* out, const char** error);
29 int HandleChdir(struct PP_Var params, struct PP_Var* out, const char** error);
30 int HandleGetcwd(struct PP_Var params, struct PP_Var* out, const char** error);
32 int HandleGetaddrinfo(struct PP_Var params, struct PP_Var* out,
33 const char** error);
34 int HandleGethostbyname(struct PP_Var params, struct PP_Var* out,
35 const char** error);
36 int HandleConnect(struct PP_Var params, struct PP_Var* out, const char** error);
37 int HandleSend(struct PP_Var params, struct PP_Var* out, const char** error);
38 int HandleRecv(struct PP_Var params, struct PP_Var* out, const char** error);
39 int HandleClose(struct PP_Var params, struct PP_Var* out, const char** error);
41 #endif /* HANDLERS_H_ */