summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-05-13 12:20:16 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-05-13 12:20:16 -0400
commit7a9f7c1389befed09abc9d2187c213868f638c43 (patch)
treeef769feb4b6d81cdfd9ed440a6d3e6a20fd8fe29 /data
parent86008e618476834c040bf7db40bbc887cca2fbb5 (diff)
downloadpolkit-7a9f7c1389befed09abc9d2187c213868f638c43.tar.gz
Change the PolkitAuthorizationResult enumeration into an object
Diffstat (limited to 'data')
-rw-r--r--data/org.freedesktop.PolicyKit1.Authority.xml24
1 files changed, 13 insertions, 11 deletions
diff --git a/data/org.freedesktop.PolicyKit1.Authority.xml b/data/org.freedesktop.PolicyKit1.Authority.xml
index da2fe59..abe0d3f 100644
--- a/data/org.freedesktop.PolicyKit1.Authority.xml
+++ b/data/org.freedesktop.PolicyKit1.Authority.xml
@@ -109,18 +109,20 @@
<!-- ---------------------------------------------------------------------------------------------------- -->
<!-- An enumeration for results when checking for an authorization -->
- <annotation name="org.gtk.EggDBus.DeclareEnum" value="AuthorizationResult">
- <annotation name="org.gtk.EggDBus.DocString.Summary" value="Possible results for checking authorizations"/>
- <annotation name="org.gtk.EggDBus.DocString" value="Possible results that the org.freedesktop.PolicyKit1.Authority.CheckAuthorization() method can return."/>
+ <annotation name="org.gtk.EggDBus.DeclareStruct" value="AuthorizationResult">
+ <annotation name="org.gtk.EggDBus.DocString.Summary" value="Authorization Results"/>
+ <annotation name="org.gtk.EggDBus.DocString" value="Describes the result of calling org.freedesktop.PolicyKit1.Authority.CheckAuthorization()."/>
- <annotation name="org.gtk.EggDBus.Enum.Member" value="NotAuthorized">
- <annotation name="org.gtk.EggDBus.DocString" value="The given #Subject is not authorized for the specified action."/>
+ <annotation name="org.gtk.EggDBus.Struct.Member" value="Boolean:is_authorized">
+ <annotation name="org.gtk.EggDBus.DocString" value="#TRUE if the given #Subject is authorized for the given action."/>
</annotation>
- <annotation name="org.gtk.EggDBus.Enum.Member" value="Authorized">
- <annotation name="org.gtk.EggDBus.DocString" value="The given #Subject is authorized for the specified action."/>
+
+ <annotation name="org.gtk.EggDBus.Struct.Member" value="Boolean:is_challenge">
+ <annotation name="org.gtk.EggDBus.DocString" value="#TRUE if the given #Subject could be authorized if more information was provided, and %CheckAuthorizationFlags.AllowUserInteraction wasn't passed."/>
</annotation>
- <annotation name="org.gtk.EggDBus.Enum.Member" value="Challenge">
- <annotation name="org.gtk.EggDBus.DocString" value="The given #Subject is authorized if more information is provided."/>
+
+ <annotation name="org.gtk.EggDBus.Struct.Member" value="Dict<String,String>:details">
+ <annotation name="org.gtk.EggDBus.DocString" value="Details for the result or empty if not authorized."/>
</annotation>
</annotation>
@@ -226,9 +228,9 @@
<annotation name="org.gtk.EggDBus.DocString" value="A unique id used to cancel the the authentication check via org.freedesktop.PolicyKit1.Authority.CancelCheckAuthorization() or the empty string if cancellation is not needed."/>
</arg>
- <arg name="result" direction="out" type="u">
+ <arg name="result" direction="out" type="(bba{ss})">
<annotation name="org.gtk.EggDBus.Type" value="AuthorizationResult"/>
- <annotation name="org.gtk.EggDBus.DocString" value="A value from the #AuthorizationResult enumeration."/>
+ <annotation name="org.gtk.EggDBus.DocString" value="An #AuthorizationResult structure."/>
</arg>
</method>