printer.c revision 4b9d6701570cb98fd36e209314239d104ec584d3
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
Copyright (C) Matthew Chapman 1999-2007
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/*
* Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the General Public License version 2 (GPLv2) at this time for any software where
* a choice of GPL license versions is made available with the language indicating
* that GPLv2 or any later version may be used, or where a choice of which version
* of the GPL is applied is otherwise unspecified.
*/
#include "rdesktop.h"
extern RDPDR_DEVICE g_rdpdr_device[];
static PRINTER *
{
int index;
{
}
return NULL;
}
int
{
char *pos2;
int count = 0;
int already = 0;
/* we need to know how many printers we've already set up
supplied from other -r flags than this one. */
{
already++;
count++;
}
count = 0;
if (*optarg == ':')
optarg++;
{
/* first printer is set as default printer */
else
if (*optarg == (char) 0x00)
else
{
}
else
{
}
count++;
(*id)++;
}
return count;
}
static RD_NTSTATUS
printer_create(uint32 device_id, uint32 access, uint32 share_mode, uint32 disposition, uint32 flags,
{
char cmd[256];
/* default printer name use default printer queue as well in unix */
{
}
else
{
}
return RD_STATUS_SUCCESS;
}
static RD_NTSTATUS
{
int i = get_device_index(handle);
if (i >= 0)
{
if (pprinter_data)
g_rdpdr_device[i].handle = 0;
}
return RD_STATUS_SUCCESS;
}
static RD_NTSTATUS
{
{
*result = 0;
return RD_STATUS_INVALID_HANDLE;
}
return RD_STATUS_SUCCESS;
}
NULL, /* read */
NULL /* device_control */
};