This repository has been archived by the owner on Aug 22, 2019. It is now read-only.
/
zif-update-info.h
82 lines (67 loc) · 2.83 KB
/
zif-update-info.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
* Copyright (C) 2010 Richard Hughes <richard@hughsie.com>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#if !defined (__ZIF_H_INSIDE__) && !defined (ZIF_COMPILATION)
#error "Only <zif.h> can be included directly."
#endif
#ifndef __ZIF_UPDATE_INFO_H
#define __ZIF_UPDATE_INFO_H
#include <glib-object.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define ZIF_TYPE_UPDATE_INFO (zif_update_info_get_type ())
#define ZIF_UPDATE_INFO(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), ZIF_TYPE_UPDATE_INFO, ZifUpdateInfo))
#define ZIF_UPDATE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), ZIF_TYPE_UPDATE_INFO, ZifUpdateInfoClass))
#define ZIF_IS_UPDATE_INFO(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), ZIF_TYPE_UPDATE_INFO))
#define ZIF_IS_UPDATE_INFO_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), ZIF_TYPE_UPDATE_INFO))
#define ZIF_UPDATE_INFO_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), ZIF_TYPE_UPDATE_INFO, ZifUpdateInfoClass))
#define ZIF_UPDATE_INFO_ERROR (zif_update_info_error_quark ())
typedef struct _ZifUpdateInfo ZifUpdateInfo;
typedef struct _ZifUpdateInfoPrivate ZifUpdateInfoPrivate;
typedef struct _ZifUpdateInfoClass ZifUpdateInfoClass;
typedef enum {
ZIF_UPDATE_INFO_KIND_CVE,
ZIF_UPDATE_INFO_KIND_BUGZILLA,
ZIF_UPDATE_INFO_KIND_VENDOR,
ZIF_UPDATE_INFO_KIND_LAST
} ZifUpdateInfoKind;
struct _ZifUpdateInfo
{
GObject parent;
ZifUpdateInfoPrivate *priv;
};
struct _ZifUpdateInfoClass
{
GObjectClass parent_class;
/* Padding for future expansion */
void (*_zif_reserved1) (void);
void (*_zif_reserved2) (void);
void (*_zif_reserved3) (void);
void (*_zif_reserved4) (void);
};
GType zif_update_info_get_type (void);
ZifUpdateInfo *zif_update_info_new (void);
ZifUpdateInfoKind zif_update_info_get_kind (ZifUpdateInfo *update_info);
const gchar *zif_update_info_get_url (ZifUpdateInfo *update_info);
const gchar *zif_update_info_get_title (ZifUpdateInfo *update_info);
const gchar *zif_update_info_kind_to_string (ZifUpdateInfoKind type);
ZifUpdateInfoKind zif_update_info_kind_from_string (const gchar *type);
G_END_DECLS
#endif /* __ZIF_UPDATE_INFO_H */