+2003-02-09 Zack Rusin <zack@kde.org>
+
+ * test/bus-test.c: make_it_compile
+ * doc/dbus-specification.sgml: minimal semantic fix
+
2003-02-06 Anders Carlsson <andersca@codefactory.se>
Release 0.3
</listitem>
<listitem>
<para>
- D-BUS is <emphasis>low-overhead</emphasis> because it is uses a
+ D-BUS is <emphasis>low-overhead</emphasis> because it uses a
binary protocol, and does not have to convert to and from a text
format such as XML. Because D-BUS is intended for potentially
high-resolution same-machine IPC, not primarily for Internet IPC,
{
long time;
DBusTimeout *timeout;
-
+
} LoopTimeout;
static DBusList *timeouts;
{
struct timeval r;
long time;
-
+
/* Can't use dbus-sysdeps here since that isn't
* available outside of libdbus.
*/
void *data)
{
printf ("remove timeout!\n");
-
+
}
static DBusHandlerResult
static void
loop_run (void)
{
- running_loop = TRUE;
long start_time = get_time ();
-
+ running_loop = TRUE;
+
/* Horribly inefficient main loop */
while (running_loop)
{
time = get_time ();
_dbus_list_copy (&timeouts, &list_copy);
-
+
link = _dbus_list_get_first_link (&list_copy);
while (link != NULL)
{
DBusResultCode result;
DBusMessage *message;
DBusMessageHandler *handler;
-
+
server = dbus_server_listen ("debug:name=test-server", &result);
dbus_server_set_new_connection_function (server,
new_connection_callback,
connection = dbus_connection_open ("debug:name=test-server", &result);
dbus_connection_set_timeout_functions (connection,
add_timeout, remove_timeout,
- NULL, NULL);
+ NULL, NULL);
if (connection == NULL)
{
fprintf (stderr, "Failed to connect to server: %s\n",
handler = dbus_message_handler_new (message_handler, NULL, NULL);
dbus_connection_add_filter (connection, handler);
-
+
dbus_connection_send_message (connection, message, NULL, NULL);
dbus_message_unref (message);