]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/util.h
2 * "$Id: util.h 7711 2008-07-02 04:39:27Z mike $"
4 * Mini-daemon utility definitions for the Common UNIX Printing System (CUPS).
6 * Copyright 2007-2009 by Apple Inc.
7 * Copyright 1997-2005 by Easy Software Products.
9 * These coded instructions, statements, and computer programs are the
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/".
16 #ifndef _CUPSD_UTIL_H_
17 # define _CUPSD_UTIL_H_
20 * Include necessary headers...
23 # include <cups/file-private.h>
33 # endif /* __cplusplus */
40 typedef int (*cupsd_compare_func_t
)(const void *, const void *);
47 extern int cupsdCompareNames(const char *s
, const char *t
);
48 extern cups_array_t
*cupsdCreateStringsArray(const char *s
);
49 extern int cupsdExec(const char *command
, char **argv
);
50 extern cups_file_t
*cupsdPipeCommand(int *pid
, const char *command
,
51 char **argv
, int user
);
52 extern void cupsdSendIPPGroup(ipp_tag_t group_tag
);
53 extern void cupsdSendIPPHeader(ipp_status_t status_code
,
55 extern void cupsdSendIPPInteger(ipp_tag_t value_tag
,
56 const char *name
, int value
);
57 extern void cupsdSendIPPString(ipp_tag_t value_tag
,
58 const char *name
, const char *value
);
59 extern void cupsdSendIPPTrailer(void);
64 # endif /* __cplusplus */
66 #endif /* !_CUPSD_UTIL_H_ */
69 * End of "$Id: util.h 7711 2008-07-02 04:39:27Z mike $".