]> git.ipfire.org Git - thirdparty/cups.git/blame - cups/adminutil.h
Merge changes from CUPS 1.6svn-r10112.
[thirdparty/cups.git] / cups / adminutil.h
CommitLineData
757d2cad 1/*
75bd9771 2 * "$Id: adminutil.h 7026 2007-10-19 00:57:45Z mike $"
757d2cad 3 *
ba55dc12 4 * Administration utility API definitions for CUPS.
757d2cad 5 *
a2326b5b 6 * Copyright 2007-2011 by Apple Inc.
f7deaa1a 7 * Copyright 2001-2007 by Easy Software Products.
757d2cad 8 *
9 * These coded instructions, statements, and computer programs are the
bc44d920 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/".
757d2cad 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
aaf19ab0 25# include <stdio.h>
757d2cad 26# include "cups.h"
27
28
29/*
30 * C++ magic...
31 */
32
33# ifdef __cplusplus
34extern "C" {
35# endif /* __cplusplus */
36
37
38/*
39 * Constants...
40 */
41
42# define CUPS_SERVER_DEBUG_LOGGING "_debug_logging"
43# define CUPS_SERVER_REMOTE_ADMIN "_remote_admin"
f7deaa1a 44# define CUPS_SERVER_REMOTE_ANY "_remote_any"
a2326b5b 45/*# define CUPS_SERVER_REMOTE_PRINTERS "_remote_printers"*/
757d2cad 46# define CUPS_SERVER_SHARE_PRINTERS "_share_printers"
47# define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any"
48
49
50/*
51 * Functions...
52 */
53
54extern int cupsAdminExportSamba(const char *dest, const char *ppd,
55 const char *samba_server,
56 const char *samba_user,
57 const char *samba_password,
2fb76298 58 FILE *logfile) _CUPS_API_1_2;
757d2cad 59extern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest,
2fb76298 60 char *buffer, int bufsize) _CUPS_API_1_2;
757d2cad 61
f899b121 62extern int cupsAdminGetServerSettings(http_t *http,
63 int *num_settings,
2fb76298 64 cups_option_t **settings) _CUPS_API_1_3;
f899b121 65extern int cupsAdminSetServerSettings(http_t *http,
66 int num_settings,
2fb76298 67 cups_option_t *settings) _CUPS_API_1_3;
757d2cad 68
69
70# ifdef __cplusplus
71}
72# endif /* __cplusplus */
73
74#endif /* !_CUPS_ADMINUTIL_H_ */
75
76/*
75bd9771 77 * End of "$Id: adminutil.h 7026 2007-10-19 00:57:45Z mike $".
757d2cad 78 */