GMonitor cache

## GMonitor cache GMonitor cache — File monitor cache implementation. |

## Synopsis

    GFileMonitor *      fm_monitor_directory                (GFile *gf,
                                                             GError **err);
    GFileMonitor *      fm_monitor_lookup_dummy_monitor     (GFile *gf);
    GFileMonitor *      fm_monitor_lookup_monitor           (GFile *gf);

## Description

`include`: libfm/fm.h

This implementation can help to exclude creation of duplicate monitors for the same file and also do fast search for created file monitors.

## Details

### fm_monitor_directory ()

    GFileMonitor *      fm_monitor_directory                (GFile *gf,
                                                             GError **err);

Finds a monitor for directory `gf` in cache or creates new if there is no such monitor created yet.

`gf` : | file to monitor
`err` : | location to save error. [allow-none][out]
Returns : | a monitor object. [transfer full]

Since 0.1.0

### fm_monitor_lookup_dummy_monitor ()

    GFileMonitor *      fm_monitor_lookup_dummy_monitor     (GFile *gf);

Finds a monitor for not-native file `gf` in cache.

`gf` : | file to monitor
Returns : | a monitor object or `NULL`. [transfer full]

Since 0.1.0

### fm_monitor_lookup_monitor ()

    GFileMonitor *      fm_monitor_lookup_monitor           (GFile *gf);

Finds a monitor for directory `gf` in cache.

`gf` : | file to monitor
Returns : | a monitor object or `NULL`. [transfer full]

Since 0.1.0