summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-directory-metafile.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-05-16 16:55:08 +0000
committerDarin Adler <darin@src.gnome.org>2000-05-16 16:55:08 +0000
commit42b699468e7454b89042851913d0e9dd9346d086 (patch)
tree0278d078be4cb22965b13d7005cbe746799c0a72 /libnautilus-extensions/nautilus-directory-metafile.h
parentc7f20e0e336d25f2a16e1b485365d3e1e7e8ced4 (diff)
downloadnautilus-42b699468e7454b89042851913d0e9dd9346d086.tar.gz
Moved metafile code into its own source file. Also worked on making it all
* libnautilus-extensions/Makefile.am: * libnautilus-extensions/nautilus-directory-metafile.c: (get_metadata_from_node), (get_metadata_list_from_node), (create_metafile_root), (nautilus_directory_get_metadata), (nautilus_directory_get_metadata_list), (nautilus_directory_get_boolean_metadata), (nautilus_directory_set_boolean_metadata), (nautilus_directory_get_integer_metadata), (nautilus_directory_set_integer_metadata), (nautilus_directory_get_file_metadata_node), (nautilus_directory_get_file_metadata), (nautilus_directory_get_file_metadata_list), (real_set_metadata), (real_set_metadata_list), (metadata_key_new), (metadata_key_destroy), (metadata_key_hash), (metadata_key_hash_equal), (metadata_value_new), (metadata_value_new_list), (metadata_value_destroy), (metadata_value_equal), (set_metadata_in_metafile), (set_metadata_eat_parameters), (free_metadata_changes_hash_table_entry), (destroy_metadata_changes_hash_table), (nautilus_directory_metafile_destroy), (nautilus_directory_set_metadata), (nautilus_directory_set_file_metadata), (nautilus_directory_set_file_metadata_list): * libnautilus-extensions/nautilus-directory-metafile.h: * libnautilus-extensions/nautilus-directory-private.h: * libnautilus-extensions/nautilus-directory.c: (nautilus_directory_destroy): * libnautilus-extensions/nautilus-file.c: Moved metafile code into its own source file. Also worked on making it all bottleneck so we can store it before we read in a metafile. * src/file-manager/fm-list-view.c: (select_matching_name_callback): * libnautilus-extensions/nautilus-glib-extensions.h: Added nautilus_boolean_bit for use in bit fields where gboolean results in a signed bitfield. * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_list_copy), (nautilus_g_str_list_equal), (nautilus_g_str_list_copy): Added functions for dealing with a list of C strings. Also got rid of const GList *. For GList we don't use const because the functions in <glib.h> don't. (nautilus_g_ptr_array_new_from_list), (nautilus_g_ptr_array_sort), (nautilus_g_ptr_array_search): Renamed the new functions and types to more closely match the standard. For example, the types must have a Nautilus prefix. * src/ntl-window.h: * libnautilus-extensions/nautilus-icon-private.h: * libnautilus-extensions/nautilus-icon-container.c: (icon_set_selected), (rubberband_select): Switched to use the nautilus_boolean_bit type. * components/html/glibwww-callbacks.c: Moved <config.h> include down to fix some warnings.
Diffstat (limited to 'libnautilus-extensions/nautilus-directory-metafile.h')
-rw-r--r--libnautilus-extensions/nautilus-directory-metafile.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/libnautilus-extensions/nautilus-directory-metafile.h b/libnautilus-extensions/nautilus-directory-metafile.h
new file mode 100644
index 000000000..4ee98f14e
--- /dev/null
+++ b/libnautilus-extensions/nautilus-directory-metafile.h
@@ -0,0 +1,49 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ nautilus-directory-metafile.h: Nautilus directory model.
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ 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.
+
+ Author: Darin Adler <darin@eazel.com>
+*/
+
+#include "nautilus-directory.h"
+#include <tree.h>
+
+char * nautilus_directory_get_file_metadata (NautilusDirectory *directory,
+ const char *file_name,
+ const char *key,
+ const char *default_metadata);
+GList * nautilus_directory_get_file_metadata_list (NautilusDirectory *directory,
+ const char *file_name,
+ const char *list_key,
+ const char *list_subkey);
+gboolean nautilus_directory_set_file_metadata (NautilusDirectory *directory,
+ const char *file_name,
+ const char *key,
+ const char *default_metadata,
+ const char *metadata);
+gboolean nautilus_directory_set_file_metadata_list (NautilusDirectory *directory,
+ const char *file_name,
+ const char *list_key,
+ const char *list_subkey,
+ GList *list);
+xmlNode *nautilus_directory_get_file_metadata_node (NautilusDirectory *directory,
+ const char *file_name,
+ gboolean create);
+void nautilus_directory_metafile_destroy (NautilusDirectory *directory);