]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/util.h
2 * Mini-daemon utility definitions for CUPS.
4 * Copyright 2007-2014 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products.
7 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
10 #ifndef _CUPSD_UTIL_H_
11 # define _CUPSD_UTIL_H_
14 * Include necessary headers...
17 # include <cups/array-private.h>
18 # include <cups/file-private.h>
28 # endif /* __cplusplus */
35 typedef int (*cupsd_compare_func_t
)(const void *, const void *);
42 extern int cupsdCompareNames(const char *s
, const char *t
);
43 extern cups_array_t
*cupsdCreateStringsArray(const char *s
);
44 extern int cupsdExec(const char *command
, char **argv
);
45 extern cups_file_t
*cupsdPipeCommand(int *pid
, const char *command
,
46 char **argv
, uid_t user
);
47 extern void cupsdSendIPPGroup(ipp_tag_t group_tag
);
48 extern void cupsdSendIPPHeader(ipp_status_t status_code
,
50 extern void cupsdSendIPPInteger(ipp_tag_t value_tag
,
51 const char *name
, int value
);
52 extern void cupsdSendIPPString(ipp_tag_t value_tag
,
53 const char *name
, const char *value
);
54 extern void cupsdSendIPPTrailer(void);
59 # endif /* __cplusplus */
61 #endif /* !_CUPSD_UTIL_H_ */