Sha256: 96b50fd18c290ea61485520795967a7e075eb4ade53acbccf7672cc139c738b1

Contents?: true

Size: 1.27 KB

Versions: 34

Compression:

Stored size: 1.27 KB

Contents

/* -*- c-file-style: "ruby" -*- */
/*
  Copyright (C) 2010  Kouhei Sutou <kou@clear-code.com>

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License version 2.1 as published by the Free Software Foundation.

  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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "rb-grn.h"

VALUE rb_cGrnViewRecord;

VALUE
rb_grn_view_record_new (VALUE view, grn_obj *id)
{
    return rb_grn_view_record_new_raw(view,
                                      rb_str_new(GRN_TEXT_VALUE(id),
                                                 GRN_TEXT_LEN(id)));
}

VALUE
rb_grn_view_record_new_raw (VALUE view, VALUE rb_id)
{
    return rb_funcall(rb_cGrnViewRecord, rb_intern("new"), 2, view, rb_id);
}

void
rb_grn_init_view_record (VALUE mGrn)
{
    rb_cGrnViewRecord = rb_const_get(mGrn, rb_intern("ViewRecord"));
}

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
rroonga-1.2.9 ext/groonga/rb-grn-view-record.c
rroonga-1.2.8 ext/groonga/rb-grn-view-record.c
rroonga-1.2.7-x86-mswin32 ext/groonga/rb-grn-view-record.c
rroonga-1.2.7-x86-mingw32 ext/groonga/rb-grn-view-record.c
rroonga-1.2.7 ext/groonga/rb-grn-view-record.c
rroonga-1.2.6 ext/groonga/rb-grn-view-record.c
rroonga-1.2.5-x86-mingw32 ext/groonga/rb-grn-view-record.c
rroonga-1.2.5 ext/groonga/rb-grn-view-record.c
rroonga-1.2.4 ext/groonga/rb-grn-view-record.c
rroonga-1.2.3 ext/groonga/rb-grn-view-record.c
rroonga-1.2.2 ext/groonga/rb-grn-view-record.c
rroonga-1.2.1 ext/groonga/rb-grn-view-record.c
rroonga-1.2.0 ext/groonga/rb-grn-view-record.c
rroonga-1.1.0-x86-mingw32 ext/groonga/rb-grn-view-record.c
rroonga-1.1.0 ext/groonga/rb-grn-view-record.c
rroonga-1.0.9 ext/groonga/rb-grn-view-record.c
rroonga-1.0.8 ext/groonga/rb-grn-view-record.c
rroonga-1.0.7 ext/groonga/rb-grn-view-record.c
rroonga-1.0.5 ext/groonga/rb-grn-view-record.c
rroonga-1.0.4 ext/groonga/rb-grn-view-record.c