File indexing completed on 2025-01-05 05:07:02
0001 // SPDX-License-Identifier: GPL-2.0-or-later 0002 // SPDX-FileCopyrightText: 2020 Lucas Biaggi <lbjanuario@gmail.com> 0003 /* 0004 * Firewalld backend for plasma firewall 0005 */ 0006 #include "dbustypes.h" 0007 0008 const QDBusArgument &operator>>(const QDBusArgument &argument, firewalld_reply &mystruct) 0009 { 0010 argument.beginStructure(); 0011 argument >> mystruct.ipv >> mystruct.table >> mystruct.chain >> mystruct.priority >> mystruct.rules; 0012 argument.endStructure(); 0013 return argument; 0014 } 0015 0016 const QDBusArgument &operator<<(QDBusArgument &argument, const firewalld_reply &mystruct) 0017 { 0018 argument.beginStructure(); 0019 argument << mystruct.ipv << mystruct.table << mystruct.chain << mystruct.priority << mystruct.rules; 0020 argument.endStructure(); 0021 return argument; 0022 }