* A match means it's our responsibility to open the file.
*
* Returns:
- * 1: Yes, we can read the file
- * 0: No, we cannot read the file
+ * true: Yes, we can read the file
+ * false: No, we cannot read the file
*/
-int
+bool
mutt_comp_can_read (const char *path)
{
if (!path)
- return 0;
+ return false;
if (find_hook (MUTT_OPENHOOK, path))
- return 1;
+ return true;
else
- return 0;
+ return false;
}
/**
#define _MUTT_COMPRESS_H 1
bool mutt_comp_can_append (CONTEXT *ctx);
-int mutt_comp_can_read (const char *path);
+bool mutt_comp_can_read (const char *path);
int mutt_comp_valid_command (const char *cmd);
extern struct mx_ops mx_comp_ops;