Gjsify LogoGjsify Logo

Index

Functions

  • checkMimeTypeSupported(mimeType: string): boolean
  • Checks whether a mime type is supported by autoar. This function does no blocking IO.

    Parameters

    • mimeType: string

      a string representing the mime type

    Returns boolean

  • Gets description of the filter from libarchive. This function creates and destroys an archive object in order to get the description string.

    Parameters

    Returns string

  • Gets the filter code used by libarchive. You can use the return value as the argument for archive_write_add_filter().

    Parameters

    Returns number

  • filterLast(): number
  • Gets the MIME type for an archive format compressed by filter. This function always succeed, but it is not guaranteed that the returned MIME type exists and can be recognized by applications. Some combination of format and filter seldom exists in application, so this function can only generate the string based on some non-standard rules.

    Parameters

    Returns string

  • Gets description of the format from libarchive. This function creates and destroys an archive object in order to get the description string.

    Parameters

    Returns string

  • Gets the format code used by libarchive. You can use the return value as the argument for archive_read_support_format_by_code() and archive_write_set_format(). However, some format cannot be set using these two functions because of problems inside libarchive. Use autoar_format_get_libarchive_read() and autoar_format_get_libarchive_write() to get the function pointer is the more reliable way to set format on the archive object.

    Parameters

    Returns number

  • formatLast(): number
  • queryMimeTypeSupported(file: Gio.File): boolean
  • This function will query the file's mime type and then call autoar_check_mime_type_supported(), so it does blocking IO.

    Parameters

    • file: Gio.File

      a #GFile to check if its mime type is supported

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method