| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.h> |
| 8 #include <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 static const PPB_NaCl_Private* g_nacl_interface = NULL; | 66 static const PPB_NaCl_Private* g_nacl_interface = NULL; |
| 67 | 67 |
| 68 const PPB_NaCl_Private* GetNaClInterface() { | 68 const PPB_NaCl_Private* GetNaClInterface() { |
| 69 return g_nacl_interface; | 69 return g_nacl_interface; |
| 70 } | 70 } |
| 71 | 71 |
| 72 void SetNaClInterface(const PPB_NaCl_Private* nacl_interface) { | 72 void SetNaClInterface(const PPB_NaCl_Private* nacl_interface) { |
| 73 g_nacl_interface = nacl_interface; | 73 g_nacl_interface = nacl_interface; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void CloseFileHandle(PP_FileHandle file_handle) { | |
| 77 #if NACL_WINDOWS | |
| 78 CloseHandle(file_handle); | |
| 79 #else | |
| 80 close(file_handle); | |
| 81 #endif | |
| 82 } | |
| 83 | |
| 84 } // namespace plugin | 76 } // namespace plugin |
| OLD | NEW |