• Home
  • Raw
  • Download

Lines Matching refs:caps

91     ipp_capabilities_t *caps = (ipp_capabilities_t *) malloc(sizeof(ipp_capabilities_t));  in ipp_status_get_capabilities_ifc()  local
92 if (caps == NULL) { in ipp_status_get_capabilities_ifc()
96 memset(caps, 0, sizeof(ipp_capabilities_t)); in ipp_status_get_capabilities_ifc()
97 caps->http = NULL; in ipp_status_get_capabilities_ifc()
99 memcpy(&caps->ifc, &_capabilities_ifc, sizeof(ifc_printer_capabilities_t)); in ipp_status_get_capabilities_ifc()
100 return &caps->ifc; in ipp_status_get_capabilities_ifc()
106 ipp_capabilities_t *caps; in _init() local
111 caps = IMPL(ipp_capabilities_t, ifc, this_p); in _init()
113 if (caps->http != NULL) { in _init()
115 httpClose(caps->http); in _init()
118 caps->http = ipp_cups_connect(connect_info, caps->printer_caps.printerUri, in _init()
119 sizeof(caps->printer_caps.printerUri)); in _init()
120 getResourceFromURI(caps->printer_caps.printerUri, caps->printer_caps.httpResource, 1024); in _init()
121 if (caps->http == NULL) { in _init()
131 ipp_capabilities_t *caps = NULL; in _get_capabilities() local
148 caps = IMPL(ipp_capabilities_t, ifc, this_p); in _get_capabilities()
149 if (caps->http == NULL) { in _get_capabilities()
157 caps->printer_caps.printerUri); in _get_capabilities()
167 response = ipp_doCupsRequest(caps->http, request, caps->printer_caps.httpResource, in _get_capabilities()
168 caps->printer_caps.printerUri); in _get_capabilities()
172 caps->printer_caps.printerUri, ipp_status, ippErrorString(ipp_status)); in _get_capabilities()
202 if ((caps != NULL) && (capabilities != NULL)) { in _get_capabilities()
203 memcpy(capabilities->httpResource, caps->printer_caps.httpResource, in _get_capabilities()
212 ipp_capabilities_t *caps; in _destroy() local
219 caps = IMPL(ipp_capabilities_t, ifc, this_p); in _destroy()
220 if (caps->http != NULL) { in _destroy()
221 httpClose(caps->http); in _destroy()
223 free(caps); in _destroy()