125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Administration utility API definitions for CUPS. 325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * 425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Copyright 2007-2016 by Apple Inc. 525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Copyright 2001-2007 by Easy Software Products. 625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * 725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * These coded instructions, statements, and computer programs are the 825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * property of Apple Inc. and are protected by Federal copyright 925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * law. Distribution and use rights are outlined in the file "LICENSE.txt" 1025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * which should have been included with this file. If this file is 112447373f182dbfeb47fb86c0f5a6ac5773c65ac2Philip P. Moltmann * missing or damaged, see the license at "http://www.cups.org/". 1225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * 1325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * This file is subject to the Apple OS-Developed Software exception. 1425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 1525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 1625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann#ifndef _CUPS_ADMINUTIL_H_ 1725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define _CUPS_ADMINUTIL_H_ 1825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 1925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 2025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Include necessary headers... 2125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 2225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 2325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# include <stdio.h> 2425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# include "cups.h" 2525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 2625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 2725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 2825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * C++ magic... 2925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 3025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 3125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# ifdef __cplusplus 3225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern "C" { 3325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# endif /* __cplusplus */ 3425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 3525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 3625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 3725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Constants... 3825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 3925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 4025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define CUPS_SERVER_DEBUG_LOGGING "_debug_logging" 4125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define CUPS_SERVER_REMOTE_ADMIN "_remote_admin" 4225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define CUPS_SERVER_REMOTE_ANY "_remote_any" 4325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define CUPS_SERVER_SHARE_PRINTERS "_share_printers" 4425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# define CUPS_SERVER_USER_CANCEL_ANY "_user_cancel_any" 4525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 4625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 4725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 4825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Types and structures... 4925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 5025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 5125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmanntypedef void (*cups_device_cb_t)(const char *device_class, 5225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *device_id, const char *device_info, 5325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *device_make_and_model, 5425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *device_uri, 5525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *device_location, void *user_data); 5625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann /* Device callback 5725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * @since CUPS 1.4/macOS 10.6@ */ 5825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 5925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 6025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann/* 6125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann * Functions... 6225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann */ 6325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 6425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern int cupsAdminExportSamba(const char *dest, const char *ppd, 6525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *samba_server, 6625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *samba_user, 6725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *samba_password, 6825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann FILE *logfile) _CUPS_DEPRECATED; 6925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern char *cupsAdminCreateWindowsPPD(http_t *http, const char *dest, 7025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann char *buffer, int bufsize) 7125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann _CUPS_DEPRECATED; 7225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 7325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern int cupsAdminGetServerSettings(http_t *http, 7425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann int *num_settings, 7525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann cups_option_t **settings) 7625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann _CUPS_API_1_3; 7725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern int cupsAdminSetServerSettings(http_t *http, 7825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann int num_settings, 7925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann cups_option_t *settings) 8025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann _CUPS_API_1_3; 8125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 8225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmannextern ipp_status_t cupsGetDevices(http_t *http, int timeout, 8325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *include_schemes, 8425aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann const char *exclude_schemes, 8525aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann cups_device_cb_t callback, 8625aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann void *user_data) _CUPS_API_1_4; 8725aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 8825aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 8925aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# ifdef __cplusplus 9025aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann} 9125aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann# endif /* __cplusplus */ 9225aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann 9325aee82d491492e1fa3b005e5880e684dc081ffbPhilip P. Moltmann#endif /* !_CUPS_ADMINUTIL_H_ */ 94