OLD | NEW |
| (Empty) |
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 HANDLERS_H_ | |
6 #define HANDLERS_H_ | |
7 | |
8 #include "ppapi/c/pp_var.h" | |
9 | |
10 typedef int (*HandleFunc)(struct PP_Var params, | |
11 struct PP_Var* out_var, | |
12 const char** error); | |
13 | |
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); | |
21 | |
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); | |
26 | |
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); | |
31 | |
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); | |
40 | |
41 #endif /* HANDLERS_H_ */ | |
OLD | NEW |