summaryrefslogtreecommitdiffstats
path: root/tools/dbus-names-model.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2005-01-30 23:06:32 +0000
committerHavoc Pennington <hp@redhat.com>2005-01-30 23:06:32 +0000
commit1dcacffc325e50754d4cc3338822d1f03c8b6e45 (patch)
tree2e41d02141bf61be249ee6a9f8df6bd891a7d1e1 /tools/dbus-names-model.h
parent4d985d98906577e3344fc1107d341b8ac969db1e (diff)
2005-01-30 Havoc Pennington <hp@redhat.com>
* glib/dbus-glib.c (dbus_g_pending_call_set_notify): new function (dbus_g_pending_call_cancel): new function * dbus/dbus-glib.h: move GType decls for connection/message here; * dbus/dbus-glib.c: move all the g_type and ref/unref stuff in here, just kind of rationalizing how we handle all that * tools/dbus-names-model.c: new file for a tree model listing the services on a bus * tools/dbus-tree-view.c (model_new): use proper typing on the model rows
Diffstat (limited to 'tools/dbus-names-model.h')
-rw-r--r--tools/dbus-names-model.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/dbus-names-model.h b/tools/dbus-names-model.h
new file mode 100644
index 00000000..c2b54fc8
--- /dev/null
+++ b/tools/dbus-names-model.h
@@ -0,0 +1,31 @@
+/* -*- mode: C; c-file-style: "gnu" -*- */
+/* dbus-names-model.h GtkTreeModel for names on the bus
+ *
+ * Copyright (C) 2005 Red Hat, Inc.
+ *
+ * Licensed under the Academic Free License version 2.1
+ *
+ * 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
+ *
+ */
+#ifndef DBUS_NAMES_MODEL_H
+#define DBUS_NAMES_MODEL_H
+
+#include <gtk/gtk.h>
+#include <dbus/dbus-glib.h>
+
+GtkTreeModel* names_model_new (DBusGConnection *connection);
+
+#endif /* DBUS_NAMES_MODEL_H */