summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2013-04-10 02:47:50 +0200
committerMiloslav Trmač <mitr@redhat.com>2013-04-15 23:22:30 +0200
commitdce12926186314fd0ae8d6bb1af0f99c1c1d023c (patch)
tree0f552342d78bbcd96aee536eeaa66342a94c9bb7 /src
parent1df991e3bfc222dfe16fcb197e97d4738450c8b3 (diff)
downloadpolkit-dce12926186314fd0ae8d6bb1af0f99c1c1d023c.tar.gz
Move polkit_temporary_authorization_new to private header file.
The related new_for_gvariant() is private already, this seems also intended to be private. searchco.de doesn't show any external users. https://bugs.freedesktop.org/show_bug.cgi?id=63573
Diffstat (limited to 'src')
-rw-r--r--src/polkit/polkitprivate.h5
-rw-r--r--src/polkit/polkittemporaryauthorization.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/polkit/polkitprivate.h b/src/polkit/polkitprivate.h
index 579cc25..3567cc0 100644
--- a/src/polkit/polkitprivate.h
+++ b/src/polkit/polkitprivate.h
@@ -40,6 +40,11 @@ PolkitIdentity *polkit_identity_new_for_gvariant (GVariant *variant, GError **er
PolkitAuthorizationResult *polkit_authorization_result_new_for_gvariant (GVariant *value);
GVariant *polkit_authorization_result_to_gvariant (PolkitAuthorizationResult *authorization_result);
+PolkitTemporaryAuthorization *polkit_temporary_authorization_new (const gchar *id,
+ const gchar *action_id,
+ PolkitSubject *subject,
+ guint64 time_obtained,
+ guint64 time_expires);
PolkitTemporaryAuthorization *polkit_temporary_authorization_new_for_gvariant (GVariant *value,
GError **error);
GVariant *polkit_temporary_authorization_to_gvariant (PolkitTemporaryAuthorization *authorization);
diff --git a/src/polkit/polkittemporaryauthorization.h b/src/polkit/polkittemporaryauthorization.h
index 4d0c530..792a3e8 100644
--- a/src/polkit/polkittemporaryauthorization.h
+++ b/src/polkit/polkittemporaryauthorization.h
@@ -45,11 +45,6 @@ typedef struct _PolkitTemporaryAuthorization PolkitTemporaryAuthorization;
typedef struct _PolkitTemporaryAuthorizationClass PolkitTemporaryAuthorizationClass;
GType polkit_temporary_authorization_get_type (void) G_GNUC_CONST;
-PolkitTemporaryAuthorization *polkit_temporary_authorization_new (const gchar *id,
- const gchar *action_id,
- PolkitSubject *subject,
- guint64 time_obtained,
- guint64 time_expires);
const gchar *polkit_temporary_authorization_get_id (PolkitTemporaryAuthorization *authorization);
const gchar *polkit_temporary_authorization_get_action_id (PolkitTemporaryAuthorization *authorization);
PolkitSubject *polkit_temporary_authorization_get_subject (PolkitTemporaryAuthorization *authorization);