~ubuntu-branches/ubuntu/natty/cups/natty

« back to all changes in this revision

Viewing changes to backend/runloop.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-09-15 11:30:07 UTC
  • mto: (12.1.3 sid) (14.1.1 sid) (25.1.2 lucid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20090915113007-1gngzbskotfxronq
Tags: upstream-1.4.1
ImportĀ upstreamĀ versionĀ 1.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: runloop.c 8731 2009-06-26 18:26:36Z mike $"
 
2
 * "$Id: runloop.c 8807 2009-08-31 18:45:43Z mike $"
3
3
 *
4
4
 *   Common run loop APIs for the Common UNIX Printing System (CUPS).
5
5
 *
147
147
    int         snmp_fd,                /* I - SNMP socket or -1 if none */
148
148
    http_addr_t *addr,                  /* I - Address of device */
149
149
    int         use_bc,                 /* I - Use back-channel? */
150
 
    void        (*side_cb)(int, int, int, http_addr_t *, int))
 
150
    int         (*side_cb)(int, int, int, http_addr_t *, int))
151
151
                                        /* I - Side-channel callback */
152
152
{
153
153
  int           nfds;                   /* Maximum file descriptor value + 1 */
274
274
      * loop since it may have read from print_fd...
275
275
      */
276
276
 
277
 
      (*side_cb)(print_fd, device_fd, snmp_fd, addr, use_bc);
 
277
      if ((*side_cb)(print_fd, device_fd, snmp_fd, addr, use_bc))
 
278
        side_cb = NULL;
278
279
      continue;
279
280
    }
280
281
 
418
419
 
419
420
 
420
421
/*
421
 
 * End of "$Id: runloop.c 8731 2009-06-26 18:26:36Z mike $".
 
422
 * End of "$Id: runloop.c 8807 2009-08-31 18:45:43Z mike $".
422
423
 */