eds.h 744 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#ifndef __DESKBAR_EVOLUTION_H__
#define __DESKBAR_EVOLUTION_H__

#include <glib/gtypes.h>
#include <gdk-pixbuf/gdk-pixbuf.h>

G_BEGIN_DECLS

typedef struct _Hit {
  gchar *text;
  gchar *email;
  GdkPixbuf *pixbuf;
  gchar *uri;
} Hit;

void free_hit (Hit *hit, gpointer unused);

typedef void (* SearchAsyncHandler) (GList *hits, gpointer user_data);

void init (void);

void set_pixbuf_size (int size);

void search_async (const char         *query,
                   int                 max_results,
                   SearchAsyncHandler  handler,
                   gpointer            user_data);

GList * search_sync (const char *query,
                     int         max_results);

G_END_DECLS

#endif /* __DESKBAR_EVOLUTION_H__ */