1 /*
2  * Copyright © 2018 Canonical Ltd.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #pragma once
19 
20 #define GNOME_DESKTOP_USE_UNSTABLE_API
21 #include <libgnome-desktop/gnome-xkb-info.h>
22 
23 #include "cc-input-source.h"
24 
25 G_BEGIN_DECLS
26 
27 #define CC_TYPE_INPUT_SOURCE_XKB (cc_input_source_xkb_get_type ())
28 G_DECLARE_FINAL_TYPE (CcInputSourceXkb, cc_input_source_xkb, CC, INPUT_SOURCE_XKB, CcInputSource)
29 
30 CcInputSourceXkb *cc_input_source_xkb_new         (GnomeXkbInfo     *xkb_info,
31                                                    const gchar      *layout,
32                                                    const gchar      *variant);
33 
34 CcInputSourceXkb *cc_input_source_xkb_new_from_id (GnomeXkbInfo     *xkb_info,
35                                                    const gchar      *id);
36 
37 gchar            *cc_input_source_xkb_get_id      (CcInputSourceXkb *source);
38 
39 G_END_DECLS
40