1 /* 2 * Copyright © 2016 Igor Gnatenko <ignatenko@redhat.com> 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2.1 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library; if not, write to the Free Software 16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 */ 18 19 #ifndef LIBDNF_RELDEPLIST_H 20 #define LIBDNF_RELDEPLIST_H 21 22 #include "dnf-reldep.h" 23 #include "dnf-types.h" 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 DnfReldepList *dnf_reldep_list_new(DnfSack *sack); 30 void dnf_reldep_list_free(DnfReldepList *reldep_list); 31 DnfReldep *dnf_reldep_list_index(DnfReldepList *reldep_list, gint index); 32 gint dnf_reldep_list_count(DnfReldepList *reldep_list); 33 void dnf_reldep_list_add(DnfReldepList *reldep_list, DnfReldep *reldep); 34 void dnf_reldep_list_extend(DnfReldepList *rl1, DnfReldepList *rl2); 35 36 G_DEFINE_AUTOPTR_CLEANUP_FUNC(DnfReldepList, dnf_reldep_list_free) 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif // LIBDNF_RELDEPLIST_H 43