31 lines
629 B
C
31 lines
629 B
C
#pragma once
|
|
|
|
#include <gio/gio.h>
|
|
#include <mooutils/mooarray.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
MOO_DECLARE_OBJECT_ARRAY_FULL (MooFileArray, moo_file_array, GFile)
|
|
|
|
G_INLINE_FUNC void
|
|
moo_file_free (GFile *file)
|
|
{
|
|
if (file)
|
|
g_object_unref (file);
|
|
}
|
|
|
|
gboolean moo_file_fnmatch (GFile* file,
|
|
const char* glob);
|
|
char *moo_file_get_display_name (GFile* file);
|
|
|
|
G_END_DECLS
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <moocpp/strutils.h>
|
|
#include <moocpp/gobjptrtypes-gio.h>
|
|
|
|
moo::gstr moo_file_get_display_name (const moo::gobjref<GFile>& file);
|
|
|
|
#endif // __cplusplus
|