]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/adminutil.h
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / cups / adminutil.h
CommitLineData
757d2cad 1/*
75bd9771 2 * "$Id: adminutil.h 7026 2007-10-19 00:57:45Z 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 *
bc44d920 10 * Copyright 2007 by Apple Inc.
f7deaa1a 11 * Copyright 2001-2007 by Easy Software Products.
757d2cad 12 *
13 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
757d2cad 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
37extern "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"
f7deaa1a 47# define CUPS_SERVER_REMOTE_ANY "_remote_any"
757d2cad 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
57extern int cupsAdminExportSamba(const char *dest, const char *ppd,
58 const char *samba_server,
59 const char *samba_user,
60 const char *samba_password,
2fb76298 61 FILE *logfile) _CUPS_API_1_2;
757d2cad 62extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
2fb76298 63 char *buffer, int bufsize) _CUPS_API_1_2;
757d2cad 64
f899b121 65extern int cupsAdminGetServerSettings(http_t *http,
66 int *num_settings,
2fb76298 67 cups_option_t **settings) _CUPS_API_1_3;
f899b121 68extern int cupsAdminSetServerSettings(http_t *http,
69 int num_settings,
2fb76298 70 cups_option_t *settings) _CUPS_API_1_3;
757d2cad 71
72
73# ifdef __cplusplus
74}
75# endif /* __cplusplus */
76
77#endif /* !_CUPS_ADMINUTIL_H_ */
78
79/*
75bd9771 80 * End of "$Id: adminutil.h 7026 2007-10-19 00:57:45Z mike $".
757d2cad 81 */