|
Packit Service |
87a54e |
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
Packit |
5756e2 |
/*
|
|
Packit |
5756e2 |
* Copyright (C) 2007 - 2008 Novell, Inc.
|
|
Packit |
5756e2 |
* Copyright (C) 2007 - 2011 Red Hat, Inc.
|
|
Packit |
5756e2 |
*/
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
#ifndef __NM_REMOTE_CONNECTION_H__
|
|
Packit |
5756e2 |
#define __NM_REMOTE_CONNECTION_H__
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
#if !defined(__NETWORKMANAGER_H_INSIDE__) && !defined(NETWORKMANAGER_COMPILATION)
|
|
Packit Service |
a1bd4f |
#error "Only <NetworkManager.h> can be included directly."
|
|
Packit |
5756e2 |
#endif
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
#include "nm-object.h"
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
G_BEGIN_DECLS
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
#define NM_TYPE_REMOTE_CONNECTION (nm_remote_connection_get_type())
|
|
Packit Service |
a1bd4f |
#define NM_REMOTE_CONNECTION(obj) \
|
|
Packit Service |
a1bd4f |
(G_TYPE_CHECK_INSTANCE_CAST((obj), NM_TYPE_REMOTE_CONNECTION, NMRemoteConnection))
|
|
Packit Service |
a1bd4f |
#define NM_REMOTE_CONNECTION_CLASS(klass) \
|
|
Packit Service |
a1bd4f |
(G_TYPE_CHECK_CLASS_CAST((klass), NM_TYPE_REMOTE_CONNECTION, NMRemoteConnectionClass))
|
|
Packit Service |
a1bd4f |
#define NM_IS_REMOTE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), NM_TYPE_REMOTE_CONNECTION))
|
|
Packit Service |
a1bd4f |
#define NM_IS_REMOTE_CONNECTION_CLASS(klass) \
|
|
Packit Service |
a1bd4f |
(G_TYPE_CHECK_CLASS_TYPE((klass), NM_TYPE_REMOTE_CONNECTION))
|
|
Packit Service |
a1bd4f |
#define NM_REMOTE_CONNECTION_GET_CLASS(obj) \
|
|
Packit Service |
a1bd4f |
(G_TYPE_INSTANCE_GET_CLASS((obj), NM_TYPE_REMOTE_CONNECTION, NMRemoteConnectionClass))
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
/* Properties */
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_DBUS_CONNECTION "dbus-connection"
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_PATH "path"
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_UNSAVED "unsaved"
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_FLAGS "flags"
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_FILENAME "filename"
|
|
Packit |
5756e2 |
#define NM_REMOTE_CONNECTION_VISIBLE "visible"
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
/**
|
|
Packit |
5756e2 |
* NMRemoteConnection:
|
|
Packit |
5756e2 |
*/
|
|
Packit |
5756e2 |
typedef struct _NMRemoteConnectionClass NMRemoteConnectionClass;
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
GType nm_remote_connection_get_type(void);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
NM_AVAILABLE_IN_1_12
|
|
Packit Service |
a1bd4f |
void nm_remote_connection_update2(NMRemoteConnection * connection,
|
|
Packit Service |
a1bd4f |
GVariant * settings,
|
|
Packit Service |
a1bd4f |
NMSettingsUpdate2Flags flags,
|
|
Packit Service |
a1bd4f |
GVariant * args,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GAsyncReadyCallback callback,
|
|
Packit Service |
a1bd4f |
gpointer user_data);
|
|
Packit |
5756e2 |
NM_AVAILABLE_IN_1_12
|
|
Packit Service |
a1bd4f |
GVariant *nm_remote_connection_update2_finish(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GAsyncResult * result,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
_NM_DEPRECATED_SYNC_METHOD
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_commit_changes(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
gboolean save_to_disk,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit Service |
a1bd4f |
|
|
Packit Service |
a1bd4f |
void nm_remote_connection_commit_changes_async(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
gboolean save_to_disk,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GAsyncReadyCallback callback,
|
|
Packit Service |
a1bd4f |
gpointer user_data);
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_commit_changes_finish(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GAsyncResult * result,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
_NM_DEPRECATED_SYNC_METHOD
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_save(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit Service |
a1bd4f |
|
|
Packit Service |
a1bd4f |
void nm_remote_connection_save_async(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GAsyncReadyCallback callback,
|
|
Packit Service |
a1bd4f |
gpointer user_data);
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_save_finish(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GAsyncResult * result,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
_NM_DEPRECATED_SYNC_METHOD
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_delete(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
void nm_remote_connection_delete_async(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GAsyncReadyCallback callback,
|
|
Packit Service |
a1bd4f |
gpointer user_data);
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_delete_finish(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GAsyncResult * result,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
_NM_DEPRECATED_SYNC_METHOD
|
|
Packit Service |
a1bd4f |
GVariant *nm_remote_connection_get_secrets(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
const char * setting_name,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit Service |
a1bd4f |
|
|
Packit Service |
a1bd4f |
void nm_remote_connection_get_secrets_async(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
const char * setting_name,
|
|
Packit Service |
a1bd4f |
GCancellable * cancellable,
|
|
Packit Service |
a1bd4f |
GAsyncReadyCallback callback,
|
|
Packit Service |
a1bd4f |
gpointer user_data);
|
|
Packit Service |
a1bd4f |
GVariant *nm_remote_connection_get_secrets_finish(NMRemoteConnection *connection,
|
|
Packit Service |
a1bd4f |
GAsyncResult * result,
|
|
Packit Service |
a1bd4f |
GError ** error);
|
|
Packit Service |
a1bd4f |
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_get_unsaved(NMRemoteConnection *connection);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
NM_AVAILABLE_IN_1_12
|
|
Packit Service |
a1bd4f |
NMSettingsConnectionFlags nm_remote_connection_get_flags(NMRemoteConnection *connection);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
NM_AVAILABLE_IN_1_12
|
|
Packit Service |
a1bd4f |
const char *nm_remote_connection_get_filename(NMRemoteConnection *connection);
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
gboolean nm_remote_connection_get_visible(NMRemoteConnection *connection);
|
|
Packit |
5756e2 |
|
|
Packit |
5756e2 |
G_END_DECLS
|
|
Packit |
5756e2 |
|
|
Packit Service |
a1bd4f |
#endif /* __NM_REMOTE_CONNECTION__ */
|