|
Packit Service |
b23acc |
// SPDX-License-Identifier: LGPL-2.1+
|
|
Packit Service |
b23acc |
/*
|
|
Packit Service |
b23acc |
* Copyright (C) 2018 Red Hat, Inc.
|
|
Packit Service |
b23acc |
*/
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
#ifndef __NETWORKMANAGER_KEEP_ALIVE_H__
|
|
Packit Service |
b23acc |
#define __NETWORKMANAGER_KEEP_ALIVE_H__
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
#define NM_TYPE_KEEP_ALIVE (nm_keep_alive_get_type ())
|
|
Packit Service |
b23acc |
#define NM_KEEP_ALIVE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NM_TYPE_KEEP_ALIVE, NMKeepAlive))
|
|
Packit Service |
b23acc |
#define NM_KEEP_ALIVE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), NM_TYPE_KEEP_ALIVE, NMKeepAliveClass))
|
|
Packit Service |
b23acc |
#define NM_KEEP_ALIVE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NM_TYPE_KEEP_ALIVE, NMKeepAliveClass))
|
|
Packit Service |
b23acc |
#define NM_IS_KEEP_ALIVE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NM_TYPE_KEEP_ALIVE))
|
|
Packit Service |
b23acc |
#define NM_IS_KEEP_ALIVE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NM_TYPE_KEEP_ALIVE))
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
#define NM_KEEP_ALIVE_ALIVE "alive"
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
typedef struct _NMKeepAliveClass NMKeepAliveClass;
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
GType nm_keep_alive_get_type (void) G_GNUC_CONST;
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
NMKeepAlive* nm_keep_alive_new (void);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
gboolean nm_keep_alive_is_alive (NMKeepAlive *self);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
void nm_keep_alive_arm (NMKeepAlive *self);
|
|
Packit Service |
b23acc |
void nm_keep_alive_disarm (NMKeepAlive *self);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
void nm_keep_alive_destroy (NMKeepAlive *self);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
void nm_keep_alive_set_settings_connection_watch_visible (NMKeepAlive *self,
|
|
Packit Service |
b23acc |
NMSettingsConnection *connection);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
void nm_keep_alive_set_dbus_client_watch (NMKeepAlive *self,
|
|
Packit Service |
b23acc |
GDBusConnection *connection,
|
|
Packit Service |
b23acc |
const char *client_address);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
gpointer /* GObject * */ nm_keep_alive_get_owner (NMKeepAlive *self);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
/* _nm_keep_alive_set_owner() is reserved for the owner to set/unset itself. */
|
|
Packit Service |
b23acc |
void _nm_keep_alive_set_owner (NMKeepAlive *self,
|
|
Packit Service |
b23acc |
GObject *owner);
|
|
Packit Service |
b23acc |
|
|
Packit Service |
b23acc |
#endif /* __NETWORKMANAGER_KEEP_ALIVE_H__ */
|