diff options
| author | Miguel Ángel Arruga Vivas <rosen644835@gmail.com> | 2019-05-05 20:02:26 +0200 |
|---|---|---|
| committer | Bruno Haible <bruno@clisp.org> | 2020-07-26 18:36:26 +0200 |
| commit | 16cf82eb5c3d2b4b0b1b03464063fcfa2e995cfe (patch) | |
| tree | cd66c0095c2ee4832e11e643038b039e58676798 /gettext-tools/doc | |
| parent | ceb9bd73aab65ff335cf85bf41e210f6c6ea1c8e (diff) | |
| download | gettext-16cf82eb5c3d2b4b0b1b03464063fcfa2e995cfe.tar.gz | |
doc: Add po_file_write documentation
* gettext-tools/doc/gettext.texi (libgettextpo): Add po_file_write
documentation.
* gettext-tools/doc/gettext-po.in.h (po_file_write): Update comment.
Diffstat (limited to 'gettext-tools/doc')
| -rw-r--r-- | gettext-tools/doc/gettext.texi | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gettext-tools/doc/gettext.texi b/gettext-tools/doc/gettext.texi index ccf21d88e..c7660b4e0 100644 --- a/gettext-tools/doc/gettext.texi +++ b/gettext-tools/doc/gettext.texi @@ -5325,7 +5325,8 @@ is not sufficient, a set of C functions is provided in a library, to make it possible to process PO files in your own programs. When you use this library, you don't need to write routines to parse the PO file; instead, you retrieve a pointer in memory to each of messages contained in the PO file. Functions -for writing PO files are not provided at this time. +for writing those memory structures to a file after working with them are +provided too. The functions are declared in the header file @samp{<gettext-po.h>}, and are defined in a library called @samp{libgettextpo}. @@ -5414,6 +5415,18 @@ defined as @code{po_file_read} in C code after the inclusion of @samp{<gettext-po.h>}. @end deftypefun +@deftypefun po_file_t po_file_write (po_file_t @var{file},@ + const char *@var{filename}, struct po_xerror_handler *@var{handler}) +The @code{po_file_write} function writes the contents of the memory +structure @var{file} the @var{filename} given. The return value is +@var{file} after a successful operation. In case of error, the +functions from @var{handler} are called to signal it. + +This function is exported as @samp{po_file_write_v2} at ABI level, but +it defined as @code{po_file_write} in C code after the inclusion of +@samp{<gettext-po.h>}. +@end deftypefun + @deftypefun void po_file_free (po_file_t @var{file}) The @code{po_file_free} function frees a PO file's contents from memory, including all messages that are only implicitly accessible through iterators. |
