Sha256: 7762284046fe1b5ef8af5fec56280377adec698b325c5a20d26e6b6041f47f05

Contents?: true

Size: 1.82 KB

Versions: 4

Compression:

Stored size: 1.82 KB

Contents

/* Lasem
 *
 * Copyright © 2010 Emmanuel Pacaud
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General
 * Public License along with this library; if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA 02110-1335, USA.
 *
 * Author:
 * 	Emmanuel Pacaud <emmanuel@gnome.org>
 */

#include <lsmdomnodelist.h>
#include <lsmdomnode.h>

/**
 * SECTION:lsmdomnodelist
 * @short_description: Base class for DOM node lists
 */

/* LsmDomNodeList implementation */

/**
 * lsm_dom_node_list_get_item:
 * @list: a #LsmDomNodeList
 * @index: id of the item to retrieve
 *
 * Returns: (transfer none): the node corresponding to index, NULL on error.
 */

LsmDomNode *
lsm_dom_node_list_get_item (LsmDomNodeList *list, unsigned int index)
{
	g_return_val_if_fail (LSM_IS_DOM_NODE_LIST (list), NULL);

	return LSM_DOM_NODE_LIST_GET_CLASS (list)->get_item (list, index);
}

unsigned int
lsm_dom_node_list_get_length (LsmDomNodeList *list)
{
	g_return_val_if_fail (LSM_IS_DOM_NODE_LIST (list), 0);

	return LSM_DOM_NODE_LIST_GET_CLASS (list)->get_length (list);
}

static void
lsm_dom_node_list_init (LsmDomNodeList *list)
{
}

/* LsmDomNodeList class */

static void
lsm_dom_node_list_class_init (LsmDomNodeListClass *klass)
{
}

G_DEFINE_ABSTRACT_TYPE (LsmDomNodeList, lsm_dom_node_list, G_TYPE_OBJECT)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/lasem/src/lsmdomnodelist.c
mathematical-1.6.18 ext/mathematical/lasem/src/lsmdomnodelist.c
mathematical-1.6.14 ext/mathematical/lasem/src/lsmdomnodelist.c
mathematical-1.6.13 ext/mathematical/lasem/src/lsmdomnodelist.c