|
152 | 152 | If the permanent flag is set to True, a rule will be appended to the policy or an exiting device |
153 | 153 | rule will be modified in order to permanently store the authorization decision. |
154 | 154 |
|
155 | | - Sucessfull exection of this method will cause the DevicePolicyChanged signal to be broadcasted if |
156 | | - the device authorization target was different than the applied target. |
| 155 | + Successful execution of this method will cause the DevicePolicyChanged signal to be broadcasted if |
| 156 | + the device authorization target was different from the applied target. |
157 | 157 | --> |
158 | 158 | <method name="applyDevicePolicy"> |
159 | 159 | <arg name="id" direction="in" type="u"/> |
|
205 | 205 | DevicePolicyChanged: |
206 | 206 | @id: Device id of the device |
207 | 207 | @target_old: Previous authorization target in numerical form. |
| 208 | + 0 = Allow. 1 = Block. 2 = Reject. |
208 | 209 | @target_new: Current authorization target in numerical form. |
209 | 210 | @device_rule: Device specific rule. |
210 | 211 | @rule_id: A rule id of the matched rule. Otherwise a reserved rule id value is used. |
|
234 | 235 | <arg name="rule_id" direction="out" type="u"/> |
235 | 236 | <arg name="attributes" direction="out" type="a{ss}"/> |
236 | 237 | </signal> |
| 238 | + |
| 239 | + <!-- |
| 240 | + DevicePolicyApplied: |
| 241 | + @id: Device id of the device |
| 242 | + @target_new: Current authorization target in numerical form. |
| 243 | + 0 = Allow. 1 = Block. 2 = Reject. |
| 244 | + @device_rule: Device specific rule. |
| 245 | + @rule_id: A rule id of the matched rule. Otherwise a reserved rule id value is used. |
| 246 | + Reserved values are: |
| 247 | + 4294967294 (UINT32_MAX - 1) for an implicit rule, e.g. |
| 248 | + ImplicitPolicyTarget or InsertedDevicePolicy. |
| 249 | + @attributes: A dictionary of device attributes and their values. |
| 250 | +
|
| 251 | + Notify about a change of a USB device. |
| 252 | + This is a superset of DevicePolicyChanged and will always be thrown |
| 253 | + when a device is inserted, authorised, or rejected. |
| 254 | +
|
| 255 | + The device attribute dictionary contains the following attributes: |
| 256 | + - id (the USB device ID in the form VID:PID) |
| 257 | + - name |
| 258 | + - serial |
| 259 | + - via-port |
| 260 | + - hash |
| 261 | + - parent-hash |
| 262 | + - with-interface |
| 263 | + - with-connect-type (either "hardwired", "hotplug", or the empty string for unknown) |
| 264 | +
|
| 265 | + --> |
| 266 | + <signal name="DevicePolicyApplied"> |
| 267 | + <arg name="id" direction="out" type="u"/> |
| 268 | + <arg name="target_new" direction="out" type="u"/> |
| 269 | + <arg name="device_rule" direction="out" type="s"/> |
| 270 | + <arg name="rule_id" direction="out" type="u"/> |
| 271 | + <arg name="attributes" direction="out" type="a{ss}"/> |
| 272 | + </signal> |
237 | 273 | </interface> |
238 | 274 | </node> |
239 | 275 |
|
0 commit comments