| 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_PRIVATE_H |
| 23 |
#define __POLKIT_PRIVATE_H |
| 24 |
|
| 25 |
#include "polkitimplicitauthorization.h" |
| 26 |
#include "polkitactiondescription.h" |
| 27 |
#include "polkitsubject.h" |
| 28 |
#include "polkitauthorizationresult.h" |
| 29 |
#include "polkittemporaryauthorization.h" |
| 30 |
|
| 31 |
/* FIXME: This header file is currently installed among other public header |
| 32 |
files, and the symbols are exported in the shared library. |
| 33 |
|
| 34 |
For application writers: relying on any function here is strongly |
| 35 |
discouraged. |
| 36 |
|
| 37 |
For polkit maintainers: This should be made private if a large ABI break |
| 38 |
were necessary in the future. In the meantime, consider that there is |
| 39 |
non-zero risk that changing these functions might break some applications. */ |
| 40 |
|
| 41 |
PolkitActionDescription *polkit_action_description_new_for_gvariant (GVariant *value); |
| 42 |
GVariant *polkit_action_description_to_gvariant (PolkitActionDescription *action_description); |
| 43 |
|
| 44 |
GVariant *polkit_subject_to_gvariant (PolkitSubject *subject); |
| 45 |
GVariant *polkit_identity_to_gvariant (PolkitIdentity *identity); |
| 46 |
|
| 47 |
gint polkit_unix_process_get_racy_uid__ (PolkitUnixProcess *process, GError **error); |
| 48 |
|
| 49 |
PolkitSubject *polkit_subject_new_for_gvariant (GVariant *variant, GError **error); |
| 50 |
PolkitSubject *polkit_subject_new_for_gvariant_invocation (GVariant *variant, |
| 51 |
GDBusMethodInvocation *invocation, |
| 52 |
GError **error); |
| 53 |
PolkitIdentity *polkit_identity_new_for_gvariant (GVariant *variant, GError **error); |
| 54 |
|
| 55 |
PolkitAuthorizationResult *polkit_authorization_result_new_for_gvariant (GVariant *value); |
| 56 |
GVariant *polkit_authorization_result_to_gvariant (PolkitAuthorizationResult *authorization_result); |
| 57 |
|
| 58 |
PolkitTemporaryAuthorization *polkit_temporary_authorization_new (const gchar *id, |
| 59 |
const gchar *action_id, |
| 60 |
PolkitSubject *subject, |
| 61 |
guint64 time_obtained, |
| 62 |
guint64 time_expires); |
| 63 |
PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_gvariant (GVariant *value, |
| 64 |
GError **error); |
| 65 |
GVariant *polkit_temporary_authorization_to_gvariant (PolkitTemporaryAuthorization *authorization); |
| 66 |
|
| 67 |
GVariant *polkit_details_to_gvariant (PolkitDetails *details); |
| 68 |
PolkitDetails *polkit_details_new_for_gvariant (GVariant *value); |
| 69 |
|
| 70 |
PolkitActionDescription * |
| 71 |
polkit_action_description_new (const gchar *action_id, |
| 72 |
const gchar *description, |
| 73 |
const gchar *message, |
| 74 |
const gchar *vendor_name, |
| 75 |
const gchar *vendor_url, |
| 76 |
const gchar *icon_name, |
| 77 |
PolkitImplicitAuthorization implicit_any, |
| 78 |
PolkitImplicitAuthorization implicit_inactive, |
| 79 |
PolkitImplicitAuthorization implicit_active, |
| 80 |
GHashTable *annotations); |
| 81 |
|
| 82 |
#endif /* __POLKIT_PRIVATE_H */ |