Debian Codegraph @

lib/packagekit-glib2/pk-common.h

raw
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 *
3 * Copyright (C) 2007-2008 Richard Hughes <[email protected]>
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 #if !defined (__PACKAGEKIT_H_INSIDE__) && !defined (PK_COMPILATION)
23 #error "Only <packagekit.h> can be included directly."
24 #endif
25
26 #ifndef __PK_COMMON_H
27 #define __PK_COMMON_H
28
29 #include <glib.h>
30
31 #include "pk-enum.h"
32
33 G_BEGIN_DECLS
34
35 /**
36 * PK_DBUS_SERVICE:
37 *
38 * The well-known name for the PackageKit system D-Bus service.
39 */
40 #define PK_DBUS_SERVICE "org.freedesktop.PackageKit"
41
42 /**
43 * PK_DBUS_PATH:
44 *
45 * The path to the main PackageKit service D-Bus object.
46 */
47 #define PK_DBUS_PATH "/org/freedesktop/PackageKit"
48
49 /**
50 * PK_DBUS_INTERFACE:
51 *
52 * The D-Bus interface used by the PackageKit service.
53 */
54 #define PK_DBUS_INTERFACE "org.freedesktop.PackageKit"
55
56 /**
57 * PK_DBUS_INTERFACE_TRANSACTION:
58 *
59 * The D-Bus interface for PackageKit transactions.
60 */
61 #define PK_DBUS_INTERFACE_TRANSACTION "org.freedesktop.PackageKit.Transaction"
62
63 /**
64 * PK_DBUS_INTERFACE_OFFLINE:
65 *
66 * The D-Bus interface for PackageKit offline update functionality
67 */
68 #define PK_DBUS_INTERFACE_OFFLINE "org.freedesktop.PackageKit.Offline"
69
70 /**
71 * PK_PACKAGE_LIST_FILENAME:
72 *
73 * The default location of the package list
74 *
75 * NOTE: This constant is unused and will be removed next time the library
76 * soname changes!
77 */
78 #define PK_SYSTEM_PACKAGE_LIST_FILENAME "/var/lib/PackageKit/system.package-list"
79
80 /**
81 * PK_PACKAGE_CACHE_FILENAME:
82 *
83 * The default location of the package cache database
84 *
85 * NOTE: This constant is unused and will be removed next time the library
86 * soname changes!
87 */
88 #define PK_SYSTEM_PACKAGE_CACHE_FILENAME "/var/lib/PackageKit/package-cache.db"
89
90 gchar **pk_ptr_array_to_strv (GPtrArray *array)
91 G_GNUC_WARN_UNUSED_RESULT;
92 gchar *pk_iso8601_present (void)
93 G_GNUC_WARN_UNUSED_RESULT;
94 gchar *pk_iso8601_from_date (const GDate *date);
95 GDate *pk_iso8601_to_date (const gchar *iso_date);
96 GDateTime *pk_iso8601_to_datetime (const gchar *iso_date);
97 gchar *pk_get_distro_id (void);
98
99 G_END_DECLS
100
101 #endif /* __PK_COMMON_H */