1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * Copyright (C) 2012-2014 Red Hat, Inc.
4  * Copyright (C) 2015 Richard Hughes <richard@hughsie.com>
5  *
6  * Licensed under the GNU Lesser General Public License Version 2.1
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
21  */
22 
23 #ifndef __DNF_PACKAGEDELTA_H
24 #define __DNF_PACKAGEDELTA_H
25 
26 #include <glib-object.h>
27 
28 #include <solv/pool.h>
29 
30 G_BEGIN_DECLS
31 
32 #define DNF_TYPE_PACKAGEDELTA (dnf_packagedelta_get_type ())
33 G_DECLARE_DERIVABLE_TYPE (DnfPackageDelta, dnf_packagedelta, DNF, PACKAGEDELTA, GObject)
34 
35 struct _DnfPackageDeltaClass
36 {
37         GObjectClass            parent_class;
38         /*< private >*/
39         void (*_dnf_reserved1)  (void);
40         void (*_dnf_reserved2)  (void);
41         void (*_dnf_reserved3)  (void);
42         void (*_dnf_reserved4)  (void);
43         void (*_dnf_reserved5)  (void);
44         void (*_dnf_reserved6)  (void);
45         void (*_dnf_reserved7)  (void);
46         void (*_dnf_reserved8)  (void);
47 };
48 
49 const char      *dnf_packagedelta_get_location          (DnfPackageDelta *delta);
50 const char      *dnf_packagedelta_get_baseurl           (DnfPackageDelta *delta);
51 guint64          dnf_packagedelta_get_downloadsize      (DnfPackageDelta *delta);
52 const unsigned char *dnf_packagedelta_get_chksum        (DnfPackageDelta *delta, int *type);
53 
54 G_END_DECLS
55 
56 #endif /* __DNF_PACKAGEDELTA_H */
57