~ubuntu-branches/ubuntu/utopic/cups/utopic

« back to all changes in this revision

Viewing changes to scheduler/avahi.h

  • Committer: Package Import Robot
  • Author(s): Didier Raboud, Till Kamppeter, Steve Langasek, Didier Raboud
  • Date: 2014-01-03 18:42:39 UTC
  • mfrom: (99.2.3 sid)
  • Revision ID: package-import@ubuntu.com-20140103184239-85wju2l7weie4dgo
Tags: 1.7.0-1
* New 1.7.0 upstream release

[ Till Kamppeter ]
* Refresh most patches with quilt
* Removed usb-backend-do-not-crash-if-usb-disabled-in-bios and
  cupsd-no-crash-on-avahi-threaded-poll-shutdown patches as they got
  applied upstream
* Removed drop-arch-specifics-from-doc patch as it is not needed
  anymore
* Updated drop_unnecessary_dependencies, manpage-hyphen-minus,
  manpage-translations and ppd-poll-with-client-conf patches manually
  to apply to the new CUPS version
* Added error counting exception from
  usb-backend-do-not-crash-if-usb-disabled-in-bios to
  tests-ignore-warnings
* Install the newly added ippfind utility and its manpage in
  cups-client
* Added pwg.h to libcups2-dev package
* Call dh_auto_clean only if the file Makedefs is present, to avoid a
  FTBFS
* Added color management extensions from Joe Simon's GSoC 2013
  project.
* Patch cups-files.conf to activate CUPS daemon syncing of files when
  closing, so that config files (like printers.conf) do not
  mysteriously disappear (LP: #1157972)
* In the AppArmor profile, allow execution of programs in
  /etc/cups/interfaces/, needed to make CUPS working with queues based
  on System V interface scripts, especially PPD-less queues
  auto-generated by cups-browsed from cups-filters 1.0.41 on.
* Silenced AppArmor noise from udev.conf in syslog (LP: #1229766)

[ Steve Langasek ]
* Add cups-filters (>= 1.0.42) as alternative to foomatic-filters
  (which is deprecated) in package relationships

[ Didier Raboud ]
* Remove Roger Leigh from uploaders on his request with thanks for his
  past work!
* Switch avahi LSB Should-Start dependency to be avahi-daemon; also
  bump package relationship to >= 0.6.31-3~ (Closes: #731608)
* Refresh the manpage translation files
* Move the USB backend quirk rules file to cups-server-common
* Add 38 new 1.7.0 libcups2 symbols
* Mark one C++ libcupsppdc1 symbol as optional as it isn't exported in
  1.7.0 anymore
* Import Fedora patches:
  - to avoid sign-extending CRCs in gz decompression
  - to build with full read-only relocations
  - to fix job history logging (upstream patch)
  - to set the internal default for SyncOnClose to Yes, instead of
    only configuring it to Yes
  - to fix a stringpool corruption issue
  - to prevent USB timeouts causing incorrect print output
* Import Fedora patch updates:
  - to dont-use-dbus-from-two-threads patch so it removes a call to
    avahi_threaded_poll_stop()
  - to avoid_stale_lockfile_in_dbus_notifier patch to call _exit when
    handling SIGTERM
* Move manpage-translations patch at the very end of the patch series
  to have it include all our patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */