1 /* 2 Copyright (C) 2004-2006 MySQL AB 3 All rights reserved. Use is subject to license terms. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License, version 2.0, 7 as published by the Free Software Foundation. 8 9 This program is also distributed with certain software (including 10 but not limited to OpenSSL) that is licensed under separate terms, 11 as designated in a particular file or component or in included license 12 documentation. The authors of MySQL hereby grant you an additional 13 permission to link the program and your derivative works with the 14 separately licensed software that they have included with MySQL. 15 16 This program is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU General Public License, version 2.0, for more details. 20 21 You should have received a copy of the GNU General Public License 22 along with this program; if not, write to the Free Software 23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 */ 25 26 #ifndef MGMAPI_CONFIGURATION_HPP 27 #define MGMAPI_CONFIGURATION_HPP 28 29 #include <ConfigValues.hpp> 30 31 struct ndb_mgm_configuration { 32 ConfigValues m_config; 33 }; 34 35 struct ndb_mgm_configuration_iterator { 36 Uint32 m_sectionNo; 37 Uint32 m_typeOfSection; 38 ConfigValues::ConstIterator m_config; 39 40 ndb_mgm_configuration_iterator(const ndb_mgm_configuration &, unsigned type); 41 ~ndb_mgm_configuration_iterator(); 42 43 int first(); 44 int next(); 45 int valid() const; 46 int find(int param, unsigned value); 47 48 int get(int param, unsigned * value) const ; 49 int get(int param, Uint64 * value) const ; 50 int get(int param, const char ** value) const ; 51 52 // 53 void reset(); 54 int enter(); 55 }; 56 57 #endif 58