| 1 |
/* |
| 2 |
* Copyright (C) 2008 Red Hat, Inc. |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Lesser General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Lesser General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Lesser General |
| 15 |
* Public License along with this library; if not, write to the |
| 16 |
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
| 17 |
* Boston, MA 02111-1307, USA. |
| 18 |
* |
| 19 |
* Author: David Zeuthen <[email protected]> |
| 20 |
*/ |
| 21 |
|
| 22 |
#if !defined (_POLKIT_COMPILATION) && !defined(_POLKIT_INSIDE_POLKIT_H) |
| 23 |
#error "Only <polkit/polkit.h> can be included directly, this file may disappear or change contents." |
| 24 |
#endif |
| 25 |
|
| 26 |
#ifndef __POLKIT_AUTHORIZATION_RESULT_H |
| 27 |
#define __POLKIT_AUTHORIZATION_RESULT_H |
| 28 |
|
| 29 |
#include <glib-object.h> |
| 30 |
#include <polkit/polkittypes.h> |
| 31 |
|
| 32 |
G_BEGIN_DECLS |
| 33 |
|
| 34 |
#define POLKIT_TYPE_AUTHORIZATION_RESULT (polkit_authorization_result_get_type()) |
| 35 |
#define POLKIT_AUTHORIZATION_RESULT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResult)) |
| 36 |
#define POLKIT_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResultClass)) |
| 37 |
#define POLKIT_AUTHORIZATION_RESULT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), POLKIT_TYPE_AUTHORIZATION_RESULT, PolkitAuthorizationResultClass)) |
| 38 |
#define POLKIT_IS_AUTHORIZATION_RESULT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), POLKIT_TYPE_AUTHORIZATION_RESULT)) |
| 39 |
#define POLKIT_IS_AUTHORIZATION_RESULT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), POLKIT_TYPE_AUTHORIZATION_RESULT)) |
| 40 |
|
| 41 |
#if 0 |
| 42 |
typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; |
| 43 |
#endif |
| 44 |
typedef struct _PolkitAuthorizationResultClass PolkitAuthorizationResultClass; |
| 45 |
|
| 46 |
GType polkit_authorization_result_get_type (void) G_GNUC_CONST; |
| 47 |
PolkitAuthorizationResult *polkit_authorization_result_new (gboolean is_authorized, |
| 48 |
gboolean is_challenge, |
| 49 |
PolkitDetails *details); |
| 50 |
PolkitDetails *polkit_authorization_result_get_details (PolkitAuthorizationResult *result); |
| 51 |
gboolean polkit_authorization_result_get_is_authorized (PolkitAuthorizationResult *result); |
| 52 |
gboolean polkit_authorization_result_get_is_challenge (PolkitAuthorizationResult *result); |
| 53 |
gboolean polkit_authorization_result_get_retains_authorization (PolkitAuthorizationResult *result); |
| 54 |
const gchar *polkit_authorization_result_get_temporary_authorization_id (PolkitAuthorizationResult *result); |
| 55 |
gboolean polkit_authorization_result_get_dismissed (PolkitAuthorizationResult *result); |
| 56 |
|
| 57 |
/* ---------------------------------------------------------------------------------------------------- */ |
| 58 |
|
| 59 |
G_END_DECLS |
| 60 |
|
| 61 |
#endif /* __POLKIT_AUTHORIZATION_RESULT_H */ |