File: test_load_plugin.c

package info (click to toggle)
libinputsynth 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 168 kB
  • sloc: ansic: 767; xml: 32; makefile: 14
file content (21 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * libinputsynth
 * Copyright 2019 Collabora Ltd.
 * Author: Christoph Haag <christoph.haag@collabora.com>
 * SPDX-License-Identifier: MIT
 */

#include <inputsynth.h>

int
main ()
{
  InputSynth *input = INPUT_SYNTH (input_synth_new (INPUTSYNTH_BACKEND_XDO));
  g_assert (input != NULL);
  GString *name = input_synth_get_backend_name (input);
  g_print ("Input Synth Backend: %s\n", name->str);
  g_assert (name != NULL);
  g_string_free (name, FALSE);
  return 0;
}