⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cupsd.h

📁 ipp打印机服务器原代码 注意:请将ipp.gz改为ipp.tar.gz 然后使用tar zxvf ipp.tar.gz解压 站长注意
💻 H
字号:
/* * "$Id: cupsd.h,v 1.56 2005/01/03 19:29:59 mike Exp $" * *   Main header file for the Common UNIX Printing System (CUPS) scheduler. * *   Copyright 1997-2005 by Easy Software Products, all rights reserved. * *   These coded instructions, statements, and computer programs are the *   property of Easy Software Products and are protected by Federal *   copyright law.  Distribution and use rights are outlined in the file *   "LICENSE" which should have been included with this file.  If this *   file is missing or damaged please contact Easy Software Products *   at: * *       Attn: CUPS Licensing Information *       Easy Software Products *       44141 Airport View Drive, Suite 204 *       Hollywood, Maryland 20636 USA * *       Voice: (301) 373-9600 *       EMail: cups-info@cups.org *         WWW: http://www.cups.org *//* * Include necessary headers. */#if 0#include <cups/http-private.h>#include <cups/string.h>#else#include "string.h"#endif#include <stdlib.h>#include <limits.h>#include <errno.h>#include <time.h>#include <signal.h>#include <fcntl.h>#include <math.h>#include <sys/types.h>#include <sys/time.h>#include <sys/stat.h>#include <sys/wait.h>#ifdef WIN32#  include <direct.h>#else#  include <unistd.h>#endif /* WIN32 */#if	0#include <cups/cups.h>#include "mime.h"#include <cups/http.h>#include <cups/ipp.h>#include <cups/language.h>#include <cups/debug.h>#else#include "cups.h"#include "http.h"#include "ipp.h"#include "language.h"#include "debug.h"#endif#if defined(HAVE_CDSASSL)#  include <CoreFoundation/CoreFoundation.h>#endif /* HAVE_CDSASSL *//* * Some OS's don't have hstrerror(), most notably Solaris... */#ifndef HAVE_HSTRERROR#  define hstrerror cups_hstrerrorextern const char *cups_hstrerror(int);#endif /* !HAVE_HSTRERROR *//* * Common constants. */#ifndef FALSE#  define FALSE		0#  define TRUE		(!FALSE)#endif /* !FALSE */#ifndef agan4014#define	DEBUG	1#endif/* * Implementation limits... */#define MAX_USERPASS		33	/* Maximum size of username/password */#define MAX_FILTERS		20	/* Maximum number of filters */#define MAX_SYSTEM_GROUPS	32	/* Maximum number of system groups *//* * Defaults... */#define DEFAULT_HISTORY		1	/* Preserve job history? */#define DEFAULT_FILES		0	/* Preserve job files? */#define DEFAULT_TIMEOUT		300	/* Timeout during requests/updates */#define DEFAULT_KEEPALIVE	60	/* Timeout between requests */#define DEFAULT_INTERVAL	30	/* Interval between browse updates */#define DEFAULT_LANGUAGE	setlocale(LC_ALL,"")					/* Default language encoding */#define DEFAULT_CHARSET		"utf-8"	/* Default charset *//* * Global variable macros... */#ifdef _MAIN_C_#  define VAR#  define VALUE(x) =x#  define VALUE2(x,y) ={x,y}#else#  define VAR      extern#  define VALUE(x)#  define VALUE2(x,y)#endif /* _MAIN_C *//* * Other stuff for the scheduler... */#if	0#include "cert.h"#include "auth.h"#include "classes.h"#include "job.h"#include "banners.h"#include "dirsvc.h"#include "network.h"#endif#include "client.h"#include "printers.h"#include "conf.h"/* * Directory handling functions... */#if HAVE_DIRENT_H#  include <dirent.h>typedef struct dirent DIRENT;#  define NAMLEN(dirent) strlen((dirent)->d_name)#else#  if HAVE_SYS_NDIR_H#    include <sys/ndir.h>#  endif#  if HAVE_SYS_DIR_H#    include <sys/dir.h>#  endif#  if HAVE_NDIR_H#    include <ndir.h>#  endiftypedef struct direct DIRENT;#  define NAMLEN(dirent) (dirent)->d_namlen#endif/* * Reload types... */#define RELOAD_NONE	0		/* No reload needed */#define RELOAD_ALL	1		/* Reload everything */#define RELOAD_CUPSD	2		/* Reload only cupsd.conf *//* * Globals... */VAR int			MaxFDs,		/* Maximum number of files */			SetSize;	/* The size of the input/output sets */VAR fd_set		*InputSet,	/* Input files for select() */			*OutputSet;	/* Output files for select() */VAR time_t		ReloadTime	VALUE(0);					/* Time of reload request... */VAR int			NeedReload	VALUE(RELOAD_ALL),					/* Need to load configuration? */			SignalCount	VALUE(0);					/* Signal handler level */VAR char		*TZ		VALUE(NULL);					/* Timezone configuration */VAR ipp_t		*Devices	VALUE(NULL),					/* Available devices */			*PPDs		VALUE(NULL);					/* Available PPDs *//* * Prototypes... */extern void	CatchChildSignals(void);extern void	ClearString(char **s);extern void	HoldSignals(void);extern void	IgnoreChildSignals(void);extern void	LoadDevices(const char *d);extern void	LoadPPDs(const char *d);extern void	ReleaseSignals(void);extern void	SetString(char **s, const char *v);extern void	SetStringf(char **s, const char *f, ...);extern void	StartServer(void);extern void	StopServer(void);extern void	cupsdClosePipe(int *fds);extern int	cupsdOpenPipe(int *fds);/* * End of "$Id: cupsd.h,v 1.56 2005/01/03 19:29:59 mike Exp $". */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -