00001 /* 00002 * 00003 * C++ sphinx search client library 00004 * Copyright (C) 2007 Seznam.cz, a.s. 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 * 00020 * Seznam.cz, a.s. 00021 * Radlicka 2, Praha 5, 15000, Czech Republic 00022 * http://www.seznam.cz, mailto:sphinxclient@firma.seznam.cz 00023 * 00024 * 00025 * $Id: globals.h 12 2009-01-05 15:06:03Z honkir $ 00026 * 00027 * DESCRIPTION 00028 * Global enum and types declaration 00029 * 00030 * AUTHOR 00031 * Jan Kirschner <jan.kirschner@firma.seznam.cz> 00032 * 00033 * HISTORY 00034 * 2007-01-03 (jan.kirschner) 00035 * First draft. 00036 */ 00037 00039 00040 #ifndef __SPHINX_GLOBALS_H__ 00041 #define __SPHINX_GLOBALS_H__ 00042 00043 #include <sphinxclient/globals_public.h> 00044 00045 namespace Sphinx { 00046 00047 enum Command_t { SEARCHD_COMMAND_SEARCH = 0, 00048 SEARCHD_COMMAND_EXCERPT = 1, 00049 SEARCHD_COMMAND_UPDATE = 2, 00050 SEARCHD_COMMAND_KEYWORDS = 3 }; 00051 00052 enum ExcerptCommandVersion_t { VER_COMMAND_EXCERPT = 0x100 }; 00053 00054 enum Status_t { SEARCHD_OK = 0, 00055 SEARCHD_ERROR = 1, 00056 SEARCHD_RETRY = 2, 00057 SEARCHD_WARNING = 3 }; 00058 00059 }//namespace 00060 00061 #endif 00062