• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/utils/

Lines Matching defs:mem_ctx

155  * @param mem_ctx		A talloc-context
168 NTSTATUS net_copy_fileattr(TALLOC_CTX *mem_ctx,
203 sd = cli_query_secdesc(cli_share_src, fnum_src, mem_ctx);
307 * @param mem_ctx A talloc-context
320 NTSTATUS net_copy_file(TALLOC_CTX *mem_ctx,
457 nt_status = net_copy_fileattr(mem_ctx, cli_share_src, cli_share_dst,
491 * @param mem_ctx A talloc-context
500 static NTSTATUS net_copy_driverfile(TALLOC_CTX *mem_ctx,
534 nt_status = net_copy_file(mem_ctx, cli_share_src, cli_share_dst,
593 * @param mem_ctx A talloc-context
602 static NTSTATUS copy_print_driver_3(TALLOC_CTX *mem_ctx,
632 nt_status = net_copy_driverfile(mem_ctx, cli_share_src, cli_share_dst,
637 nt_status = net_copy_driverfile(mem_ctx, cli_share_src, cli_share_dst,
642 nt_status = net_copy_driverfile(mem_ctx, cli_share_src, cli_share_dst,
647 nt_status = net_copy_driverfile(mem_ctx, cli_share_src, cli_share_dst,
659 nt_status = net_copy_driverfile(mem_ctx,
685 TALLOC_CTX *mem_ctx,
695 result = rpccli_spoolss_enum_printers(pipe_hnd, mem_ctx, name, flags,
707 TALLOC_CTX *mem_ctx,
726 result = rpccli_spoolss_open_printer_ex(pipe_hnd, mem_ctx, printername2,
750 TALLOC_CTX *mem_ctx,
758 result = rpccli_spoolss_getprinter(pipe_hnd, mem_ctx, hnd, level, ctr);
769 TALLOC_CTX *mem_ctx,
777 result = rpccli_spoolss_setprinter(pipe_hnd, mem_ctx, hnd, level, ctr, 0);
789 TALLOC_CTX *mem_ctx,
796 result = rpccli_spoolss_setprinterdata(pipe_hnd, mem_ctx, hnd, value);
808 TALLOC_CTX *mem_ctx,
816 result = rpccli_spoolss_enumprinterkey(pipe_hnd, mem_ctx, hnd, keyname, keylist, NULL);
827 TALLOC_CTX *mem_ctx,
836 result = rpccli_spoolss_enumprinterdataex(pipe_hnd, mem_ctx, hnd, keyname, ctr);
848 TALLOC_CTX *mem_ctx,
856 result = rpccli_spoolss_setprinterdataex(pipe_hnd, mem_ctx, hnd,
868 TALLOC_CTX *mem_ctx,
878 result = rpccli_spoolss_enumforms(pipe_hnd, mem_ctx, hnd, level, num_forms, forms);
889 TALLOC_CTX *mem_ctx,
898 pipe_hnd, mem_ctx, level,
910 TALLOC_CTX *mem_ctx,
919 pipe_hnd, mem_ctx, hnd, level,
937 TALLOC_CTX *mem_ctx, uint32 level,
943 result = rpccli_spoolss_addprinterdriver(pipe_hnd, mem_ctx, level, ctr);
964 TALLOC_CTX *mem_ctx,
977 if (!net_spoolss_enum_printers(pipe_hnd, mem_ctx, NULL,
987 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, argv[0],
991 if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd, level, ctr)) {
992 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd);
996 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd);
1015 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1027 TALLOC_CTX *mem_ctx,
1039 if (!get_printer_info(pipe_hnd, mem_ctx, level, argc, argv, &num_printers, &ctr))
1065 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1077 TALLOC_CTX *mem_ctx,
1096 if (!net_spoolss_enumprinterdrivers(pipe_hnd, mem_ctx, level,
1131 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1141 TALLOC_CTX *mem_ctx,
1156 if (!get_printer_info(pipe_hnd, mem_ctx, 2, argc, argv, &num_printers, &ctr))
1168 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1175 if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd, level, &ctr_pub))
1197 result = rpccli_spoolss_setprinter(pipe_hnd, mem_ctx, &hnd, level, &ctr_pub, 0);
1210 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd);
1219 TALLOC_CTX *mem_ctx,
1223 return rpc_printer_publish_internals_args(pipe_hnd, mem_ctx, argc, argv, SPOOL_DS_PUBLISH);
1230 TALLOC_CTX *mem_ctx,
1234 return rpc_printer_publish_internals_args(pipe_hnd, mem_ctx, argc, argv, SPOOL_DS_UNPUBLISH);
1241 TALLOC_CTX *mem_ctx,
1245 return rpc_printer_publish_internals_args(pipe_hnd, mem_ctx, argc, argv, SPOOL_DS_UPDATE);
1256 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1268 TALLOC_CTX *mem_ctx,
1282 if (!get_printer_info(pipe_hnd, mem_ctx, 2, argc, argv, &num_printers, &ctr))
1296 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1303 if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd, level, &ctr_pub))
1332 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd);
1345 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1357 TALLOC_CTX *mem_ctx,
1387 if (!get_printer_info(pipe_hnd, mem_ctx, level, argc, argv, &num_printers, &ctr_enum)) {
1420 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1427 if (!net_spoolss_open_printer_ex(pipe_hnd_dst, mem_ctx, sharename,
1434 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, level, &ctr_dst))
1438 if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd_src, 3, &ctr_src))
1445 ctr_dst.printers_2->secdesc = dup_sec_desc(mem_ctx, ctr_src.printers_3->secdesc);
1450 if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, 2, &ctr_dst))
1458 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1463 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1474 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1478 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1495 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1507 TALLOC_CTX *mem_ctx,
1537 if (!get_printer_info(pipe_hnd, mem_ctx, 2, argc, argv, &num_printers, &ctr_enum)) {
1566 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1574 if (!net_spoolss_open_printer_ex(pipe_hnd_dst, mem_ctx, sharename,
1582 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, level, &ctr_dst))
1586 if (!net_spoolss_enumforms(pipe_hnd, mem_ctx, &hnd_src, level, &num_forms, &forms))
1623 result = rpccli_spoolss_addform(pipe_hnd_dst, mem_ctx,
1637 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1642 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1652 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1655 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1671 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1683 TALLOC_CTX *mem_ctx,
1737 if (!get_printer_info(pipe_hnd, mem_ctx, 2, argc, argv, &num_printers, &info_ctr_enum)) {
1765 if (!net_spoolss_open_printer_ex(pipe_hnd_dst, mem_ctx, sharename,
1772 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, 2, &info_ctr_dst))
1777 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1790 if (!net_spoolss_getprinterdriver(pipe_hnd, mem_ctx, &hnd_src,
1809 nt_status = copy_print_driver_3(mem_ctx, cli_share_src, cli_share_dst,
1817 if (!net_spoolss_addprinterdriver(pipe_hnd_dst, mem_ctx, level, &drv_ctr_src)) {
1836 if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, 2, &info_ctr_dst)) {
1846 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1852 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1862 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
1865 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1890 * @param mem_ctx Talloc context, destoyed on compleation of the function.
1902 TALLOC_CTX *mem_ctx,
1926 if (!get_printer_info(pipe_hnd, mem_ctx, level, argc, argv, &num_printers, &ctr_enum)) {
1954 if (!net_spoolss_open_printer_ex(pipe_hnd_dst, mem_ctx, sharename,
1963 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, level, &ctr_dst)) {
1969 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
1979 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
1986 if (!net_spoolss_getprinter(pipe_hnd, mem_ctx, &hnd_src, level, &ctr_src))
1992 result = rpccli_spoolss_addprinterex (pipe_hnd_dst, mem_ctx, level, &ctr_src);
2005 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
2010 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
2019 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
2022 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
2039 * @param mem_ctx Talloc context, destoyed on compleation of the function.
2051 TALLOC_CTX *mem_ctx,
2087 if (!get_printer_info(pipe_hnd, mem_ctx, level, argc, argv, &num_printers, &ctr_enum)) {
2120 if (!net_spoolss_open_printer_ex(pipe_hnd, mem_ctx, sharename,
2128 if (!net_spoolss_open_printer_ex(pipe_hnd_dst, mem_ctx, sharename,
2136 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst,
2155 if (!net_spoolss_getprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, 7, &ctr_dst_publish))
2161 net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst, 7, &ctr_dst_publish);
2170 TALLOC_MEMDUP(mem_ctx,
2188 if (!net_spoolss_setprinter(pipe_hnd_dst, mem_ctx, &hnd_dst,
2204 result = rpccli_spoolss_enumprinterdata(pipe_hnd, mem_ctx, &hnd_src, p, 0, 0,
2213 pipe_hnd, mem_ctx, &hnd_src, p++, val_needed,
2224 if (!net_spoolss_setprinterdata(pipe_hnd_dst, mem_ctx,
2240 if (!net_spoolss_enumprinterkey(pipe_hnd, mem_ctx, &hnd_src, "", &keylist)) {
2261 if ( !(reg_ctr = TALLOC_ZERO_P( mem_ctx, REGVAL_CTR )) )
2265 if (!net_spoolss_enumprinterdataex(pipe_hnd, mem_ctx, 0,
2331 value.data_p = TALLOC_MEMDUP(mem_ctx, data.buffer, value.size);
2340 if (!net_spoolss_setprinterdataex(pipe_hnd_dst, mem_ctx, &hnd_dst,
2350 if (!net_spoolss_setprinterdataex(pipe_hnd_dst, mem_ctx, &hnd_dst,
2368 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
2373 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);
2387 rpccli_spoolss_close_printer(pipe_hnd, mem_ctx, &hnd_src);
2390 rpccli_spoolss_close_printer(pipe_hnd_dst, mem_ctx, &hnd_dst);