/*
* "$Id$"
*
- * D-Bus notifier for the Common UNIX Printing System (CUPS).
+ * D-Bus notifier for CUPS.
*
- * Copyright 2008 by Apple Inc.
+ * Copyright 2008-2010 by Apple Inc.
* Copyright (C) 2007 Red Hat, Inc.
* Copyright (C) 2007 Tim Waugh <twaugh@redhat.com>
* Copyright 1997-2005 by Easy Software Products.
*
* Contents:
*
+ * main() - Read events and send DBUS notifications.
+ * acquire_lock() - Acquire a lock so we only have a single notifier running.
*/
/*
*/
#include <cups/cups.h>
-#include <cups/string.h>
+#include <cups/string-private.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
* Local functions...
*/
-static int acquire_lock(int *fd);
+static int acquire_lock(int *fd, char *lockfile, size_t locksize);
/*
return (1);
}
- if (strcmp(argv[1], "dbus:"))
+ if (strncmp(argv[1], "dbus:", 5))
{
fprintf(stderr, "ERROR: Bad URI \"%s\"!\n", argv[1]);
return (1);