Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
teec_shared_memory_samsung.h
1 // Copyright (c) 2017 Samsung Electronics. 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 PPAPI_CPP_SAMSUNG_TEEC_SHARED_MEMORY_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_TEEC_SHARED_MEMORY_SAMSUNG_H_
7 
8 #include "ppapi/c/samsung/ppb_teec_shared_memory_samsung.h"
10 #include "ppapi/cpp/resource.h"
11 #include "ppapi/cpp/samsung/teec_context_samsung.h"
12 
13 namespace pp {
14 
16  public:
18 
19  explicit TEECSharedMemory_Samsung(PP_Resource resource);
20 
21  TEECSharedMemory_Samsung(PassRef, PP_Resource resource);
22 
29  uint32_t flags);
30 
32 
33  TEECSharedMemory_Samsung& operator=(const TEECSharedMemory_Samsung& other);
34 
35  virtual ~TEECSharedMemory_Samsung();
36 
53  int32_t Register(
54  const void* buffer,
55  uint32_t size,
57 
74  int32_t Allocate(
75  uint32_t size,
77 
81  void* Map();
82 };
83 
84 } // namespace pp
85 
86 #endif // PPAPI_CPP_SAMSUNG_TEEC_SHARED_MEMORY_SAMSUNG_H_
Definition: completion_callback.h:189
Definition: teec_shared_memory_samsung.h:15
PassRef
Definition: pass_ref.h:17
Definition: teec_context_samsung.h:19
int32_t Register(const void *buffer, uint32_t size, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback)
A reference counted module resource.
Definition: resource.h:20
int32_t Allocate(uint32_t size, const CompletionCallbackWithOutput< PP_TEEC_Result > &callback)