mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
libzds: add codepage conversion
Add codepage conversion capabilities to libzds. Whenever a dataset is read and an appropriate iconv handle is set for the dataset the conversion is automatically performed. Signed-off-by: Stefan Haberland <sth@linux.ibm.com> Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
529ad4000e
commit
cdf716a7a9
@@ -115,7 +115,7 @@
|
||||
#include "lib/util_base.h"
|
||||
#include "lib/util_list.h"
|
||||
#include "vtoc.h"
|
||||
|
||||
#include <iconv.h>
|
||||
|
||||
|
||||
/**
|
||||
@@ -834,6 +834,11 @@ void lzds_dshandle_get_errorlog(struct dshandle *dsh, struct errorlog **log);
|
||||
int lzds_dshandle_set_seekbuffer(struct dshandle *dsh,
|
||||
unsigned long long seek_buffer_size);
|
||||
|
||||
/**
|
||||
* @brief Set iconv handle for codepage conversion.
|
||||
*/
|
||||
int lzds_dshandle_set_iconv(struct dshandle *dsh, iconv_t *iconv);
|
||||
|
||||
/**
|
||||
* @brief Get the size of the data set in number of tracks (sum of all extents).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user