* Basically, this callback enables a program to provide an user
* interface like this:
*
- * @code
+ * <programlisting>
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
- * @endcode
+ * </programlisting>
*
* This dialog assumes that @grant_type passed was
* #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_ALWAYS. By ticking the
* #POLKIT_RESULT_ONLY_VIA_SELF_AUTH_KEEP_SESSION. Then the dialog
* should look like this:
*
- * @code
+ * <programlisting>
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
- * @endcode
+ * </programlisting>
*
* Finally, if the @grant_type value passed is
* e.g. #POLKIT_RESULT_ONLY_VIA_SELF_AUTH, there are no options to
* click.:
*
- * @code
+ * <programlisting>
* +------------------------------------------------------------+
* | You need to authenticate to access the volume 'Frobnicator |
* | Adventures Vol 2' |
* | |
* | [Cancel] [Authenticate] |
* +------------------------------------------------------------+
- * @endcode
+ * </programlisting>
*
* Of course, these examples also applies to
* #POLKIT_RESULT_ONLY_VIA_ADMIN_AUTH and friends.
*
* For glib mainloop, the function will typically look like this:
*
- * @code
+ * <programlisting>
* static void
* child_watch_func (GPid pid,
* gint status,
* {
* return g_child_watch_add (pid, child_watch_func, polkit_grant);
* }
- * @endcode
+ * </programlisting>
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
*
* For glib mainloop, the function will typically look like this:
*
- * @code
+ * <programlisting>
* static gboolean
* io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data)
* {
* out:
* return id;
* }
- * @endcode
+ * </programlisting>
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
*
* For glib mainloop, the function will typically look like this:
*
- * @code
+ * <programlisting>
* static void
* remove_watch (PolKitGrant *polkit_auth, int watch_id)
* {
* g_source_remove (watch_id);
* }
- * @endcode
+ * </programlisting>
*
**/
typedef void (*PolKitGrantRemoveWatch) (PolKitGrant *polkit_grant,
*
* For glib mainloop, the function will typically look like this:
*
- * @code
+ * <programlisting>
* static gboolean
* io_watch_have_data (GIOChannel *channel, GIOCondition condition, gpointer user_data)
* {
* out:
* return id;
* }
- * @endcode
+ * </programlisting>
*
* Returns: 0 if the watch couldn't be set up; otherwise an unique
* identifier for the watch.
*
* For the glib mainloop, the function will typically look like this:
*
- * @code
+ * <programlisting>
* static void
* io_remove_watch (PolKitContext *pk_context, int watch_id)
* {
* g_source_remove (watch_id);
* }
- * @endcode
+ * </programlisting>
*
**/
typedef void (*PolKitContextRemoveIOWatch) (PolKitContext *pk_context, int watch_id);