#include "gmock-qofbook.h"

struct _QofMockBookClass
{
    QofInstanceClass parent_class;
};
typedef struct _QofMockBookClass QofMockBookClass;

G_DEFINE_TYPE(QofMockBook, qof_mock_book, QOF_TYPE_INSTANCE);

static void
qof_mock_book_init (QofMockBook *inst)
{
    // function is unused, initialization is done in the QofMockBook's constructor
}

static void
qof_mock_book_class_init(QofMockBookClass *klass)
{
    // function is unused, class functions are defined in C++ code
}

gboolean
qof_book_use_split_action_for_num_field (const QofBook *book)
{
    g_return_val_if_fail(QOF_IS_MOCK_BOOK(book), FALSE);
    return ((QofMockBook*)book)->useSplitActionForNumField();
}

