diff options
author | Tobias Thierer <tobiast@google.com> | 2018-07-26 10:36:07 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-07-26 10:36:07 +0000 |
commit | 28fb130cbbd7c01ef706d5b6a5a9877b290f275c (patch) | |
tree | 7f7f7b30112c132acc28ac83653a239ca3322d71 /libsparse/include/sparse | |
parent | 9ff0669ac1ebfe0d17cfebc0b95062991c880421 (diff) | |
parent | fca4a9c27950a4a4281de0f413280cff9f4da653 (diff) | |
download | system_core-28fb130cbbd7c01ef706d5b6a5a9877b290f275c.tar.gz system_core-28fb130cbbd7c01ef706d5b6a5a9877b290f275c.tar.bz2 system_core-28fb130cbbd7c01ef706d5b6a5a9877b290f275c.zip |
Merge "Revert "libsparse: Add sparse typed callback""
Diffstat (limited to 'libsparse/include/sparse')
-rw-r--r-- | libsparse/include/sparse/sparse.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/libsparse/include/sparse/sparse.h b/libsparse/include/sparse/sparse.h index 586578633..3d5fb0c53 100644 --- a/libsparse/include/sparse/sparse.h +++ b/libsparse/include/sparse/sparse.h @@ -210,37 +210,6 @@ int sparse_file_callback(struct sparse_file *s, bool sparse, bool crc, int (*write)(void *priv, const void *data, size_t len), void *priv); /** - * sparse_file_callback_typed - call a callback for blocks based on type - * - * @s - sparse file cookie - * @sparse - write in the Android sparse file format - * @data_write - function to call for data blocks. must not be null - * @fd_write - function to call for fd blocks - * @fill_write - function to call for fill blocks - * @skip_write - function to call for skip blocks - * @priv - value that will be passed as the first argument to each write - * - * Writes a sparse file by calling callback functions. If sparse is true, the - * file will be written in the Android sparse file format, and fill and skip blocks - * along with metadata will be written with data_write. If sparse is false, the file - * will be expanded into normal format and fill and skip blocks will be written with - * the given callbacks. - * If a callback function is provided, the library will not unroll data into a buffer, - * and will instead pass it directly to the caller for custom implementation. If a - * callback is not provided, that type of block will be converted into a void* and - * written with data_write. If no callbacks other than data are provided, the behavior - * is the same as sparse_file_callback(). The callback should return negative on error, - * 0 on success. - * - * Returns 0 on success, negative errno on error. - */ -int sparse_file_callback_typed(struct sparse_file* s, bool sparse, - int (*data_write)(void* priv, const void* data, size_t len), - int (*fd_write)(void* priv, int fd, size_t len), - int (*fill_write)(void* priv, uint32_t fill_val, size_t len), - int (*skip_write)(void* priv, int64_t len), void* priv); - -/** * sparse_file_foreach_chunk - call a callback for data blocks in sparse file * * @s - sparse file cookie |