2 * @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_
18 #define POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_
20 #define POSITIONINGBASELIBRARY_NON_FD (-1) //!< \~english invalid fd
21 #define POSITIONINGBASELIBRARY_MAP_NON_INIT (0) //!< \~english init flag for mmap
27 int32 InitMutexObject(pthread_mutex_t *p_st_mutex);
29 HANDLE CreateSharedMemory(TCHAR* name, DWORD size);
30 HANDLE OpenSharedMemory(TCHAR* name, DWORD size);
31 void DeleteAllSharedMemory(void);
32 void* GetSharedMemoryPtr(HANDLE h_shm);
33 void CloseSharedMemory(HANDLE h_shm);
34 void DeleteSharedMemory(TCHAR* name);
35 HANDLE OpenSharedMemoryAtPhysical(DWORD physical_address, DWORD size, DWORD protect);
41 #endif // POSITIONING_BASE_LIBRARY_LIBRARY_INCLUDE__PBINTERNALPROC_H_