2
* unity-webapps-url-index.c
3
* Copyright (C) Canonical LTD 2011
5
* Author: Robert Carr <racarr@canonical.com>
7
unity-webapps is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU Lesser General Public License as published
9
* by the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
12
* unity-webapps is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
* See the GNU Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
24
#include "unity-webapps-url-index.h"
26
#include "../unity-webapps-debug.h"
28
struct _UnityWebappsUrlIndexPrivate {
33
G_DEFINE_ABSTRACT_TYPE(UnityWebappsUrlIndex, unity_webapps_url_index, G_TYPE_OBJECT)
35
#define UNITY_WEBAPPS_URL_INDEX_GET_PRIVATE(object) (G_TYPE_INSTANCE_GET_PRIVATE ((object), UNITY_WEBAPPS_TYPE_URL_INDEX, UnityWebappsUrlIndexPrivate))
38
unity_webapps_url_index_class_init (UnityWebappsUrlIndexClass *klass)
40
GObjectClass *object_class = G_OBJECT_CLASS (klass);
42
g_type_class_add_private (object_class, sizeof(UnityWebappsUrlIndexPrivate));
46
unity_webapps_url_index_init (UnityWebappsUrlIndex *index)
48
index->priv = UNITY_WEBAPPS_URL_INDEX_GET_PRIVATE (index);
52
unity_webapps_url_index_lookup_url (UnityWebappsUrlIndex *index,
55
return UNITY_WEBAPPS_URL_INDEX_GET_CLASS (index)->lookup_url (index, url);