summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJosh Coalson <jcoalson@users.sourceforce.net>2002-08-30 05:41:31 +0000
committerJosh Coalson <jcoalson@users.sourceforce.net>2002-08-30 05:41:31 +0000
commit3ac6693c89a4b6c9a623aa53920b359c8254350c (patch)
treea0813f914000bfe837b2d1bde790e2d4413b37bb /include
parent9b14518752d803a8744caa9a823a706f52a43194 (diff)
downloadflac-3ac6693c89a4b6c9a623aa53920b359c8254350c.tar.gz
add read_only argument to simple iterator initializer
Diffstat (limited to 'include')
-rw-r--r--include/FLAC++/metadata.h2
-rw-r--r--include/FLAC/metadata.h13
2 files changed, 10 insertions, 5 deletions
diff --git a/include/FLAC++/metadata.h b/include/FLAC++/metadata.h
index 6b34e2d7..c55d8c48 100644
--- a/include/FLAC++/metadata.h
+++ b/include/FLAC++/metadata.h
@@ -641,7 +641,7 @@ namespace FLAC {
SimpleIterator();
virtual ~SimpleIterator();
- bool init(const char *filename, bool preserve_file_stats = false);
+ bool init(const char *filename, bool read_only, bool preserve_file_stats);
bool is_valid() const;
Status status();
diff --git a/include/FLAC/metadata.h b/include/FLAC/metadata.h
index 2c9fe843..fcf1482b 100644
--- a/include/FLAC/metadata.h
+++ b/include/FLAC/metadata.h
@@ -276,12 +276,17 @@ void FLAC__metadata_simple_iterator_delete(FLAC__Metadata_SimpleIterator *iterat
FLAC__Metadata_SimpleIteratorStatus FLAC__metadata_simple_iterator_status(FLAC__Metadata_SimpleIterator *iterator);
/** Initialize the iterator to point to the first metadata block in the
- * given FLAC file. If \a preserve_file_stats is \c true, the owner and
- * modification time will be preserved even if the FLAC file is written.
+ * given FLAC file.
*
* \param iterator A pointer to an existing iterator.
* \param filename The path to the FLAC file.
- * \param preserve_file_stats See above.
+ * \param read_only If \c true, the FLAC file will be opened
+ * in read-only mode; if \c false, the FLAC
+ * file will be opened for edit even if no
+ * edits are performed.
+ * \param preserve_file_stats If \c true, the owner and modification
+ * time will be preserved even if the FLAC
+ * file is written to.
* \assert
* \code iterator != NULL \endcode
* \code filename != NULL \endcode
@@ -289,7 +294,7 @@ FLAC__Metadata_SimpleIteratorStatus FLAC__metadata_simple_iterator_status(FLAC__
* \c false if a memory allocation error occurs, the file can't be
* opened, or another error occurs, else \c true.
*/
-FLAC__bool FLAC__metadata_simple_iterator_init(FLAC__Metadata_SimpleIterator *iterator, const char *filename, FLAC__bool preserve_file_stats);
+FLAC__bool FLAC__metadata_simple_iterator_init(FLAC__Metadata_SimpleIterator *iterator, const char *filename, FLAC__bool read_only, FLAC__bool preserve_file_stats);
/** Returns \c true if the FLAC file is writable. If \c false, calls to
* FLAC__metadata_simple_iterator_set_block() and