summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2013-04-10 02:51:34 +0200
committerMiloslav Trmač <mitr@redhat.com>2013-04-15 23:22:39 +0200
commiteec38ce7ad1b4d82bc075490b1011735ffb4e18a (patch)
treecfcc57734a02eebd2740b43732f85158f4dad57c
parent91052183ea45a14fa639ba4c5aaa6c0b3bcb9739 (diff)
downloadpolkit-eec38ce7ad1b4d82bc075490b1011735ffb4e18a.tar.gz
Document deprecated functions.
All of these are a part of public API with some external users. Do the minimum to avoid a warning; ideally we should also add a *_DISABLE_DEPRECATED macro etc. https://bugs.freedesktop.org/show_bug.cgi?id=63573
-rw-r--r--docs/polkit/polkit-1-sections.txt3
-rw-r--r--src/polkit/polkitunixprocess.c7
-rw-r--r--src/polkitagent/polkitagentlistener.c9
3 files changed, 19 insertions, 0 deletions
diff --git a/docs/polkit/polkit-1-sections.txt b/docs/polkit/polkit-1-sections.txt
index dfc407a..a773795 100644
--- a/docs/polkit/polkit-1-sections.txt
+++ b/docs/polkit/polkit-1-sections.txt
@@ -25,6 +25,7 @@ PolkitCheckAuthorizationFlags
polkit_authority_get_async
polkit_authority_get_finish
polkit_authority_get_sync
+polkit_authority_get
polkit_authority_get_owner
polkit_authority_get_backend_name
polkit_authority_get_backend_version
@@ -173,6 +174,7 @@ polkit_unix_process_set_start_time
polkit_unix_process_get_start_time
polkit_unix_process_set_uid
polkit_unix_process_get_uid
+polkit_unix_process_get_owner
<SUBSECTION Standard>
PolkitUnixProcessClass
POLKIT_UNIX_PROCESS
@@ -320,6 +322,7 @@ PolkitAgentRegisterFlags
polkit_agent_listener_register
polkit_agent_listener_register_with_options
polkit_agent_listener_unregister
+polkit_agent_register_listener
<SUBSECTION Standard>
POLKIT_AGENT_LISTENER
POLKIT_AGENT_IS_LISTENER
diff --git a/src/polkit/polkitunixprocess.c b/src/polkit/polkitunixprocess.c
index 913be3a..9d30cd2 100644
--- a/src/polkit/polkitunixprocess.c
+++ b/src/polkit/polkitunixprocess.c
@@ -740,6 +740,13 @@ out:
}
/* deprecated public method */
+/**
+ * polkit_unix_process_get_owner:
+ * @process: A #PolkitUnixProcess.
+ * @error: Return location for error.
+ *
+ * (deprecated)
+ */
gint
polkit_unix_process_get_owner (PolkitUnixProcess *process,
GError **error)
diff --git a/src/polkitagent/polkitagentlistener.c b/src/polkitagent/polkitagentlistener.c
index 5bddd03..29a0fdf 100644
--- a/src/polkitagent/polkitagentlistener.c
+++ b/src/polkitagent/polkitagentlistener.c
@@ -535,6 +535,15 @@ listener_died (gpointer user_data,
server_free (server);
}
+/**
+ * polkit_agent_register_listener:
+ * @listener: A #PolkitAgentListener.
+ * @subject: The subject to become an authentication agent for, typically a #PolkitUnixSession object.
+ * @object_path: The D-Bus object path to use for the authentication agent or %NULL for the default object path.
+ * @error: Return location for error.
+ *
+ * (deprecated)
+ */
gboolean
polkit_agent_register_listener (PolkitAgentListener *listener,
PolkitSubject *subject,