2005-01-28 Havoc Pennington <hp@redhat.com>
[platform/upstream/dbus.git] / doc / TODO
1 Important for 1.0
2 ===
3
4  - change .service files to have Names=list rather than Name=string
5   
6  - How we will handle DCOP needs sorting out. Among other things, we
7    need to check that service and service-ownership semantics map to DCOP 
8    reasonably well.
9
10  - Activation needs some careful additional thinking-through.
11
12  - Audit @todo and FIXME for security issues
13
14  - The convenience functions in dbus-bus.h should perhaps have
15    the signatures that they would have if they were autogenerated
16    stubs. e.g. the acquire service function. We should also evaluate 
17    which of these functions to include, in light of the fact that 
18    GLib/Qt native stubs will probably also exist.
19
20  - the "break loader" and valid/invalid message tests are all disabled;
21    they need to be fixed and re-enabled with the new message args stuff.
22    I think I want to drop the .message files thing and just have code
23    that generates messages, more like the tests for
24    dbus-marshal-recursive.c
25
26  - need to define bus behavior if you send a message to 
27    yourself; is it an error, or allowed? If allowed, 
28    we need to have a test for it in the test suite.
29
30  - add string array support back to append_args()
31
32  - validate dict entry number of fields
33
34  - just before 1.0, try a HAVE_INT64=0 build and be sure it runs
35
36  - the spec and implementation should probably require dict keys
37    to be basic types
38
39  - in dbus-keyring.c, enforce that the keyring dir is not 
40    world readable/writable
41
42  - the "server addresses" section of the spec is busted; need to 
43    support escaping in the addresses, be sure multiple addresses 
44    in one env variable work, etc.
45
46 Important for 1.0 GLib Bindings
47 ===
48
49  - finish dbus-glib-tool support for adding introspection 
50    data to GObject and autoexporting GObject using same
51
52  - the GLib bindings varargs take DBUS_TYPE_WHATEVER and 
53    return stuff allocated with dbus_malloc(); should this 
54    be made more "G" at some expense in code duplication?
55    You also still have to use some D-BUS functions such as 
56    dbus_message_get_args() which takes a DBusError. 
57    Probably we need to either fully encapsulate and hide 
58    dbus/dbus.h, or encapsulate it slightly less e.g. no 
59    GError. Or maybe it's as simple as "never return dbus_malloc() 
60    memory" and just fully encapsulate the get_args() type of 
61    stuff.
62
63  - dbus_gproxy_connect_signal() has to take a signature for the signal 
64    so it can figure out how to invoke the callback, or we have to rely
65    on having introspection data.
66
67  - DBusGProxy doesn't emit "destroy" when it should
68
69 Might as Well for 1.0
70 ===
71
72  - add dbus_message_has_path(), maybe has_member/interface
73
74  - connection_open/connection_disconnect lacks symmetry, open/close
75    or connect/disconnect
76
77  - protocol version in each message is pretty silly
78
79 Can Be Post 1.0
80 ===
81
82  - The message bus internal code still says "service" for 
83    "name", "base service" for "unique name", "activate" for 
84    "start"; would be nice to clean up.
85
86  - Property list feature on message bus (list of properties associated 
87    with a connection). May also include message matching rules 
88    that involve the properties of the source or destination
89    connection.
90
91  - Disconnecting the remote end on invalid UTF-8 is probably not a good 
92    idea. The definition of "valid" is slightly fuzzy. I think it might 
93    be better to just silently "fix" the UTF-8, or perhaps return an error.
94
95    Owen says we should only validate the UTF-8 on dbus_message_get_string()
96    (changing get_string to have an error return, and allowing a type error 
97    as a possible return)
98
99  - assorted _-prefixed symbols in libdbus aren't actually used by
100    libdbus, only by the message bus. These bloat up the library
101    size. Not sure how to fix, really.
102
103  - build and install the Doxygen manual in Makefile when --enable-docs
104
105  - if you send the same message to multiple connections, the serial number 
106    will only be right for one of them. Probably need to just write() the serial 
107    number, rather than putting it in the DBusMessage, or something.
108
109  - perhaps the bus driver should have properties that reflect attributes
110    of the session, such as hostname, architecture, operating system, 
111    etc. Could be useful for code that wants to special-case behavior 
112    for a particular host or class of hosts, for example.
113
114  - currently the security policy stuff for messages to/from 
115    the bus driver is kind of strange; basically it's hardcoded that 
116    you can always talk to the driver, but the default config file 
117    has rules for it anyway, or something. it's conceptually 
118    screwy at the moment.
119
120  - when making a method call, if the call serial were globally unique,
121    we could forward the call serial along with any method calls made
122    as a result of the first method call, and allow reentrancy that was
123    strictly part of the call stack of said method call. But I don't
124    really see how to do this without making the user pass around the
125    call serial to all method calls all the time, or disallowing 
126    async calls.
127
128    If done post 1.0 will probably be an optional/ugly-API type 
129    of thing.
130
131  - I don't want to introduce DBusObject, but refcounting and object
132    data could still be factored out into an internal "base class" 
133    perhaps.
134
135  - document the auth protocol as a set of states and transitions, and
136    then reimplement it in those terms
137
138  - recursive dispatch, see dbus_connection_dispatch()
139
140  - do we need per-display activation; if so I'd like to do this by setting a
141    "display ID" property on screen 0, with a GUID, and keying activation by 
142    said GUID. Otherwise you get all kinds of unrobust
143    string/hostname-based mess. per-screen is then done by appending screen number
144    to the display. If displays have a deterministic ID like this, you can 
145    do per-display by simply including GUID in the service name.
146
147  - optimization and profiling!