1 /* 2 * Copyright (C) 2014 Red Hat, Inc. 3 * Copyright (C) 2015 Richard Hughes <richard@hughsie.com> 4 * 5 * Licensed under the GNU Lesser General Public License Version 2.1 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 20 */ 21 22 #ifndef __DNF_ADVISORYPKG_H 23 #define __DNF_ADVISORYPKG_H 24 25 #include "dnf-advisory.h" 26 27 #include <solv/pool.h> 28 #include <glib-object.h> 29 30 #ifdef __cplusplus 31 namespace libdnf { 32 struct AdvisoryPkg; 33 } 34 typedef struct libdnf::AdvisoryPkg DnfAdvisoryPkg; 35 #else 36 typedef struct AdvisoryPkg DnfAdvisoryPkg; 37 #endif 38 39 #ifdef __cplusplus 40 extern "C" { 41 #endif 42 43 void dnf_advisorypkg_free (DnfAdvisoryPkg *advisorypkg); 44 const char *dnf_advisorypkg_get_name (DnfAdvisoryPkg *advisorypkg); 45 const char *dnf_advisorypkg_get_evr (DnfAdvisoryPkg *advisorypkg); 46 const char *dnf_advisorypkg_get_arch (DnfAdvisoryPkg *advisorypkg); 47 const char *dnf_advisorypkg_get_filename (DnfAdvisoryPkg *advisorypkg); 48 49 int dnf_advisorypkg_compare (DnfAdvisoryPkg *left, 50 DnfAdvisoryPkg *right); 51 gboolean dnf_advisorypkg_compare_solvable (DnfAdvisoryPkg *advisorypkg, 52 Pool *pool, 53 Solvable *s); 54 DnfAdvisory * dnf_advisorypkg_get_advisory (DnfAdvisoryPkg *advisorypkg); 55 56 #ifdef __cplusplus 57 } 58 #endif 59 60 #endif /* __DNF_ADVISORYPKG_H */ 61