Blame src/nm-keep-alive.h

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