anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2019, Infosys Ltd. |
| 3 | * |
| 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 |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 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. |
| 15 | */ |
| 16 | |
| 17 | #ifndef INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_ |
| 18 | #define INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_ |
| 19 | |
| 20 | #include <utils/mmeProcedureTypes.h> |
| 21 | #include <stdint.h> |
| 22 | |
| 23 | namespace SM |
| 24 | { |
| 25 | class ControlBlock; |
| 26 | } |
| 27 | |
| 28 | namespace mme |
| 29 | { |
| 30 | |
| 31 | class MmeProcedureCtxt; |
| 32 | class MmeContextManagerUtils |
| 33 | { |
| 34 | public: |
| 35 | |
| 36 | static MmeProcedureCtxt* findProcedureCtxt(SM::ControlBlock& cb_r, ProcedureType procType); |
| 37 | |
| 38 | static bool deleteProcedureCtxt(MmeProcedureCtxt* procedure_p); |
| 39 | static bool deallocateProcedureCtxt(SM::ControlBlock& cb_r, ProcedureType procType); |
| 40 | static bool deallocateAllProcedureCtxts(SM::ControlBlock& cb_r); |
| 41 | |
| 42 | static void deleteUEContext(uint32_t cbIndex); |
| 43 | static void deleteSessionContext(SM::ControlBlock& cb_r); |
| 44 | |
| 45 | private: |
| 46 | MmeContextManagerUtils(); |
| 47 | ~MmeContextManagerUtils(); |
| 48 | }; |
| 49 | } |
| 50 | |
| 51 | |
| 52 | |
| 53 | #endif /* INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_ */ |