• Home
  • Raw
  • Download

Lines Matching refs:cg

324     _cups_globals_t *cg = _cupsGlobals();  in cupsGetResponse()  local
327 if ((http = cg->http) == NULL) in cupsGetResponse()
543 _cups_globals_t *cg = _cupsGlobals(); in cupsReadResponseData() local
546 if ((http = cg->http) == NULL) in cupsReadResponseData()
915 _cups_globals_t *cg = _cupsGlobals(); in cupsWriteRequestData() local
918 if ((http = cg->http) == NULL) in cupsWriteRequestData()
986 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals */ in _cupsConnect() local
993 if (cg->http) in _cupsConnect()
1001 if (strcmp(cg->http->hostname, cg->server) || in _cupsConnect()
1003 …(httpAddrFamily(cg->http->hostaddr) != AF_LOCAL && cg->ipp_port != httpAddrPort(cg->http->hostaddr… in _cupsConnect()
1005 cg->ipp_port != httpAddrPort(cg->http->hostaddr) || in _cupsConnect()
1007 (cg->http->encryption != cg->encryption && in _cupsConnect()
1008 cg->http->encryption == HTTP_ENCRYPTION_NEVER)) in _cupsConnect()
1014 httpClose(cg->http); in _cupsConnect()
1015 cg->http = NULL; in _cupsConnect()
1027 if ((n = recv(cg->http->fd, &ch, 1, MSG_PEEK)) == 0 || in _cupsConnect()
1030 if ((n = recv(cg->http->fd, &ch, 1, MSG_PEEK | MSG_DONTWAIT)) == 0 || in _cupsConnect()
1038 httpClose(cg->http); in _cupsConnect()
1039 cg->http = NULL; in _cupsConnect()
1048 if (!cg->http) in _cupsConnect()
1050 if ((cg->http = httpConnect2(cupsServer(), ippPort(), NULL, AF_UNSPEC, in _cupsConnect()
1065 return (cg->http); in _cupsConnect()
1078 _cups_globals_t *cg; /* Global data */ in _cupsSetError() local
1087 cg = _cupsGlobals(); in _cupsSetError()
1088 cg->last_error = status; in _cupsSetError()
1090 if (cg->last_status_message) in _cupsSetError()
1092 _cupsStrFree(cg->last_status_message); in _cupsSetError()
1094 cg->last_status_message = NULL; in _cupsSetError()
1105 if (!cg->lang_default) in _cupsSetError()
1106 cg->lang_default = cupsLangDefault(); in _cupsSetError()
1108 cg->last_status_message = _cupsStrAlloc(_cupsLangString(cg->lang_default, in _cupsSetError()
1112 cg->last_status_message = _cupsStrAlloc(message); in _cupsSetError()
1116 ippErrorString(cg->last_error), cg->last_status_message)); in _cupsSetError()