summaryrefslogtreecommitdiff
path: root/doc/ja
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-09-27 20:49:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2022-09-27 20:49:12 +0200
commit26e6fdc64561d7575b3c937a9bb4f39cc8c0954f (patch)
tree7792b2f0824875006f1de4998056aa047e8eb008 /doc/ja
parente7b6e8c60f0001c4b228bda570ec0d1b7dc3a739 (diff)
downloadweechat-26e6fdc64561d7575b3c937a9bb4f39cc8c0954f.zip
api: add function file_compress
Diffstat (limited to 'doc/ja')
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 755974b45..bd9b6ea63 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -4258,6 +4258,48 @@ if (weechat_file_copy ("/tmp/test.txt", "/path/to/test2.txt"))
[NOTE]
スクリプト API ではこの関数を利用できません。
+// TRANSLATION MISSING
+==== file_compress
+
+_WeeChat ≥ 3.7._
+
+Compress a file with gzip or zstd.
+
+プロトタイプ:
+
+[source,c]
+----
+int weechat_file_compress (const char *from, const char *to,
+ const char *compressor, int compression_level);
+----
+
+引数:
+
+* _from_: source file
+* _to_: destination file
+* _compressor_: the compressor to use, one of:
+** _gzip_: gzip compression
+** _zstd_: zstandard compression
+* _compression_level_: compression level, between 1 (fast, low compression) to
+ 100 (slow, best compression)
+
+戻り値:
+
+* 1 if OK, 0 if error
+
+C 言語での使用例:
+
+[source,c]
+----
+if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
+{
+ /* OK */
+}
+----
+
+[NOTE]
+スクリプト API ではこの関数を利用できません。
+
[[util]]
=== ユーティリティ