doc: Document 'informational' value of Requirement field
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Mon, 25 Jun 2012 10:16:37 +0000 (13:16 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 26 Jun 2012 09:52:00 +0000 (12:52 +0300)
doc/agent-api.txt

index 8201ac1..91371af 100644 (file)
@@ -118,14 +118,14 @@ Fields            string Name
 Arguments      string Type
 
                        Contains the type of a field. For example "psk", "wep"
-                       "informational", "passphrase", "response", "ssid",
-                       "wpspin" or plain "string". "informational" has no
-                       "Requirement" but a "Value".
+                       "passphrase", "response", "ssid", "wpspin" or plain
+                       "string".
 
                string Requirement
 
                        Contains the requirement option. Valid values are
-                       "mandatory", "optional" or "alternate".
+                       "mandatory", "optional", "alternate" or
+                       "informational".
 
                        The "alternate" value specifies that this field can be
                        returned as an alternative to another one. An example
@@ -134,6 +134,10 @@ Arguments  string Type
                        All "mandatory" fields must be returned, while the
                        "optional" can be returned if available.
 
+                       Nothing needs to be returned for "informational", as it
+                       is here only to provide an information so a value is
+                       attached to it.
+
                array{string} Alternates
 
                        Contains the list of alternate field names this
@@ -160,9 +164,10 @@ Examples   Requesting a passphrase for WPA2 network
                                                   "Requirement" : "mandatory"
                                                 },
                                  "PreviousPassphrase" :
-                                               { "Type"  : "informational",
-                                                 "Value" : "secret123"
-                                               }
+                                       { "Type"       : "psk",
+                                         "Requirement : "informational",
+                                         "Value"      : "secret123"
+                                       }
                                }
 
                Requesting name for hidden network