GCC Code Coverage Report


Directory: ./
File: panels/common/cc-hostname.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 4 0.0%
Branches: 0 7 0.0%

Line Branch Exec Source
1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* cc-hostname.h
3 *
4 * Copyright 2023 Red Hat Inc
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * Author(s):
20 * Felipe Borges <felipeborges@gnome.org>
21 *
22 *
23 * SPDX-License-Identifier: GPL-3.0-or-later
24 */
25
26 #pragma once
27
28 #include <glib-object.h>
29 #include <gio/gio.h>
30
31 G_BEGIN_DECLS
32
33 #define CC_TYPE_HOSTNAME (cc_hostname_get_type())
34 G_DECLARE_FINAL_TYPE (CcHostname, cc_hostname, CC, HOSTNAME, GObject)
35
36 CcHostname *cc_hostname_get_default (void);
37
38 gchar *cc_hostname_get_display_hostname (CcHostname *self);
39
40 void cc_hostname_set_hostname (CcHostname *self, const gchar *hostname);
41
42 gchar *cc_hostname_get_property (CcHostname *self, const gchar *property);
43
44 gchar *cc_hostname_get_chassis_type (CcHostname *self);
45
46 gboolean cc_hostname_is_vm_chassis (CcHostname *self);
47
48 G_END_DECLS
49