mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 00:30:23 +01:00
We don't always want to immediately write new connections to disk, to facilitate "runtime" or "temporary" connections where an interface's runtime config isn't backed by on-disk config. Also, just because an interface's configuration is changed doesn't necessarily mean that new configuration should be written to disk either. Add D-Bus methods for adding new connections and for updating existing connections that don't immediately save the connection to disk. Also add infrastructure to indicate to plugins that the new connection shouldn't be immediately saved if the connection was added with the new method.
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
/* NetworkManager system settings service
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*
|
|
* (C) Copyright 2013 Red Hat, Inc.
|
|
*/
|
|
|
|
#include <glib.h>
|
|
#include "errors.h"
|
|
|
|
GQuark
|
|
ifnet_plugin_error_quark (void)
|
|
{
|
|
static GQuark error_quark = 0;
|
|
|
|
if (G_UNLIKELY (error_quark == 0))
|
|
error_quark = g_quark_from_static_string ("ifnet-plugin-error-quark");
|
|
|
|
return error_quark;
|
|
}
|
|
|
|
|