]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/avahi.h
Merge changes from CUPS 1.6svn-r10310.
[thirdparty/cups.git] / scheduler / avahi.h
1 /*
2 * "$Id$"
3 *
4 * Avahi poll implementation for the CUPS scheduler.
5 *
6 * Copyright (C) 2010, 2011 Red Hat, Inc.
7 * Authors:
8 * Tim Waugh <twaugh@redhat.com>
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 *
14 * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
16 *
17 * Redistributions in binary form must reproduce the above copyright
18 * notice, this list of conditions and the following disclaimer in the
19 * documentation and/or other materials provided with the distribution.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25 * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
32 * OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35 #include <config.h>
36
37 #ifdef HAVE_AVAHI
38 # include <avahi-client/client.h>
39 # include <avahi-client/publish.h>
40 #endif /* HAVE_AVAHI */
41
42 #ifdef HAVE_AUTHORIZATION_H
43 # include <Security/Authorization.h>
44 #endif /* HAVE_AUTHORIZATION_H */
45
46
47 #ifdef HAVE_AVAHI
48 typedef struct
49 {
50 AvahiPoll api;
51 cups_array_t *watched_fds;
52 cups_array_t *timeouts;
53 } AvahiCupsPoll;
54 #endif /* HAVE_AVAHI */
55
56 /*
57 * Prototypes...
58 */
59
60 #ifdef HAVE_AVAHI
61 extern AvahiCupsPoll * avahi_cups_poll_new(void);
62 extern void avahi_cups_poll_free(AvahiCupsPoll *cups_poll);
63 extern const AvahiPoll *avahi_cups_poll_get(AvahiCupsPoll *cups_poll);
64 #endif /* HAVE_AVAHI */
65
66
67 /*
68 * End of "$Id$".
69 */