text: /* See LICENSE file for license and copyright information */
  
  #ifndef LIBZATHURA_ANNOTATION_FILE_H
  #define LIBZATHURA_ANNOTATION_FILE_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #include "../annotations.h"
  #include "../attachment.h"
  #include "../error.h"
  
  /**
   * Returns the file of this file annotation
   *
   * @param[in] annotation The annotation
   * @param[in] attachment The attachment
   *
   * @return ZATHURA_ERROR_OK No error occurred
   * @return ZATHURA_ERROR_INVALID_ARGUMENTS Invalid arguments have been passed
   * @return ZATHURA_ERROR_ANNOTATION_INVALID_TYPE Mismatching type of annotation passed
   * @return ZATHURA_ERROR_OUT_OF_MEMORY Out of memory
   * @return ZATHURA_ERROR_UNKNOWN An unspecified error occurred
   */
  zathura_error_t zathura_annotation_file_set_attachment(zathura_annotation_t*
      annotation, zathura_attachment_t* attachment);
  
  /**
   * Returns the file of this file annotation
   *
   * @param[in] annotation The annotation
   * @param[out] attachment The attachment
   *
   * @return ZATHURA_ERROR_OK No error occurred
   * @return ZATHURA_ERROR_INVALID_ARGUMENTS Invalid arguments have been passed
   * @return ZATHURA_ERROR_ANNOTATION_INVALID_TYPE Mismatching type of annotation passed
   * @return ZATHURA_ERROR_UNKNOWN An unspecified error occurred
   */
  zathura_error_t zathura_annotation_file_get_attachment(zathura_annotation_t*
      annotation, zathura_attachment_t** attachment);
  
  /**
   * Returns the icon name of this file annotation
   *
   * @param[in] annotation The annotation
   * @param[in] icon_name The attachment
   *
   * @return ZATHURA_ERROR_OK No error occurred
   * @return ZATHURA_ERROR_INVALID_ARGUMENTS Invalid arguments have been passed
   * @return ZATHURA_ERROR_ANNOTATION_INVALID_TYPE Mismatching type of annotation passed
   * @return ZATHURA_ERROR_OUT_OF_MEMORY Out of memory
   * @return ZATHURA_ERROR_UNKNOWN An unspecified error occurred
   */
  zathura_error_t zathura_annotation_file_set_icon_name(zathura_annotation_t*
      annotation, char* icon_name);
  
  /**
   * Returns the icon name of this file annotation
   *
   * @param[in] annotation The annotation
   * @param[out] icon_name The attachment
   *
   * @return ZATHURA_ERROR_OK No error occurred
   * @return ZATHURA_ERROR_INVALID_ARGUMENTS Invalid arguments have been passed
   * @return ZATHURA_ERROR_ANNOTATION_INVALID_TYPE Mismatching type of annotation passed
   * @return ZATHURA_ERROR_UNKNOWN An unspecified error occurred
   */
  zathura_error_t zathura_annotation_file_get_icon_name(zathura_annotation_t*
      annotation, char** icon_name);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif //ANNOTATION_FILE_H
  