Searched refs:printername (Results 1 - 23 of 23) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/examples/spoolss/
H A Dpsec.py10 print "Usage: psec.py getsec|setsec printername"
14 printername = sys.argv[2] variable
21 hnd = spoolss.openprinter(printername)
23 print "error opening printer %s" % printername
46 hnd = spoolss.openprinter(printername,
51 print "error opening printer %s" % printername
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpcclient/
H A Dcmd_spoolss.c101 fstring printername; local
106 printf("Usage: %s <printername>\n", argv[0]);
116 fstrcpy(printername, argv[1]);
120 werror = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername,
125 printf("Printer %s opened successfully\n", printername);
149 rpcstr_pull(name, i0->printername.buffer, sizeof(name), -1, STR_TERMINATE);
225 fstring printername = ""; local
237 rpcstr_pull(printername, i2->printername.buffer,sizeof(printername),
476 fstring printername, local
542 fstring printername, local
607 fstring printername, local
737 fstring printername, local
802 fstring printername, local
982 fstring printername, local
1428 printername, local
1635 char *servername = NULL, *printername = NULL; local
1695 char *servername = NULL, *printername = NULL; local
1792 char *servername = NULL, *printername = NULL; local
1846 char *servername = NULL, *printername = NULL; local
1894 char *servername = NULL, *printername = NULL; local
1954 fstring servername, printername, user; local
2162 pstring printername; local
2232 pstring printername; local
2292 pstring printername; local
2355 pstring printername; local
2422 fstring servername, printername; local
2603 fstring printername, servername1, servername2; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/printing/
H A Dprinting_db.c29 Function to find or create the printer specific job tdb given a printername.
33 struct tdb_print_db *get_print_db_byname(const char *printername) argument
40 SMB_ASSERT(printername != NULL);
46 if (p->tdb && strequal(p->printer_name, printername)) {
95 pstrcat(printdb_path, printername);
116 fstrcpy(p->printer_name, printername);
H A Dprint_generic.c32 static int print_run_command(int snum, const char* printername, BOOL do_sub, argument
41 /* check for a valid system printername and valid command to run */
43 if ( !printername || !*printername )
57 pstring_sub( syscmd, "%p", printername );
H A Dnotify.c462 void notify_printer_printername(int snum, char *printername) argument
468 snum, strlen(printername) + 1, printername);
489 void notify_printer_byname( const char *printername, uint32 change, const char *value ) argument
491 int snum = print_queue_snum(printername);
497 send_notify_field_buffer( printername, type, change, snum, strlen(value)+1, value );
506 BOOL print_notify_pid_list(const char *printername, TALLOC_CTX *mem_ctx, size_t *p_num_pids, pid_t **pp_pid_list) argument
518 pdb = get_print_db_byname(printername);
525 printername));
531 data = get_printer_notify_pid_list( tdb, printername, Tru
[all...]
H A Dpcap.c236 BOOL pcap_printername_ok(const char *printername) argument
241 if (strequal(p->name, printername))
H A Dprint_iprint.c848 fstring printername; local
894 overload the lpq_command string to pass in the printername
898 fstrcpy( printername, lpq_command );
900 DEBUG(5,("iprint_queue_get(%s, %p, %p)\n", printername, q, status));
922 slprintf(uri, sizeof(uri) - 1, "ipp://%s/ipp/%s", iprint_server(), printername);
964 slprintf(httpPath, sizeof(httpPath) - 1, "/ipp/%s", printername);
967 DEBUG(0,("Unable to get printer status for %s - %s\n", printername,
974 DEBUG(0,("Unable to get printer status for %s - %s\n", printername,
1039 slprintf(httpPath, sizeof(httpPath) - 1, "/ipp/%s", printername);
H A Dprint_cups.c692 fstring printername; local
730 overload the lpq_command string to pass in the printername
734 fstrcpy( printername, lpq_command );
736 DEBUG(5,("cups_queue_get(%s, %p, %p)\n", printername, q, status));
756 slprintf(uri, sizeof(uri) - 1, "ipp://localhost/printers/%s", printername);
956 DEBUG(0,("Unable to get printer status for %s - %s\n", printername,
963 DEBUG(0,("Unable to get printer status for %s - %s\n", printername,
H A Dnt_printing.c2390 * We only store the printername, not \\server\printername
2394 trim_string(info->printername, info->servername, NULL);
2395 trim_char(info->printername, '\\', '\0');
2427 info->printername,
3045 DEBUG(5, ("publishing printer %s\n", printer->info_2->printername));
3156 DEBUG(5, ("unpublishing printer %s\n", printer->info_2->printername));
3394 p2->printername ));
3447 DEBUG(8,("delete_all_printer_data: No keys left for printer [%s]\n", p2->printername ));
3751 slprintf(info->printername, sizeo
3827 fstring printername; local
[all...]
H A Dprinting.c1457 /* don't strip out characters like '$' from the printername */
1558 const char *printername; local
1581 printername = lp_const_servicename(snum);
1582 pdb = get_print_db_byname(printername);
1590 printername));
1596 data = get_printer_notify_pid_list( tdb, printername, True );
1613 printername));
1624 list for printer %s\n", printername));
1649 const char *printername; local
1671 printername
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/utils/
H A Dnet_rpc_printer.c708 const char *printername,
720 fstrcat(printername2, printername);
1034 pstring printername, sharename; local
1045 rpcstr_pull(printername, ctr.printers_2[i].printername.buffer,
1046 sizeof(printername), -1, STR_TERMINATE);
1051 i+1, printername, sharename);
1149 pstring printername, sharename; local
1162 rpcstr_pull(printername, ctr.printers_2[i].printername
706 net_spoolss_open_printer_ex(struct rpc_pipe_client *pipe_hnd, TALLOC_CTX *mem_ctx, const char *printername, uint32 access_required, const char *username, POLICY_HND *hnd) argument
1275 pstring printername, sharename; local
1368 pstring printername = "", sharename = ""; local
1516 pstring printername = "", sharename = ""; local
1691 pstring printername = "", sharename = ""; local
1913 pstring printername, sharename; local
2063 pstring printername = "", sharename = ""; local
[all...]
H A Dnet_ads.c52 d_printf("printer [info | publish | remove] <printername> <servername>\n");
1806 "\nnet ads printer publish <printername>"
1809 "\nnet ads printer remove <printername>"
1854 const char *servername, *printername; local
1862 printername = argv[0];
1864 printername = "*";
1873 rc = ads_find_printer_on_server(ads, &res, printername, servername);
1884 d_fprintf(stderr, "Printer '%s' not found\n", printername);
1907 const char *servername, *printername; local
1928 printername
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/registry/
H A Dreg_printing.c197 char *printername, *printerdatakey; local
228 if (!reg_split_path( printers_key, &printername, &printerdatakey )) {
237 if (strequal( lp_servicename(snum), printername ) )
242 || !W_ERROR_IS_OK( get_a_printer(NULL, &printer, 2, printername) ) )
271 char *printername; local
282 printername = regsubkey_ctr_specific_key( subkeys, i );
283 snum = find_service( printername );
287 fstrcpy( info2.printername, printername );
288 fstrcpy( info2.sharename, printername );
306 char *printername, *printerdatakey; local
471 char *printername, *printerdatakey; local
667 char *printername, *keyname; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/libads/
H A Dldap_printer.c287 char *printername, *servername; local
293 asprintf(&printername, "%s\\%s", servername, printer);
294 if (!servername || !printername) {
299 result = rpccli_spoolss_open_printer_ex(cli, mem_ctx, printername,
304 printername, dos_errstr(result)));
315 printername, dos_errstr(result)));
332 printername, dos_errstr(result)));
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/stf/
H A Dspoolss.py14 self.printername = "p"
16 (self.server["hostname"], self.printername)
25 self.printername = "p"
27 (self.server["hostname"], self.printername)
98 unc = re.sub("%p", self.printername, unc)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/python/
H A Dpy_spoolss_jobs_conv.c26 { "printer_name", PY_UNISTR, offsetof(JOB_INFO_1, printername) },
42 { "printer_name", PY_UNISTR, offsetof(JOB_INFO_2, printername) },
H A Dpy_spoolss_printers.c32 static char *kwlist[] = { "printername", "creds", "access", NULL };
347 rpcstr_pull(s, ctr.printers_0[i].printername.buffer,
385 rpcstr_pull(s, ctr.printers_2[i].printername.buffer,
416 static char *kwlist[] = { "server", "printername", "info", "creds",
418 char *printername, *server, *errstr; local
427 args, kw, "ssO!|O!", kwlist, &server, &printername,
H A Dpy_spoolss_printers_conv.c25 { "name", PY_UNISTR, offsetof(PRINTER_INFO_0, printername) },
84 { "name", PY_UNISTR, offsetof(PRINTER_INFO_2, printername) },
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpc_server/
H A Dsrv_spoolss_nt.c436 char *aprinter, *printername; local
505 we aren't allowing printername != sharename */
520 /* printername is always returned as \\server\printername */
521 if ( !(printername = strchr_m(&printer->info_2->printername[2], '\\')) ) {
522 DEBUG(0,("set_printer_hnd_name: info2->printername in wrong format! [%s]\n",
523 printer->info_2->printername));
528 printername++;
530 if ( strequal(printername, aprinte
1784 convert_devicemode(const char *printername, const DEVICEMODE *devmode, NT_DEVICEMODE **pp_nt_devmode) argument
5996 fstring printername; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/include/
H A Drpc_spoolss.h555 UNISTR2 *printername; member in struct:__anon5460
567 UNISTR2 *printername; member in struct:__anon5462
880 UNISTR printername; member in struct:printer_info_0
939 UNISTR printername; member in struct:printer_info_2
970 UNISTR printername; member in struct:printer_info_4
978 UNISTR printername; member in struct:printer_info_5
1198 UNISTR printername; member in struct:s_job_info_1
1216 UNISTR printername; member in struct:s_job_info_2
1483 UNISTR2 printername; member in struct:spool_printer_info_level_2
H A Dnt_printing.h312 fstring printername; member in struct:nt_printer_info_level_2
430 fstring printername; member in struct:__anon5278
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpc_parse/
H A Dparse_spoolss.c901 const fstring printername,
909 q_u->printername = TALLOC_P( get_talloc_ctx(), UNISTR2 );
910 if (!q_u->printername) {
913 init_unistr2(q_u->printername, printername, UNI_STR_TERMINATE);
1033 inf->printername_ptr = (info->printername.buffer!=NULL)?1:0;
1053 init_unistr2_from_unistr(&inf->printername, &info->printername);
1135 if (!prs_io_unistr2_p("ptr", ps, depth, &q_u->printername))
1137 if (!prs_io_unistr2("printername", p
900 make_spoolss_q_open_printer_ex(SPOOL_Q_OPEN_PRINTER_EX *q_u, const fstring printername, const fstring datatype, uint32 access_required, const fstring clientname, const fstring user_name) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpc_client/
H A Dcli_spoolss.c458 const char *printername, const char *datatype, uint32 access_required,
468 make_spoolss_q_open_printer_ex( &in, printername, datatype,
457 rpccli_spoolss_open_printer_ex(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, const char *printername, const char *datatype, uint32 access_required, const char *station, const char *username, POLICY_HND *pol) argument

Completed in 160 milliseconds