Sha256: e2289283bb64a36fac5153c028a932854e133bdb4cfca03b8ef9d42b3cb9115f

Contents?: true

Size: 1.49 KB

Versions: 1

Compression:

Stored size: 1.49 KB

Contents

/**
 * Copyright (C) 2004, 2005 Gregoire Lejeune <gregoire.lejeune@free.fr>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 */

/* Please see the LICENSE file for copyright and distribution information */

#ifndef __RUBY_XPATH_H__
#define __RUBY_XPATH_H__

#include <ruby.h>
#include <rubyio.h>

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>

#include <libxml/tree.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>

#include "rb_utils.h"

#define RUBY_XPATH_VERSION  "0.4.0"
#define RUBY_XPATH_VERNUM   040

#define RUBY_XPATH_XMLSRC_TYPE_NULL    0
#define RUBY_XPATH_XMLSRC_TYPE_STR     1
#define RUBY_XPATH_XMLSRC_TYPE_FILE    2

typedef struct RbTxpath {
  int   iXmlType;
  VALUE xXmlData;
  VALUE hxNS;

  VALUE rbResult;
  int iCurrentNode;
  int iNbNodes;
} RbTxpath;

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-xpath-0.4.0 ext/xpath/xpath.h