summaryrefslogtreecommitdiffstats
path: root/bus/utils.c
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@codefactory.se>2003-02-13 19:06:42 +0000
committerAnders Carlsson <andersca@codefactory.se>2003-02-13 19:06:42 +0000
commit02dfd4fb3427a6afef6b9b99d39de6248a20e0cb (patch)
tree99fd854a9ac5d2aaeac3d3d3fedc958d4bb6a44e /bus/utils.c
parentb09fadc1145570d752e7f709bfc0cf8c486d5146 (diff)
2003-02-13 Anders Carlsson <andersca@codefactory.se>
* bus/Makefile.am: Add utils.[ch] * bus/connection.c: (bus_connection_foreach): Fix a warning. * bus/desktop-file.c: (grow_lines_in_section), (grow_sections), (unescape_string), (new_section), (parse_section_start), (parse_key_value), (report_error), (bus_desktop_file_load), (bus_desktop_file_get_string): * bus/desktop-file.h: Use DBusError for error reporting. * bus/dispatch.c: (send_one_message), (bus_dispatch_message_handler): * bus/driver.c: (bus_driver_send_service_deleted), (bus_driver_send_service_created), (bus_driver_send_service_lost), (bus_driver_send_service_acquired), (bus_driver_handle_hello), (bus_driver_send_welcome_message), (bus_driver_handle_list_services), (bus_driver_handle_acquire_service), (bus_driver_handle_service_exists): * bus/loop.c: (bus_loop_run): * bus/main.c: Use BUS_HANDLE_OOM instead of _DBUS_HANDLE_OOM. * bus/utils.c: (bus_wait_for_memory): * bus/utils.h: New files with general utility functions. * dbus/dbus-internals.h: Remove _DBUS_HANDLE_OOM.
Diffstat (limited to 'bus/utils.c')
-rw-r--r--bus/utils.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/bus/utils.c b/bus/utils.c
new file mode 100644
index 00000000..8663b1e5
--- /dev/null
+++ b/bus/utils.c
@@ -0,0 +1,33 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* utils.c General utility functions
+ *
+ * Copyright (C) 2003 CodeFactory AB
+ * Copyright (C) 2003 Red Hat, Inc.
+ *
+ * Licensed under the Academic Free License version 1.2
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#include "utils.h"
+#include <dbus/dbus-sysdeps.h>
+
+void
+bus_wait_for_memory (void)
+{
+ _dbus_sleep_milliseconds (500);
+}
+