1 /** 2 * Copyright (c) 2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 11 * either express or implied. See the License for the specific language governing permissions and limitations under the 12 * License. 13 */ 14 15 #include <cassert> 16 #include <cstdint> 17 #include "libabckit/include/c/abckit.h" 18 19 #include "libabckit/src/macros.h" 20 #include "libabckit/src/metadata_unknown_inspect_impl.h" 21 #include "libabckit/src/metadata_inspect_impl.h" 22 23 namespace libabckit { 24 25 // ======================================== 26 // File 27 // ======================================== 28 29 // ======================================== 30 // Module 31 // ======================================== 32 UnknownModuleEnumerateStub(AbckitCoreModule * m)33bool UnknownModuleEnumerateStub(AbckitCoreModule *m) 34 { 35 LIBABCKIT_CLEAR_LAST_ERROR; 36 LIBABCKIT_IMPLEMENTED; 37 38 LIBABCKIT_BAD_ARGUMENT(m, false); 39 40 if (m->target != ABCKIT_TARGET_UNKNOWN) { 41 libabckit::statuses::SetLastError(ABCKIT_STATUS_WRONG_TARGET); 42 return false; 43 } 44 45 return true; 46 } 47 48 // ======================================== 49 // Class 50 // ======================================== 51 52 // ======================================== 53 // AnnotationInterface 54 // ======================================== 55 56 // ======================================== 57 // Function 58 // ======================================== 59 60 // ======================================== 61 // Annotation 62 // ======================================== 63 64 // ======================================== 65 // Type 66 // ======================================== 67 68 // ======================================== 69 // Value 70 // ======================================== 71 72 // ======================================== 73 // String 74 // ======================================== 75 76 // ======================================== 77 // LiteralArray 78 // ======================================== 79 80 } // namespace libabckit 81