/*
- * "$Id: quotas.c 5969 2006-09-19 20:09:24Z mike $"
+ * "$Id: quotas.c 6365 2007-03-19 20:56:57Z mike $"
*
* Quota routines for the Common UNIX Printing System (CUPS).
*
- * Copyright 1997-2006 by Easy Software Products.
+ * Copyright 1997-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
* property of Easy Software Products and are protected by Federal
"cupsdUpdateQuota: p=%s username=%s pages=%d k=%d",
p->name, username, pages, k);
+#if defined(__APPLE__) && defined(HAVE_DLFCN_H)
+ /*
+ * Use Apple PrintService quota enforcement if installed (X Server only)
+ */
+
+ if (AppleQuotas && PSQUpdateQuotaProc)
+ {
+ q->page_count = (*PSQUpdateQuotaProc)(p->name, p->info, username, pages, 0);
+
+ return (q);
+ }
+#endif /* __APPLE__ && HAVE_DLFCN_H */
+
curtime = time(NULL);
if (curtime < q->next_update)
/*
- * End of "$Id: quotas.c 5969 2006-09-19 20:09:24Z mike $".
+ * End of "$Id: quotas.c 6365 2007-03-19 20:56:57Z mike $".
*/