diff options
author | Michael Biebl <biebl@debian.org> | 2011-05-27 19:57:25 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2011-05-27 19:57:25 +0200 |
commit | d465e5fac63f36bcf4069e36827f4b62c494556d (patch) | |
tree | 65f4ba9567e091233cdf3279f7ba3c9479e74a1c /src/settings/nm-polkit-helpers.h | |
parent | 9f806e97a24bba61417ae312fcc0da40914266fb (diff) |
Imported Upstream version 0.8.9997upstream/0.8.9997
Diffstat (limited to 'src/settings/nm-polkit-helpers.h')
-rw-r--r-- | src/settings/nm-polkit-helpers.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/src/settings/nm-polkit-helpers.h b/src/settings/nm-polkit-helpers.h deleted file mode 100644 index d812e9445..000000000 --- a/src/settings/nm-polkit-helpers.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -*- 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 2008 Novell, Inc. - * (C) Copyright 2008 - 2010 Red Hat, Inc. - */ - -#ifndef NM_POLKIT_HELPERS_H -#define NM_POLKIT_HELPERS_H - -#include <polkit/polkit.h> - -/* Fix for polkit 0.97 and later */ -#if !HAVE_POLKIT_AUTHORITY_GET_SYNC -static inline PolkitAuthority * -polkit_authority_get_sync (GCancellable *cancellable, GError **error) -{ - PolkitAuthority *authority; - - authority = polkit_authority_get (); - if (!authority) - g_set_error (error, 0, 0, "failed to get the PolicyKit authority"); - return authority; -} -#endif - -#endif /* NM_POLKIT_HELPERS_H */ |