Sha256: 6bbb45990e7347d62a03d324da22974529b3c0b008ed903a999c07b4ec89d737

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

/*
  Copyright(C) <%= Time.now.year %> <%= config[:author] %> <%= config[:email] %>

  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 <groonga/plugin.h>

static grn_obj *
command_<%= config[:plugin_name] %>(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
{
  grn_ctx_output_bool(ctx, GRN_FALSE);
  return NULL;
}

grn_rc
GRN_PLUGIN_INIT(grn_ctx *ctx)
{
  return GRN_SUCCESS;
}

grn_rc
GRN_PLUGIN_REGISTER(grn_ctx *ctx)
{
  grn_expr_var vars[0];

  grn_plugin_command_create(ctx, "<%= config[:plugin_name] %>", -1, command_<%= config[:plugin_name] %>, 0, vars);

  return ctx->rc;
}

grn_rc
GRN_PLUGIN_FIN(grn_ctx *ctx)
{
  return GRN_SUCCESS;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hajimeru-0.1.2 lib/hajimeru/generator/templates/groonga_plugin/plugin_name/plugin_name.c.tt
hajimeru-0.1.1 lib/hajimeru/generator/templates/groonga_plugin/plugin_name/plugin_name.c.tt