mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-29 12:14:31 -06:00
8192deff37
- don't need to create/destroy GHashTable for each feature query - plugs leak: g_hash_table_unref (features_used) not always called properly - to check 1 feature, don't need to traverse whole GHashTable
37 lines
1.7 KiB
C++
37 lines
1.7 KiB
C++
/********************************************************************\
|
|
* 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; either version 2 of *
|
|
* the License, or (at your option) any later version. *
|
|
* *
|
|
* 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, contact: *
|
|
* *
|
|
* Free Software Foundation Voice: +1-617-542-5942 *
|
|
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
|
* *
|
|
\********************************************************************/
|
|
|
|
#ifndef __QOF_BOOK__HPP__
|
|
#define __QOF_BOOK__HPP__
|
|
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
#include <string>
|
|
|
|
#include "qof.h"
|
|
|
|
using FeaturesTable = std::unordered_map<std::string,std::string>;
|
|
|
|
std::vector<std::string>
|
|
qof_book_get_unknown_features (QofBook *book, const FeaturesTable& features);
|
|
bool qof_book_test_feature (QofBook*, const char*);
|
|
|
|
#endif /* QOF_BOOK_HPP */
|