diff options
Diffstat (limited to 'src/polkit/polkitprivate.h')
-rw-r--r-- | src/polkit/polkitprivate.h | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/src/polkit/polkitprivate.h b/src/polkit/polkitprivate.h index d52f628..bdf03c1 100644 --- a/src/polkit/polkitprivate.h +++ b/src/polkit/polkitprivate.h @@ -27,17 +27,7 @@ #include "polkitsubject.h" #include "polkitauthorizationresult.h" #include "polkittemporaryauthorization.h" -#include "_polkitbindings.h" -/* notes: - * - * - the _new_for_real() functions will ref the passed arg (you will still own the ref) - * - the _get_real() functions will return a ref (you will own the ref) - * - */ - -PolkitActionDescription *polkit_action_description_new_for_real (_PolkitActionDescription *real); -_PolkitActionDescription *polkit_action_description_get_real (PolkitActionDescription *action_description); PolkitActionDescription *polkit_action_description_new_for_gvariant (GVariant *value); GVariant *polkit_action_description_to_gvariant (PolkitActionDescription *action_description); @@ -47,25 +37,25 @@ GVariant *polkit_identity_to_gvariant (PolkitIdentity *identity); PolkitSubject *polkit_subject_new_for_gvariant (GVariant *variant, GError **error); PolkitIdentity *polkit_identity_new_for_gvariant (GVariant *variant, GError **error); -PolkitSubject *polkit_subject_new_for_real (_PolkitSubject *real); -_PolkitSubject *polkit_subject_get_real (PolkitSubject *subject); - -PolkitIdentity *polkit_identity_new_for_real (_PolkitIdentity *real); -_PolkitIdentity *polkit_identity_get_real (PolkitIdentity *identity); - -PolkitAuthorizationResult *polkit_authorization_result_new_for_real (_PolkitAuthorizationResult *real); -_PolkitAuthorizationResult *polkit_authorization_result_get_real (PolkitAuthorizationResult *authorization_result); PolkitAuthorizationResult *polkit_authorization_result_new_for_gvariant (GVariant *value); GVariant *polkit_authorization_result_to_gvariant (PolkitAuthorizationResult *authorization_result); -_PolkitTemporaryAuthorization *polkit_temporary_authorization_get_real (PolkitTemporaryAuthorization *authorization); -PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_real (_PolkitTemporaryAuthorization *real); PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_gvariant (GVariant *value); GVariant *polkit_temporary_authorization_to_gvariant (PolkitTemporaryAuthorization *authorization); -PolkitDetails *polkit_details_new_for_hash (GHashTable *hash); -GHashTable *polkit_details_get_hash (PolkitDetails *details); GVariant *polkit_details_to_gvariant (PolkitDetails *details); PolkitDetails *polkit_details_new_for_gvariant (GVariant *value); +PolkitActionDescription * +polkit_action_description_new (const gchar *action_id, + const gchar *description, + const gchar *message, + const gchar *vendor_name, + const gchar *vendor_url, + const gchar *icon_name, + PolkitImplicitAuthorization implicit_any, + PolkitImplicitAuthorization implicit_inactive, + PolkitImplicitAuthorization implicit_active, + GHashTable *annotations); + #endif /* __POLKIT_PRIVATE_H */ |