/*
* D-Bus notifier for CUPS.
*
- * Copyright 2008-2014 by Apple Inc.
- * Copyright (C) 2011, 2013 Red Hat, Inc.
- * Copyright (C) 2007 Tim Waugh <twaugh@redhat.com>
- * Copyright 1997-2005 by Easy Software Products.
+ * Copyright © 2023 by OpenPrinting.
+ * Copyright © 2008-2014 by Apple Inc.
+ * Copyright © 2011, 2013 Red Hat, Inc.
+ * Copyright © 2007 Tim Waugh <twaugh@redhat.com>
+ * Copyright © 1997-2005 by Easy Software Products.
*
- * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more
+ * information.
*/
/*
*/
msg = ippNew();
- while ((state = ippReadFile(0, msg)) != IPP_DATA)
+ while ((state = ippReadFile(0, msg)) != IPP_STATE_DATA)
{
- if (state <= IPP_IDLE)
+ if (state <= IPP_STATE_IDLE)
break;
}
fprintf(stderr, "DEBUG: state=%d\n", state);
- if (state == IPP_ERROR)
+ if (state == IPP_STATE_ERROR)
fputs("DEBUG: ippReadFile() returned IPP_ERROR!\n", stderr);
- if (state <= IPP_IDLE)
+ if (state <= IPP_STATE_IDLE)
{
/*
* Out of messages, free memory and then exit...