Lines
58.33 %
Functions
71.43 %
Branches
50 %
/* ipuz-cryptic.c
*
* Copyright 2022 Jonathan Blandford <jrb@gnome.org>
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library 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
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* SPDX-License-Identifier: (LGPL-2.1-or-later OR MIT)
*/
#include "libipuz-config.h"
#include <libipuz/ipuz-cryptic.h>
static void ipuz_cryptic_init (IPuzCryptic *self);
static void ipuz_cryptic_class_init (IPuzCrypticClass *klass);
static const gchar *const *ipuz_cryptic_get_kind_str (IPuzPuzzle *puzzle);
G_DEFINE_TYPE (IPuzCryptic, ipuz_cryptic, IPUZ_TYPE_CROSSWORD);
static void
ipuz_cryptic_init (IPuzCryptic *self)
{
/* Pass */
}
ipuz_cryptic_class_init (IPuzCrypticClass *klass)
IPuzPuzzleClass *puzzle_class = IPUZ_PUZZLE_CLASS (klass);
puzzle_class->get_kind_str = ipuz_cryptic_get_kind_str;
static const gchar *const *
ipuz_cryptic_get_kind_str (IPuzPuzzle *puzzle)
static const char *kind_str[] =
"http://ipuz.org/crossword#1",
"http://ipuz.org/crossword/crypticcrossword#1",
NULL
};
return kind_str;
/**
* Public Methods
IPuzPuzzle *
ipuz_cryptic_new (void)
IPuzPuzzle *cryptic;
cryptic = g_object_new (IPUZ_TYPE_CRYPTIC,
NULL);
return cryptic;