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 #include "scoped_timer.h" 23 24 namespace libabckit { 25 26 // ======================================== 27 // File 28 // ======================================== 29 30 // ======================================== 31 // Module 32 // ======================================== 33 UnknownModuleEnumerateStub(AbckitCoreModule * m)34bool UnknownModuleEnumerateStub(AbckitCoreModule *m) 35 { 36 LIBABCKIT_CLEAR_LAST_ERROR; 37 LIBABCKIT_IMPLEMENTED; 38 LIBABCKIT_TIME_EXEC; 39 40 LIBABCKIT_BAD_ARGUMENT(m, false); 41 42 if (m->target != ABCKIT_TARGET_UNKNOWN) { 43 libabckit::statuses::SetLastError(ABCKIT_STATUS_WRONG_TARGET); 44 return false; 45 } 46 47 return true; 48 } 49 50 // ======================================== 51 // Class 52 // ======================================== 53 54 // ======================================== 55 // AnnotationInterface 56 // ======================================== 57 58 // ======================================== 59 // Function 60 // ======================================== 61 62 // ======================================== 63 // Annotation 64 // ======================================== 65 66 // ======================================== 67 // Type 68 // ======================================== 69 70 // ======================================== 71 // Value 72 // ======================================== 73 74 // ======================================== 75 // String 76 // ======================================== 77 78 // ======================================== 79 // LiteralArray 80 // ======================================== 81 82 } // namespace libabckit 83