FreeRDP
printer_cups.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include <time.h>
#include <cups/cups.h>
#include <winpr/crt.h>
#include <freerdp/channels/rdpdr.h>
#include "printer_main.h"
#include "printer_cups.h"

Functions

static void printer_cups_get_printjob_name (char *buf, int size)
 
static UINT printer_cups_write_printjob (rdpPrintJob *printjob, BYTE *data, int size)
 
static void printer_cups_close_printjob (rdpPrintJob *printjob)
 
static rdpPrintJob * printer_cups_create_printjob (rdpPrinter *printer, UINT32 id)
 
static rdpPrintJob * printer_cups_find_printjob (rdpPrinter *printer, UINT32 id)
 
static void printer_cups_free_printer (rdpPrinter *printer)
 
static rdpPrinter * printer_cups_new_printer (rdpCupsPrinterDriver *cups_driver, const char *name, const char *driverName, BOOL is_default)
 
static rdpPrinter ** printer_cups_enum_printers (rdpPrinterDriver *driver)
 
static rdpPrinter * printer_cups_get_printer (rdpPrinterDriver *driver, const char *name, const char *driverName)
 
rdpPrinterDriver * printer_cups_get_driver (void)
 

Variables

static rdpCupsPrinterDriver * cups_driver = NULL
 

Function Documentation

static void printer_cups_close_printjob ( rdpPrintJob *  printjob)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrintJob* printer_cups_create_printjob ( rdpPrinter *  printer,
UINT32  id 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrinter** printer_cups_enum_printers ( rdpPrinterDriver *  driver)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrintJob* printer_cups_find_printjob ( rdpPrinter *  printer,
UINT32  id 
)
static

Here is the caller graph for this function:

static void printer_cups_free_printer ( rdpPrinter *  printer)
static

Here is the caller graph for this function:

rdpPrinterDriver* printer_cups_get_driver ( void  )

FreeRDP: A Remote Desktop Protocol Implementation Print Virtual Channel - CUPS driver

Copyright 2010-2011 Vic Lee

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:

Here is the caller graph for this function:

static rdpPrinter* printer_cups_get_printer ( rdpPrinterDriver *  driver,
const char *  name,
const char *  driverName 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void printer_cups_get_printjob_name ( char *  buf,
int  size 
)
static

Here is the caller graph for this function:

static rdpPrinter* printer_cups_new_printer ( rdpCupsPrinterDriver *  cups_driver,
const char *  name,
const char *  driverName,
BOOL  is_default 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT printer_cups_write_printjob ( rdpPrintJob *  printjob,
BYTE data,
int  size 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the caller graph for this function:

Variable Documentation

rdpCupsPrinterDriver* cups_driver = NULL
static