mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-07 08:40:59 +00:00
44f350c99d
A number of places in the code need to get a connection to NM through D-Bus, and that connection could be either a shared bus connection or a private connection. Consolidate that logic. Unfortunately only dbus-glib >= 0.100 correctly supports private connections (commit 8b7e4a1c4ae055864e26db4addbcc2dc38ee6963 fixes this problem) so the private connection functionality is not enabled for older dbus-glib versions.
39 lines
1.5 KiB
C
39 lines
1.5 KiB
C
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
|
|
/*
|
|
* libnm_glib -- Access network status & information from glib applications
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301 USA.
|
|
*
|
|
* Copyright (C) 2013 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef NM_DBUS_HELPERS_PRIVATE_H
|
|
#define NM_DBUS_HELPERS_PRIVATE_H
|
|
|
|
#include <gio/gio.h>
|
|
#include <dbus/dbus.h>
|
|
#include <dbus/dbus-glib-lowlevel.h>
|
|
|
|
DBusGConnection *_nm_dbus_new_connection (GError **error);
|
|
|
|
gboolean _nm_dbus_is_connection_private (DBusGConnection *connection);
|
|
|
|
DBusGProxy * _nm_dbus_new_proxy_for_connection (DBusGConnection *connection,
|
|
const char *path,
|
|
const char *interface);
|
|
|
|
#endif /* NM_DBUS_HELPERS_PRIVATE_H */
|