Searched refs:printer_addr (Results 1 – 6 of 6) sorted by relevance
/packages/services/BuiltInPrintService/jni/lib/ |
D | printer.c | 47 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 …]
|
D | lib_wprint.c | 136 char *printer_addr; member 434 _job_queue[index].printer_addr = ptr; in _get_handle() 471 free(jq->printer_addr); in _recycle_handle() 740 connect_info.printer_addr = jq->printer_addr; in _job_thread() 836 job_result = jq->print_ifc->init(jq->print_ifc, jq->printer_addr, in _job_thread() 1726 wJob_t wprintStartJob(const char *printer_addr, port_t port_num, in wprintStartJob() argument 1796 strncpy(jq->printer_addr, printer_addr, MAX_PRINTER_ADDR_LENGTH); in wprintStartJob()
|
D | wprintJNI.c | 1158 connect_info.printer_addr = copyToNewString(env, address); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities() 1163 LOGI("nativeGetCapabilities for %s JNIenv is %p", connect_info.printer_addr, env); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities() 1168 if (connect_info.printer_addr) free((char *) connect_info.printer_addr); in Java_com_android_bips_ipp_Backend_nativeGetCapabilities()
|
/packages/services/BuiltInPrintService/jni/include/ |
D | lib_wprint.h | 205 const char *printer_addr; member 290 wJob_t wprintStartJob(const char *printer_addr, port_t port_num,
|
D | ifc_print_job.h | 83 int wConnect(const char *printer_addr, int port_num, long int timeout_msec);
|
/packages/services/BuiltInPrintService/jni/ipphelper/ |
D | ipphelper.c | 1418 curl_http = httpConnect(connect_info->printer_addr, ippPortNumber); in ipp_cups_connect() 1422 connect_info->printer_addr, ippPortNumber, uri_path); in ipp_cups_connect() 1425 LOGD("ipp_cups_connect failed addr=%s port=%d", connect_info->printer_addr, ippPortNumber); in ipp_cups_connect()
|