Fixed AtkHyperlink prototype func and impl.
[atk.git] / atk / atkhyperlinkimpl.c
blob73847e5a986e8f27a5a19e0c45978f0b77e76081
1 /* ATK - Accessibility Toolkit
2 * Copyright 2006 Sun Microsystems Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 #include <string.h>
21 #include "atkhyperlinkimpl.h"
23 GType
24 atk_hyperlink_impl_get_type (void)
26 static GType type = 0;
28 if (!type) {
29 GTypeInfo tinfo =
31 sizeof (AtkHyperlinkImplIface),
32 (GBaseInitFunc) NULL,
33 (GBaseFinalizeFunc) NULL,
37 type = g_type_register_static (G_TYPE_INTERFACE, "AtkHyperlinkImpl", &tinfo, 0);
40 return type;
43 /**
44 * atk_hyperlink_impl_get_hyperlink:
45 * @obj: a GObject instance that implements AtkHyperlinkImplIface
47 * Gets the hyperlink associated with this object.
49 * Returns an AtkHyperlink object which points to this implementing AtkObject.
50 **/
51 AtkHyperlink *
52 atk_hyperlink_impl_get_hyperlink (AtkHyperlinkImpl *obj)
54 AtkHyperlinkImplIface *iface;
56 g_return_val_if_fail (obj != NULL, NULL);
57 g_return_val_if_fail (ATK_IS_HYPERLINK_IMPL (obj), NULL);
59 iface = ATK_HYPERLINK_IMPL_GET_IFACE (obj);
61 if (iface->get_hyperlink)
63 (iface->get_hyperlink) (obj);
65 return NULL;