Sha256: f2d160a0a90f5d2392a7326b3357ec55b7b9ae4aa2ccb07e02a5d6d5232b6ed6
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* Copyright (C) 2016-2021 Sutou Kouhei <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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "rb-grn.h" /* * Document-class: Groonga::RequestTimerID * * This class represents request timer ID. It's used with request timer. */ VALUE rb_cGrnRequestTimerID; static rb_data_type_t data_type = { "Groonga::RequestTimeID", { NULL, NULL, NULL, }, NULL, NULL, 0 }; void * rb_grn_request_timer_id_from_ruby_object (VALUE rb_id) { if (NIL_P(rb_id)) { return NULL; } else { void *id; TypedData_Get_Struct(rb_id, void *, &data_type, id); return id; } } VALUE rb_grn_request_timer_id_to_ruby_object (void *id) { return TypedData_Wrap_Struct(rb_cGrnRequestTimerID, &data_type, id); } void rb_grn_init_request_timer_id (VALUE mGrn) { rb_cGrnRequestTimerID = rb_define_class_under(mGrn, "RequestTimerID", rb_cObject); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rroonga-12.0.0 | ext/groonga/rb-grn-request-timer-id.c |
rroonga-11.0.6 | ext/groonga/rb-grn-request-timer-id.c |
rroonga-11.0.0 | ext/groonga/rb-grn-request-timer-id.c |