]>
Commit | Line | Data |
---|---|---|
757d2cad | 1 | /* |
f7deaa1a | 2 | * "$Id: adminutil.h 6268 2007-02-12 02:46:11Z mike $" |
757d2cad | 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 | * | |
f7deaa1a | 10 | * Copyright 2001-2007 by Easy Software Products. |
757d2cad | 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" | |
f7deaa1a | 56 | # define CUPS_SERVER_REMOTE_ANY "_remote_any" |
757d2cad | 57 | # define CUPS_SERVER_REMOTE_PRINTERS "_remote_printers" |
58 | # define CUPS_SERVER_SHARE_PRINTERS "_share_printers" | |
59 | # define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any" | |
60 | ||
61 | ||
62 | /* | |
63 | * Functions... | |
64 | */ | |
65 | ||
66 | extern int cupsAdminExportSamba(const char *dest, const char *ppd, | |
67 | const char *samba_server, | |
68 | const char *samba_user, | |
69 | const char *samba_password, | |
70 | FILE *logfile); | |
71 | extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest, | |
72 | char *buffer, int bufsize); | |
73 | ||
74 | extern int _cupsAdminGetServerSettings(http_t *http, | |
75 | int *num_settings, | |
76 | cups_option_t **settings); | |
77 | extern int _cupsAdminSetServerSettings(http_t *http, | |
78 | int num_settings, | |
79 | cups_option_t *settings); | |
80 | ||
81 | ||
82 | # ifdef __cplusplus | |
83 | } | |
84 | # endif /* __cplusplus */ | |
85 | ||
86 | #endif /* !_CUPS_ADMINUTIL_H_ */ | |
87 | ||
88 | /* | |
f7deaa1a | 89 | * End of "$Id: adminutil.h 6268 2007-02-12 02:46:11Z mike $". |
757d2cad | 90 | */ |