GCC Code Coverage Report


Directory: ./
File: panels/printers/pp-cups.h
Date: 2024-05-04 07:58:27
Exec Total Coverage
Lines: 0 1 0.0%
Functions: 0 3 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_CUPS (pp_cups_get_type ())
30 G_DECLARE_FINAL_TYPE (PpCups, pp_cups, PP, CUPS, GObject)
31
32 typedef struct{
33 cups_dest_t *dests;
34 gint num_of_dests;
35 } PpCupsDests;
36
37 PpCups *pp_cups_new (void);
38
39 void pp_cups_get_dests_async (PpCups *cups,
40 GCancellable *cancellable,
41 GAsyncReadyCallback callback,
42 gpointer user_data);
43
44 PpCupsDests *pp_cups_get_dests_finish (PpCups *cups,
45 GAsyncResult *result,
46 GError **error);
47
48 void pp_cups_connection_test_async (PpCups *cups,
49 GCancellable *cancellable,
50 GAsyncReadyCallback callback,
51 gpointer user_data);
52
53 gboolean pp_cups_connection_test_finish (PpCups *cups,
54 GAsyncResult *result,
55 GError **error);
56
57 void pp_cups_cancel_subscription_async (PpCups *cups,
58 gint subscription_id,
59 GAsyncReadyCallback callback,
60 gpointer user_data);
61
62 gboolean pp_cups_cancel_subscription_finish (PpCups *cups,
63 GAsyncResult *result);
64
65 void pp_cups_renew_subscription_async (PpCups *cups,
66 gint subscription_id,
67 gchar **events,
68 gint lease_duration,
69 GCancellable *cancellable,
70 GAsyncReadyCallback callback,
71 gpointer user_data);
72
73 gint pp_cups_renew_subscription_finish (PpCups *cups,
74 GAsyncResult *result);
75
76 G_END_DECLS
77