/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to DBUS-API

  • Committer: teddy at recompile
  • Date: 2012-02-26 11:47:19 UTC
  • mto: (237.7.109 trunk)
  • mto: This revision was merged to the branch mainline in revision 300.
  • Revision ID: teddy@recompile.se-20120226114719-m3odq4s34ebt6hg8
Add facilities for D-Bus interface annotations and use them to mark
the old D-Bus interfaces as deprecated.

* mandos (dbus_interface_annotations): New decorator.
  (DBusObjectWithProperties._is_dbus_property): Removed.  All callers
                                                changed.
  (DBusObjectWithProperties._is_dbus_thing): New; generalized version
                                             of "_is_dbus_property".
  (DBusObjectWithProperties._get_all_dbus_properties): Removed.  All
                                                       callers
                                                       changed.
  (DBusObjectWithProperties._get_all_dbus_things): New; generalized
                                                   version of
                                                   "_get_all_dbus_properties".
  (DBusObjectWithProperties.Introspect): Also add interface
                                         annotation tags.
  (AlternateDBusNamesMetaclass.__new__): Also copy interface
                                         annotations.  Add
                                         "deprecated" annotation on
                                         old interface.
  (ClientDBus._foo): New interface annotation to mark non-compliance
                     with the standard property change signal
                     interface.
  (MandosDBusService): Inherit from DBusObjectWithProperties to get
                       interface annotation support.
  (MandosDBusService._foo): New interface annotation to mark
                            non-compliance with the standard property
                            change signal interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
   k) A raw byte array, not hexadecimal digits.
135
135
 
136
136
** Signals
137
 
*** CheckerCompleted(n: Exitcode, x: Signal, s: Command)
 
137
*** CheckerCompleted(n: Exitcode, x: Waitstatus, s: Command)
138
138
    A checker (Command) has completed.  Exitcode is either the exit
139
 
    code or -1 for abnormal exit, in which case, the signal number
140
 
    is available.
 
139
    code or -1 for abnormal exit.  In any case, the full Waitstatus
 
140
    (as from wait(2)) is also available.
141
141
    
142
142
*** CheckerStarted(s: Command)
143
143
    A checker command (Command) has just been started.
150
150
    milliseconds, depending on ApprovedByDefault.  Approve() can now
151
151
    usefully be called on this client object.
152
152
    
 
153
*** PropertyChanged(s: Property, v: Value)
 
154
    The Property on this client has changed to Value.
 
155
    
153
156
*** Rejected(s: Reason)
154
157
    This client was not given its secret for a specified Reason.
155
158
 
156
159
* Copyright
157
160
 
158
 
    Copyright © 2010-2015 Teddy Hogeborn
159
 
    Copyright © 2010-2015 Björn Påhlsson
 
161
    Copyright © 2010-2012 Teddy Hogeborn
 
162
    Copyright © 2010-2012 Björn Påhlsson
160
163
  
161
164
** License:
162
165