]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/adminutil.h
Merge changes from CUPS 1.4svn-r7696.
[thirdparty/cups.git] / cups / adminutil.h
1 /*
2 * "$Id: adminutil.h 7026 2007-10-19 00:57:45Z mike $"
3 *
4 * Administration utility API definitions for the Common UNIX Printing
5 * System (CUPS).
6 *
7 * MANY OF THE FUNCTIONS IN THIS HEADER ARE PRIVATE AND SUBJECT TO
8 * CHANGE AT ANY TIME. USE AT YOUR OWN RISK.
9 *
10 * Copyright 2007 by Apple Inc.
11 * Copyright 2001-2007 by Easy Software Products.
12 *
13 * These coded instructions, statements, and computer programs are the
14 * property of Apple Inc. and are protected by Federal copyright
15 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
16 * which should have been included with this file. If this file is
17 * file is missing or damaged, see the license at "http://www.cups.org/".
18 *
19 * This file is subject to the Apple OS-Developed Software exception.
20 */
21
22 #ifndef _CUPS_ADMINUTIL_H_
23 # define _CUPS_ADMINUTIL_H_
24
25 /*
26 * Include necessary headers...
27 */
28
29 # include "cups.h"
30
31
32 /*
33 * C++ magic...
34 */
35
36 # ifdef __cplusplus
37 extern "C" {
38 # endif /* __cplusplus */
39
40
41 /*
42 * Constants...
43 */
44
45 # define CUPS_SERVER_DEBUG_LOGGING "_debug_logging"
46 # define CUPS_SERVER_REMOTE_ADMIN "_remote_admin"
47 # define CUPS_SERVER_REMOTE_ANY "_remote_any"
48 # define CUPS_SERVER_REMOTE_PRINTERS "_remote_printers"
49 # define CUPS_SERVER_SHARE_PRINTERS "_share_printers"
50 # define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any"
51
52
53 /*
54 * Functions...
55 */
56
57 extern int cupsAdminExportSamba(const char *dest, const char *ppd,
58 const char *samba_server,
59 const char *samba_user,
60 const char *samba_password,
61 FILE *logfile) _CUPS_API_1_2;
62 extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
63 char *buffer, int bufsize) _CUPS_API_1_2;
64
65 extern int cupsAdminGetServerSettings(http_t *http,
66 int *num_settings,
67 cups_option_t **settings) _CUPS_API_1_3;
68 extern int cupsAdminSetServerSettings(http_t *http,
69 int num_settings,
70 cups_option_t *settings) _CUPS_API_1_3;
71
72
73 # ifdef __cplusplus
74 }
75 # endif /* __cplusplus */
76
77 #endif /* !_CUPS_ADMINUTIL_H_ */
78
79 /*
80 * End of "$Id: adminutil.h 7026 2007-10-19 00:57:45Z mike $".
81 */