GCC Code Coverage Report


Directory: ./
File: panels/printers/pp-host.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 2 0.0%
Branches: 0 2 0.0%

Line Branch Exec Source
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
2 *
3 * Copyright 2012 Red Hat, Inc,
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author: Marek Kasik <mkasik@redhat.com>
19 */
20
21 #pragma once
22
23 #include <glib-object.h>
24 #include <gio/gio.h>
25 #include "pp-utils.h"
26
27 G_BEGIN_DECLS
28
29 #define PP_TYPE_HOST (pp_host_get_type ())
30 G_DECLARE_DERIVABLE_TYPE (PpHost, pp_host, PP, HOST, GObject)
31
32 struct _PpHostClass
33 {
34 GObjectClass parent_class;
35 };
36
37 #define PP_HOST_UNSET_PORT -1
38 #define PP_HOST_DEFAULT_IPP_PORT 631
39 #define PP_HOST_DEFAULT_JETDIRECT_PORT 9100
40 #define PP_HOST_DEFAULT_LPD_PORT 515
41
42 PpHost *pp_host_new (const gchar *hostname);
43
44 void pp_host_get_snmp_devices_async (PpHost *host,
45 GCancellable *cancellable,
46 GAsyncReadyCallback callback,
47 gpointer user_data);
48
49 GPtrArray *pp_host_get_snmp_devices_finish (PpHost *host,
50 GAsyncResult *result,
51 GError **error);
52
53 void pp_host_get_remote_cups_devices_async (PpHost *host,
54 GCancellable *cancellable,
55 GAsyncReadyCallback callback,
56 gpointer user_data);
57
58 GPtrArray *pp_host_get_remote_cups_devices_finish (PpHost *host,
59 GAsyncResult *result,
60 GError **error);
61
62 void pp_host_get_jetdirect_devices_async (PpHost *host,
63 GCancellable *cancellable,
64 GAsyncReadyCallback callback,
65 gpointer user_data);
66
67 GPtrArray *pp_host_get_jetdirect_devices_finish (PpHost *host,
68 GAsyncResult *result,
69 GError **error);
70
71 void pp_host_get_lpd_devices_async (PpHost *host,
72 GCancellable *cancellable,
73 GAsyncReadyCallback callback,
74 gpointer user_data);
75
76 GPtrArray *pp_host_get_lpd_devices_finish (PpHost *host,
77 GAsyncResult *result,
78 GError **error);
79
80 G_END_DECLS
81