Home
last modified time | relevance | path

Searched refs:printer_addr (Results 1 – 6 of 6) sorted by relevance

/packages/services/BuiltInPrintService/jni/lib/
Dprinter.c47 static status_t _init(const ifc_print_job_t *this_p, const char *printer_addr, int port, in _init() argument
56 print_job->psock = open(printer_addr, O_CREAT | O_WRONLY | O_TRUNC, in _init()
60 LOGE("cannot create output file : %s, %s", printer_addr, strerror(errno)); in _init()
62 LOGI("opened %s for writing", printer_addr); in _init()
66 print_job->psock = wConnect(printer_addr, print_job->port_num, _wprint_timeout_msec); in _init()
176 int wConnect(const char *printer_addr, int port_num, long int timeout_msec) { in wConnect() argument
190 if ((sin.sin_addr.s_addr = inet_addr(printer_addr)) == -1) { in wConnect()
196 if ((h_info = gethostbyname(printer_addr)) != NULL) { in wConnect()
199 LOGE("ERROR: unknown host %s", printer_addr); in wConnect()
231 LOGI("connected to %s:%d", printer_addr, port_num); in wConnect()
[all …]
Dlib_wprint.c136 char *printer_addr; member
439 _job_queue[index].printer_addr = ptr; in _get_handle()
479 free(jq->printer_addr); in _recycle_handle()
733 connect_info->uri_scheme, connect_info->printer_addr, connect_info->port_num, in _validate_certificate()
762 connect_info.printer_addr = jq->printer_addr; in _initialize_status_ifc()
913 job_result = jq->print_ifc->init(jq->print_ifc, jq->printer_addr, in _job_thread()
1819 wJob_t wprintStartJob(const char *printer_addr, port_t port_num, in wprintStartJob() argument
1889 strncpy(jq->printer_addr, printer_addr, MAX_PRINTER_ADDR_LENGTH); in wprintStartJob()
DwprintJNI.c1190 connect_info.printer_addr = copyToNewString(env, address); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1197 LOGI("nativeGetCapabilities for %s JNIenv is %p", connect_info.printer_addr, env); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
1202 if (connect_info.printer_addr) free((char *) connect_info.printer_addr); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
/packages/services/BuiltInPrintService/jni/include/
Dlib_wprint.h214 const char *printer_addr; member
308 wJob_t wprintStartJob(const char *printer_addr, port_t port_num,
Difc_print_job.h83 int wConnect(const char *printer_addr, int port_num, long int timeout_msec);
/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c1392 curl_http = httpConnect2(connect_info->printer_addr, ippPortNumber, NULL, AF_UNSPEC, in ipp_cups_connect()
1397 curl_http = httpConnect2(connect_info->printer_addr, ippPortNumber, NULL, AF_UNSPEC, in ipp_cups_connect()
1401 curl_http = httpConnect2(connect_info->printer_addr, ippPortNumber, NULL, AF_UNSPEC, in ipp_cups_connect()
1407 connect_info->printer_addr, ippPortNumber, "%s", uri_path); in ipp_cups_connect()
1410 LOGD("ipp_cups_connect failed addr=%s port=%d", connect_info->printer_addr, ippPortNumber); in ipp_cups_connect()