cupsDoRequest changes request->request.op.operation_id

Jardel Weyrich w.jardel at gmail.com
Mon Apr 21 17:34:34 PDT 2008


> > Hi there.
> >
> > I'm writing an application that uses IPP_GET_NOTIFICATIONS to get the events on a given subscription id.
> >
> > The problem occurs here:
> >
> > ipp_t *request = ippNewRequest(IPP_GET_NOTIFICATIONS);
> > ...append the attributes...
> > printf("id = %d\n", request->request.op.operation_id);
> > ipp_t *response = cupsDoRequest(m_http, request, resource);
> > printf("id = %d\n", request->request.op.operation_id);
> >
> > The output is:
> > id = 28
> > id = 3
> >
> > For some reason, the cupsDoRequest() is internally changing the operation_id. Maybe,
> > I suppose it's an error, isn't it? Please, explain me.
> >
> > Thank you in advance,
> > Jardel
> >
> >
> >
> >
> >
>
> By the way, I'm using the request->request.op.operation_id for debugging purpose. I don't see any collateral effect, just the value itself.

Oh, I got it.. It does ippDelete() on the request. Thank you.





More information about the cups-devel mailing list