mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
printing: Convert headers to #pragma once
That is our current coding style.
This commit is contained in:
parent
bbabb1973c
commit
ae5ea8e495
@ -14,8 +14,8 @@
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef __GTK_SECRETS_UTILS_H__
|
||||
#define __GTK_SECRETS_UTILS_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
@ -37,5 +37,3 @@ void gtk_cups_secrets_service_store (char **auth_info,
|
||||
const char *printer_uri);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_SECRETS_UTILS_H__ */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* gtkcupsutils.h
|
||||
/* gtkcupsutils.h
|
||||
* Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
@ -8,15 +8,14 @@
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_CUPS_UTILS_H__
|
||||
#define __GTK_CUPS_UTILS_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib.h>
|
||||
#include <cups/cups.h>
|
||||
@ -46,7 +45,7 @@ typedef enum
|
||||
} GtkCupsRequestType;
|
||||
|
||||
|
||||
/**
|
||||
/*
|
||||
* Direction we should be polling the http socket on.
|
||||
* We are either reading or writing at each state.
|
||||
* This makes it easy for mainloops to connect to poll.
|
||||
@ -141,34 +140,34 @@ enum
|
||||
};
|
||||
|
||||
GtkCupsRequest * gtk_cups_request_new_with_username (http_t *connection,
|
||||
GtkCupsRequestType req_type,
|
||||
int operation_id,
|
||||
GIOChannel *data_io,
|
||||
const char *server,
|
||||
const char *resource,
|
||||
const char *username);
|
||||
GtkCupsRequestType req_type,
|
||||
int operation_id,
|
||||
GIOChannel *data_io,
|
||||
const char *server,
|
||||
const char *resource,
|
||||
const char *username);
|
||||
GtkCupsRequest * gtk_cups_request_new (http_t *connection,
|
||||
GtkCupsRequestType req_type,
|
||||
int operation_id,
|
||||
GIOChannel *data_io,
|
||||
const char *server,
|
||||
const char *resource);
|
||||
GtkCupsRequestType req_type,
|
||||
int operation_id,
|
||||
GIOChannel *data_io,
|
||||
const char *server,
|
||||
const char *resource);
|
||||
void gtk_cups_request_ipp_add_string (GtkCupsRequest *request,
|
||||
ipp_tag_t group,
|
||||
ipp_tag_t tag,
|
||||
const char *name,
|
||||
const char *charset,
|
||||
const char *value);
|
||||
ipp_tag_t group,
|
||||
ipp_tag_t tag,
|
||||
const char *name,
|
||||
const char *charset,
|
||||
const char *value);
|
||||
void gtk_cups_request_ipp_add_strings (GtkCupsRequest *request,
|
||||
ipp_tag_t group,
|
||||
ipp_tag_t tag,
|
||||
const char *name,
|
||||
int num_values,
|
||||
const char *charset,
|
||||
const char * const *values);
|
||||
ipp_tag_t group,
|
||||
ipp_tag_t tag,
|
||||
const char *name,
|
||||
int num_values,
|
||||
const char *charset,
|
||||
const char * const *values);
|
||||
const char * gtk_cups_request_ipp_get_string (GtkCupsRequest *request,
|
||||
ipp_tag_t tag,
|
||||
const char *name);
|
||||
ipp_tag_t tag,
|
||||
const char *name);
|
||||
gboolean gtk_cups_request_read_write (GtkCupsRequest *request,
|
||||
gboolean connect_only);
|
||||
GtkCupsPollState gtk_cups_request_get_poll_state (GtkCupsRequest *request);
|
||||
@ -176,11 +175,11 @@ void gtk_cups_request_free (GtkCupsRequest *
|
||||
GtkCupsResult * gtk_cups_request_get_result (GtkCupsRequest *request);
|
||||
gboolean gtk_cups_request_is_done (GtkCupsRequest *request);
|
||||
void gtk_cups_request_encode_option (GtkCupsRequest *request,
|
||||
const char *option,
|
||||
const char *value);
|
||||
const char *option,
|
||||
const char *value);
|
||||
void gtk_cups_request_set_ipp_version (GtkCupsRequest *request,
|
||||
int major,
|
||||
int minor);
|
||||
int major,
|
||||
int minor);
|
||||
gboolean gtk_cups_result_is_error (GtkCupsResult *result);
|
||||
ipp_t * gtk_cups_result_get_response (GtkCupsResult *result);
|
||||
GtkCupsErrorType gtk_cups_result_get_error_type (GtkCupsResult *result);
|
||||
@ -193,4 +192,4 @@ GtkCupsConnectionState gtk_cups_connection_test_get_state (GtkCupsConnectionTes
|
||||
void gtk_cups_connection_test_free (GtkCupsConnectionTest *test);
|
||||
|
||||
G_END_DECLS
|
||||
#endif
|
||||
|
||||
|
@ -17,9 +17,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __GTK_PRINT_BACKEND_CPDB_H__
|
||||
#define __GTK_PRINT_BACKEND_CPDB_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <gtk/gtk.h>
|
||||
@ -38,6 +36,3 @@ GtkPrintBackend *gtk_print_backend_cpdb_new (void);
|
||||
GType gtk_print_backend_cpdb_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_PRINT_BACKEND_CPDB_H__ */
|
||||
|
||||
|
@ -16,8 +16,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_PRINT_BACKEND_CUPS_H__
|
||||
#define __GTK_PRINT_BACKEND_CUPS_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "gtk/print/gtkprintbackendprivate.h"
|
||||
@ -34,7 +33,3 @@ GtkPrintBackend *gtk_print_backend_cups_new (void);
|
||||
GType gtk_print_backend_cups_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_PRINT_BACKEND_CUPS_H__ */
|
||||
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* GTK - The GIMP Toolkit
|
||||
* gtkprintbackendpdf.h: Default implementation of GtkPrintBackend
|
||||
* gtkprintbackendpdf.h: Default implementation of GtkPrintBackend
|
||||
* for printing to a file
|
||||
* Copyright (C) 2003, Red Hat, Inc.
|
||||
*
|
||||
@ -17,8 +17,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_PRINT_BACKEND_FILE_H__
|
||||
#define __GTK_PRINT_BACKEND_FILE_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include "gtk/print/gtkprintbackendprivate.h"
|
||||
@ -35,5 +34,3 @@ GtkPrintBackend *gtk_print_backend_file_new (void);
|
||||
GType gtk_print_backend_file_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_PRINT_BACKEND_FILE_H__ */
|
||||
|
@ -17,11 +17,8 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_PRINT_BACKEND_UTILS_H__
|
||||
#define __GTK_PRINT_BACKEND_UTILS_H__
|
||||
#pragma once
|
||||
|
||||
char *random_string (int size);
|
||||
char *localtime_to_utctime (const char *local_time);
|
||||
gboolean supports_am_pm (void);
|
||||
|
||||
#endif /* __GTK_PRINT_BACKEND_UTILS_H__ */
|
@ -15,9 +15,7 @@
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __GTK_PRINTER_CPDB_H__
|
||||
#define __GTK_PRINTER_CPDB_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <cpdb/cpdb-frontend.h>
|
||||
@ -42,5 +40,3 @@ void gtk_printer_cpdb_set_printer_obj (GtkPrinterCpdb
|
||||
cpdb_printer_obj_t *printer_obj);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_PRINTER_CPDB_H__ */
|
||||
|
@ -8,15 +8,14 @@
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __GTK_PRINTER_CUPS_H__
|
||||
#define __GTK_PRINTER_CUPS_H__
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <cups/cups.h>
|
||||
@ -39,7 +38,7 @@ G_BEGIN_DECLS
|
||||
#define GTK_IS_PRINTER_CUPS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER_CUPS))
|
||||
#define GTK_PRINTER_CUPS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER_CUPS, GtkPrinterCupsClass))
|
||||
|
||||
typedef struct _GtkPrinterCups GtkPrinterCups;
|
||||
typedef struct _GtkPrinterCups GtkPrinterCups;
|
||||
typedef struct _GtkPrinterCupsClass GtkPrinterCupsClass;
|
||||
typedef struct _GtkPrinterCupsPrivate GtkPrinterCupsPrivate;
|
||||
|
||||
@ -123,8 +122,8 @@ void gtk_printer_cups_register_type (GTypeModule *module
|
||||
GtkPrinterCups *gtk_printer_cups_new (const char *name,
|
||||
GtkPrintBackend *backend,
|
||||
gpointer colord_client);
|
||||
ppd_file_t *gtk_printer_cups_get_ppd (GtkPrinterCups *printer);
|
||||
const char *gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer);
|
||||
ppd_file_t *gtk_printer_cups_get_ppd (GtkPrinterCups *printer);
|
||||
const char *gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer);
|
||||
|
||||
#ifdef HAVE_COLORD
|
||||
void gtk_printer_cups_update_settings (GtkPrinterCups *printer,
|
||||
@ -133,5 +132,3 @@ void gtk_printer_cups_update_settings (GtkPrinterCups *print
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GTK_PRINTER_CUPS_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user