| 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 |
#ifndef __POLKIT_TYPES_H |
| 23 |
#define __POLKIT_TYPES_H |
| 24 |
|
| 25 |
#include <glib-object.h> |
| 26 |
|
| 27 |
struct _PolkitAuthority; |
| 28 |
typedef struct _PolkitAuthority PolkitAuthority; |
| 29 |
|
| 30 |
struct _PolkitActionDescription; |
| 31 |
typedef struct _PolkitActionDescription PolkitActionDescription; |
| 32 |
|
| 33 |
typedef struct _PolkitSubject PolkitSubject; /* Dummy typedef */ |
| 34 |
|
| 35 |
struct _PolkitUnixProcess; |
| 36 |
typedef struct _PolkitUnixProcess PolkitUnixProcess; |
| 37 |
|
| 38 |
struct _PolkitUnixSession; |
| 39 |
typedef struct _PolkitUnixSession PolkitUnixSession; |
| 40 |
|
| 41 |
struct _PolkitSystemBusName; |
| 42 |
typedef struct _PolkitSystemBusName PolkitSystemBusName; |
| 43 |
|
| 44 |
typedef struct _PolkitIdentity PolkitIdentity; /* Dummy typedef */ |
| 45 |
|
| 46 |
struct _PolkitUnixUser; |
| 47 |
typedef struct _PolkitUnixUser PolkitUnixUser; |
| 48 |
|
| 49 |
struct _PolkitUnixGroup; |
| 50 |
typedef struct _PolkitUnixGroup PolkitUnixGroup; |
| 51 |
|
| 52 |
struct _PolkitUnixNetgroup; |
| 53 |
typedef struct _PolkitUnixNetgroup PolkitUnixNetgroup; |
| 54 |
|
| 55 |
struct _PolkitAuthorizationResult; |
| 56 |
typedef struct _PolkitAuthorizationResult PolkitAuthorizationResult; |
| 57 |
|
| 58 |
struct _PolkitDetails; |
| 59 |
typedef struct _PolkitDetails PolkitDetails; |
| 60 |
|
| 61 |
struct _PolkitTemporaryAuthorization; |
| 62 |
typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization; |
| 63 |
|
| 64 |
struct _PolkitPermission; |
| 65 |
typedef struct _PolkitPermission PolkitPermission; |
| 66 |
|
| 67 |
#if GLIB_CHECK_VERSION(2, 44, 0) |
| 68 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthority, g_object_unref) |
| 69 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitActionDescription, g_object_unref) |
| 70 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSubject, g_object_unref) |
| 71 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitUnixProcess, g_object_unref) |
| 72 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitUnixSession, g_object_unref) |
| 73 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitSystemBusName, g_object_unref) |
| 74 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitIdentity, g_object_unref) |
| 75 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitUnixUser, g_object_unref) |
| 76 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitUnixGroup, g_object_unref) |
| 77 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitUnixNetgroup, g_object_unref) |
| 78 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAuthorizationResult, g_object_unref) |
| 79 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitDetails, g_object_unref) |
| 80 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitTemporaryAuthorization, g_object_unref) |
| 81 |
G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitPermission, g_object_unref) |
| 82 |
#endif |
| 83 |
|
| 84 |
#endif /* __POLKIT_TYPES_H */ |