]>
Commit | Line | Data |
---|---|---|
757d2cad | 1 | /* |
503b54c9 | 2 | * Administration utility API definitions for CUPS. |
757d2cad | 3 | * |
503b54c9 MS |
4 | * Copyright 2007-2012 by Apple Inc. |
5 | * Copyright 2001-2007 by Easy Software Products. | |
757d2cad | 6 | * |
503b54c9 MS |
7 | * These coded instructions, statements, and computer programs are the |
8 | * property of Apple Inc. and are protected by Federal copyright | |
9 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
10 | * which should have been included with this file. If this file is | |
11 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
757d2cad | 12 | * |
503b54c9 | 13 | * This file is subject to the Apple OS-Developed Software exception. |
757d2cad | 14 | */ |
15 | ||
16 | #ifndef _CUPS_ADMINUTIL_H_ | |
17 | # define _CUPS_ADMINUTIL_H_ | |
18 | ||
19 | /* | |
20 | * Include necessary headers... | |
21 | */ | |
22 | ||
aaf19ab0 | 23 | # include <stdio.h> |
757d2cad | 24 | # include "cups.h" |
25 | ||
26 | ||
27 | /* | |
28 | * C++ magic... | |
29 | */ | |
30 | ||
31 | # ifdef __cplusplus | |
32 | extern "C" { | |
33 | # endif /* __cplusplus */ | |
34 | ||
35 | ||
36 | /* | |
37 | * Constants... | |
38 | */ | |
39 | ||
40 | # define CUPS_SERVER_DEBUG_LOGGING "_debug_logging" | |
41 | # define CUPS_SERVER_REMOTE_ADMIN "_remote_admin" | |
f7deaa1a | 42 | # define CUPS_SERVER_REMOTE_ANY "_remote_any" |
a2326b5b | 43 | /*# define CUPS_SERVER_REMOTE_PRINTERS "_remote_printers"*/ |
757d2cad | 44 | # define CUPS_SERVER_SHARE_PRINTERS "_share_printers" |
45 | # define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any" | |
46 | ||
47 | ||
48 | /* | |
49 | * Functions... | |
50 | */ | |
51 | ||
52 | extern int cupsAdminExportSamba(const char *dest, const char *ppd, | |
53 | const char *samba_server, | |
54 | const char *samba_user, | |
55 | const char *samba_password, | |
5a9febac | 56 | FILE *logfile) _CUPS_DEPRECATED; |
757d2cad | 57 | extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest, |
5a9febac MS |
58 | char *buffer, int bufsize) |
59 | _CUPS_DEPRECATED; | |
757d2cad | 60 | |
f899b121 | 61 | extern int cupsAdminGetServerSettings(http_t *http, |
62 | int *num_settings, | |
5a9febac MS |
63 | cups_option_t **settings) |
64 | _CUPS_API_1_3; | |
f899b121 | 65 | extern int cupsAdminSetServerSettings(http_t *http, |
66 | int num_settings, | |
5a9febac MS |
67 | cups_option_t *settings) |
68 | _CUPS_API_1_3; | |
757d2cad | 69 | |
70 | ||
71 | # ifdef __cplusplus | |
72 | } | |
73 | # endif /* __cplusplus */ | |
74 | ||
75 | #endif /* !_CUPS_ADMINUTIL_H_ */ |