[nautilus] directory: implement dump



commit b3370181b6bff7fc3afe707f163b81f444e305fa
Author: Carlos Soriano <csoriano gnome org>
Date:   Thu Dec 10 18:48:15 2015 +0100

    directory: implement dump
    
    For debugging purposes on gdb.

 libnautilus-private/nautilus-directory.c |   10 ++++++++++
 libnautilus-private/nautilus-directory.h |    2 ++
 2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-directory.c b/libnautilus-private/nautilus-directory.c
index d546250..d9b2575 100644
--- a/libnautilus-private/nautilus-directory.c
+++ b/libnautilus-private/nautilus-directory.c
@@ -1729,6 +1729,16 @@ nautilus_directory_number_outstanding (void)
 }
 
 void
+nautilus_directory_dump (NautilusDirectory *directory)
+{
+        g_autofree gchar *uri;
+
+        uri = g_file_get_uri (directory->details->location);
+        g_print ("uri: %s\n", uri);
+        g_print ("ref count: %d\n", G_OBJECT (directory)->ref_count);
+}
+
+void
 nautilus_self_check_directory (void)
 {
        NautilusDirectory *directory;
diff --git a/libnautilus-private/nautilus-directory.h b/libnautilus-private/nautilus-directory.h
index 34baa86..38662ec 100644
--- a/libnautilus-private/nautilus-directory.h
+++ b/libnautilus-private/nautilus-directory.h
@@ -231,5 +231,7 @@ GList *            nautilus_directory_list_sort_by_uri         (GList
 
 gboolean           nautilus_directory_is_editable              (NautilusDirectory         *directory);
 
+void               nautilus_directory_dump                     (NautilusDirectory         *directory);
+
 
 #endif /* NAUTILUS_DIRECTORY_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]