]> git.ipfire.org Git - thirdparty/cups.git/blob - cups/adminutil.h
Load cups into easysw/current.
[thirdparty/cups.git] / cups / adminutil.h
1 /*
2 * "$Id: adminutil.h 5235 2006-03-06 13:02:23Z 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 2001-2006 by Easy Software Products.
11 *
12 * These coded instructions, statements, and computer programs are the
13 * property of Easy Software Products and are protected by Federal
14 * copyright law. Distribution and use rights are outlined in the file
15 * "LICENSE.txt" which should have been included with this file. If this
16 * file is missing or damaged please contact Easy Software Products
17 * at:
18 *
19 * Attn: CUPS Licensing Information
20 * Easy Software Products
21 * 44141 Airport View Drive, Suite 204
22 * Hollywood, Maryland 20636 USA
23 *
24 * Voice: (301) 373-9600
25 * EMail: cups-info@cups.org
26 * WWW: http://www.cups.org
27 *
28 * This file is subject to the Apple OS-Developed Software exception.
29 */
30
31 #ifndef _CUPS_ADMINUTIL_H_
32 # define _CUPS_ADMINUTIL_H_
33
34 /*
35 * Include necessary headers...
36 */
37
38 # include "cups.h"
39
40
41 /*
42 * C++ magic...
43 */
44
45 # ifdef __cplusplus
46 extern "C" {
47 # endif /* __cplusplus */
48
49
50 /*
51 * Constants...
52 */
53
54 # define CUPS_SERVER_DEBUG_LOGGING "_debug_logging"
55 # define CUPS_SERVER_REMOTE_ADMIN "_remote_admin"
56 # define CUPS_SERVER_REMOTE_PRINTERS "_remote_printers"
57 # define CUPS_SERVER_SHARE_PRINTERS "_share_printers"
58 # define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any"
59
60
61 /*
62 * Functions...
63 */
64
65 extern int cupsAdminExportSamba(const char *dest, const char *ppd,
66 const char *samba_server,
67 const char *samba_user,
68 const char *samba_password,
69 FILE *logfile);
70 extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
71 char *buffer, int bufsize);
72
73 extern int _cupsAdminGetServerSettings(http_t *http,
74 int *num_settings,
75 cups_option_t **settings);
76 extern int _cupsAdminSetServerSettings(http_t *http,
77 int num_settings,
78 cups_option_t *settings);
79
80
81 # ifdef __cplusplus
82 }
83 # endif /* __cplusplus */
84
85 #endif /* !_CUPS_ADMINUTIL_H_ */
86
87 /*
88 * End of "$Id: adminutil.h 5235 2006-03-06 13:02:23Z mike $".
89 */