search engine: Pass file infos along for hits

This commit is contained in:
Matthias Clasen
2015-06-18 14:31:02 -04:00
parent 4b8df8c546
commit abe4829e36
5 changed files with 88 additions and 40 deletions

View File

@ -23,6 +23,7 @@
#define __GTK_SEARCH_ENGINE_H__
#include "gtkquery.h"
#include <gio/gio.h>
G_BEGIN_DECLS
@ -37,6 +38,15 @@ typedef struct _GtkSearchEngine GtkSearchEngine;
typedef struct _GtkSearchEngineClass GtkSearchEngineClass;
typedef struct _GtkSearchEnginePrivate GtkSearchEnginePrivate;
typedef struct _GtkSearchHit GtkSearchHit;
struct _GtkSearchHit
{
gint ref_count;
gchar *uri;
GFileInfo *info; /* may be NULL */
};
struct _GtkSearchEngine
{
GObject parent;
@ -81,6 +91,9 @@ void _gtk_search_engine_finished (GtkSearchEngine *engine);
void _gtk_search_engine_error (GtkSearchEngine *engine,
const gchar *error_message);
void _gtk_search_hit_free (GtkSearchHit *hit);
GtkSearchHit *_gtk_search_hit_dup (GtkSearchHit *hit);
G_END_DECLS
#endif /* __GTK_SEARCH_ENGINE_H__ */