CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Structures | Macros | Functions
libcapsppd-api.h File Reference

API declaration to read-in external PPD files and handle PPD file creation on-the-fly. More...

Go to the source code of this file.

Data Structures

struct  caps_ppd_option
 Structure to keep the information read-in from an external PPD files. More...
 
struct  caps_ppd_device_info
 Some printer device product specific information to be used inside the PPD. More...
 

Macros

#define LIBCAPSPPD_MAJOR   1
 
#define LIBCAPSPPD_MINOR   3
 
#define LIBCAPSPPD_MICRO   0
 

Functions

void caps_libppd_version_get (unsigned *major, unsigned *minor, unsigned *micro)
 
void caps_libppd_init (void)
 
struct caps_ppd_options_tablecaps_ppd_options_table_create (void)
 
void caps_ppd_options_table_clean_up (struct caps_ppd_options_table *pot)
 
int caps_ppd_options_table_file_read (struct caps_ppd_options_table *pot, const char *ppd_file_name)
 
struct caps_ppd_optioncaps_ppd_option_get (const struct caps_ppd_options_table *pot, const char *keyword)
 
struct caps_ppd_optioncaps_ppd_option_with_name_get (const struct caps_ppd_options_table *pot, const char *keyword, const char *name)
 
void caps_ppd_option_add (struct caps_ppd_options_table *pot, const char *keyword, const char *name, const char *description, const char *value)
 
struct caps_ppd_options_tablecaps_ppd_options_table_duplicate (const struct caps_ppd_options_table *src)
 
const struct caps_ppd_optioncaps_ppd_options_table_base_get (const struct caps_ppd_options_table *pot)
 
size_t caps_ppd_options_table_element_count_get (const struct caps_ppd_options_table *pot)
 
void caps_ppd_info_generate (struct caps_ppd_options_table *db, FILE *ppd_file, const struct caps_ppd_device_info *prod_info, const struct caps_ppd_base *cpb)
 
int caps_ppd_paper_format_validate (const char *paper_name)
 
struct caps_rect caps_ppd_paper_format_size_get (const char *paper_name)
 
const char * caps_ppd_paper_format_name_get (const struct caps_rect *size)
 
const char * caps_ppd_paper_default_format_get (void)
 

Detailed Description

Author
Jürgen Borleis
Warning
Use as experimental