/*
 * Copyright (C) 2008 Search Solution Corporation. All rights reserved by Search Solution.
 *
 *   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; version 2 of the License.
 *
 *  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
 *
 */

/*
 * recovery_cl.c - 
 */

#ident "$Id$"

#include "config.h"

#include "recovery_cl.h"
#include "error_manager.h"
#include "elo_recovery.h"

/*
 * THE ARRAY OF CLIENT RECOVERY FUNCTIONS
 */
struct rvcl_fun RVCL_fun[] = {
  {RVMM_INTERFACE,
   esm_undo,
   esm_redo,
   esm_dump,
   esm_dump},
};

/*
 * rv_rcvcl_index_string - RETURN STRING ASSOCIATED WITH THE CLIENT LOG_RVINDEX
 *
 * return:
 *
 *   rcvindex(in): Numeric recovery index
 *
 * NOTE:Return the string index associated with the given recovery
 *              index.
 */
const char *
rv_rcvcl_index_string (LOG_RCVCLIENT_INDEX rcvindex)
{
  switch (rcvindex)
    {
    case RVMM_INTERFACE:
      return "RVMM_INTERFACE";
    default:
      break;
    }

  return "UNKNOWN";

}
