1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  *  Copyright © 2017 Gabriel Ivascu <gabrielivascu@gnome.org>
4  *
5  *  This file is part of Epiphany.
6  *
7  *  Epiphany is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  Epiphany is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with Epiphany.  If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #pragma once
22 
23 #include <gio/gio.h>
24 #include <glib-object.h>
25 
26 G_BEGIN_DECLS
27 
28 #define EPHY_TYPE_GSB_SERVICE (ephy_gsb_service_get_type ())
29 
30 G_DECLARE_FINAL_TYPE (EphyGSBService, ephy_gsb_service, EPHY, GSB_SERVICE, GObject)
31 
32 EphyGSBService *ephy_gsb_service_new                (const char *api_key,
33                                                      const char *db_path);
34 void            ephy_gsb_service_verify_url         (EphyGSBService      *self,
35                                                      const char          *url,
36                                                      GAsyncReadyCallback  callback,
37                                                      gpointer             user_data);
38 GList          *ephy_gsb_service_verify_url_finish  (EphyGSBService  *self,
39                                                      GAsyncResult    *result);
40 
41 G_END_DECLS
42