| 1 | /* |
| 2 | * Copyright © 2023 Red Hat, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU Lesser General Public |
| 8 | * License as published by the Free Software Foundation; either |
| 9 | * version 2.1 of the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This library is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * Lesser General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU Lesser General Public |
| 17 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #include "config.h"cxx . . $ `<file>/build/config.h`/ |
| 22 | |
| 23 | #include <glib.h> |
| 24 | |
| 25 | #include "xdp-method-info.h"cxx . . $ `<file>/src/xdp-method-info.h`/ |
| 26 | |
| 27 | const XdpMethodInfocxx . . $ XdpMethodInfo# * |
| 28 | xdp_method_info_findcxx . . $ xdp_method_info_find(741099d6aee7684a). (const char *interface, |
| 29 | const char *method) |
| 30 | { |
| 31 | const XdpMethodInfocxx . . $ XdpMethodInfo# *mi = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 32 | gbooleancxx . . $ gboolean# interface_found = FALSEcxx . . $ `<external>/12741050725406041920/gmacros.h:967:9`!; |
| 33 | |
| 34 | mi = xdp_method_info_get_allcxx . . $ xdp_method_info_get_all(a942a5687f658713). (); |
| 35 | while (mi->interfacecxx . . $ $anonymous_type_a4b700419668b39d_0#interface. != NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!) |
| 36 | { |
| 37 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (interface, mi->interfacecxx . . $ $anonymous_type_a4b700419668b39d_0#interface.) == 0) |
| 38 | { |
| 39 | interface_found = TRUEcxx . . $ `<external>/12741050725406041920/gmacros.h:971:9`!; |
| 40 | if (strcmpcxx . . $ strcmp(5ae29d726ae57f88). (method, mi->methodcxx . . $ $anonymous_type_a4b700419668b39d_0#method.) == 0) |
| 41 | return mi; |
| 42 | } |
| 43 | else if (interface_found) |
| 44 | break; |
| 45 | mi++; |
| 46 | } |
| 47 | |
| 48 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!; |
| 49 | } |