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