| polkit Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | ||||
PolkitAgentTextListener; PolkitAgentListener * polkit_agent_text_listener_new (GCancellable *cancellable,GError **error);
PolkitAgentTextListener is an PolkitAgentListener implementation that interacts with the user using a textual interface.
typedef struct _PolkitAgentTextListener PolkitAgentTextListener;
The PolkitAgentTextListener struct should not be accessed directly.
PolkitAgentListener * polkit_agent_text_listener_new (GCancellable *cancellable,GError **error);
Creates a new PolkitAgentTextListener for authenticating the user
via an textual interface on the controlling terminal
(e.g. /dev/tty). This can fail if e.g. the
current process has no controlling terminal.
|
A GCancellable or NULL. |
|
Return location for error or NULL. |
Returns : |
A PolkitAgentTextListener or NULL if error is set. Free with g_object_unref() when done with it. |