]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/avahi.h
4 * Avahi poll implementation for the CUPS scheduler.
6 * Copyright (C) 2010, 2011 Red Hat, Inc.
8 * Tim Waugh <twaugh@redhat.com>
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
14 * Redistributions of source code must retain the above copyright
15 * notice, this list of conditions and the following disclaimer.
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.
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.
38 # include <avahi-client/client.h>
39 # include <avahi-client/publish.h>
40 #endif /* HAVE_AVAHI */
42 #ifdef HAVE_AUTHORIZATION_H
43 # include <Security/Authorization.h>
44 #endif /* HAVE_AUTHORIZATION_H */
51 cups_array_t
*watched_fds
;
52 cups_array_t
*timeouts
;
54 #endif /* 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 */