File: testlib-full-shell.h

package info (click to toggle)
phog 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,268 kB
  • sloc: ansic: 14,194; xml: 2,542; sh: 78; python: 16; makefile: 10
file content (36 lines) | stat: -rw-r--r-- 1,082 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * Copyright (C) 2020 Purism SPC
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 * Author: Guido Günther <agx@sigxcpu.org>
 */

#include "testlib.h"

G_BEGIN_DECLS

typedef struct _PhogTestFullShellFixture {
  GThread                  *comp_and_shell;
  GAsyncQueue              *queue;
  PhogTestCompositorState *state;
  GTestDBus                *bus;
  char                     *log_domains;
  char                     *tmpdir;
} PhogTestFullShellFixture;


typedef struct _PhogTestFullShellFixtureCfg {
  char *display;
  char *log_domains;
} PhogTestFullShellFixtureCfg;


PhogTestFullShellFixtureCfg *phog_test_full_shell_fixture_cfg_new (const char *display, const char *log_domains);
void phog_test_full_shell_fixture_cfg_dispose (PhogTestFullShellFixtureCfg *self);
void phog_test_full_shell_setup (PhogTestFullShellFixture *fixture, gconstpointer data);
void phog_test_full_shell_teardown (PhogTestFullShellFixture *fixture, gconstpointer unused);

G_DEFINE_AUTOPTR_CLEANUP_FUNC (PhogTestFullShellFixtureCfg, phog_test_full_shell_fixture_cfg_dispose)

G_END_DECLS