Function: tramp-get-inline-compress

tramp-get-inline-compress is a byte-compiled function defined in tramp-sh.el.gz.

Signature

(tramp-get-inline-compress VEC PROP SIZE)

Documentation

Return the compress command related to PROP.

PROP is either inline-compress or inline-decompress. SIZE is the length of the file to be compressed.

If no corresponding command is found, nil is returned.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-sh.el.gz
;; Some predefined connection properties.
(defun tramp-get-inline-compress (vec prop size)
  "Return the compress command related to PROP.
PROP is either `inline-compress' or `inline-decompress'.
SIZE is the length of the file to be compressed.

If no corresponding command is found, nil is returned."
  (when (and (integerp tramp-inline-compress-start-size)
	     (> size tramp-inline-compress-start-size))
    (with-tramp-connection-property (tramp-get-process vec) prop
      (tramp-find-inline-compress vec)
      (tramp-get-connection-property (tramp-get-process vec) prop))))