view pui-types.h.in @ 64:a5ed1047ce14

Obtain network state from GNetworkMonitor The PackageKit daemon does not necessarily run continuously and is therefore not a reliable source for network changes. More specifically, if the internet connectivity is not available when the PackageKit daemon shuts down, package-update-indicator will not be notified if connectivity is restored. Thus use GNetworkMonitor instead which is also used internally by PackageKit. This change is based on patches by Cliff <cliffd@gmx.com.br> who discovered and tracked down this issue.
author Guido Berhoerster <guido+pui@berhoerster.name>
date Sun, 14 Jan 2024 18:53:37 +0100
parents adba37525ee5
children
line wrap: on
line source

/*** BEGIN file-header ***/
#ifndef	PUI_TYPES_H
#define	PUI_TYPES_H

#include <glib-object.h>

G_BEGIN_DECLS
/*** END file-header ***/

/*** BEGIN file-production ***/

/* enumerations from "@filename@" */
/*** END file-production ***/

/*** BEGIN value-header ***/

#define	@ENUMPREFIX@_TYPE_@ENUMSHORT@	(@enum_name@_get_type())
GType	@enum_name@_get_type(void) G_GNUC_CONST;
/*** END value-header ***/

/*** BEGIN file-tail ***/

gchar *	pui_types_enum_to_string(GType, gint);

G_END_DECLS

#endif /* !PUI_TYPES_H */
/*** END file-tail ***/