/*
- * $Id: print_cups.c,v 1.5 2009-10-29 11:35:58 didg Exp $
+ * $Id: print_cups.c,v 1.6 2010-01-26 20:43:11 didg Exp $
*
* Copyright 2004 Bjoern Fernhomberg.
*
};
/* Local functions */
-static int convert_to_mac_name ( char *encoding, char * inptr, char * outptr, size_t outlen);
+static int convert_to_mac_name ( const char *encoding, char * inptr, char * outptr, size_t outlen);
static size_t to_ascii ( char *inbuf, char **outbuf);
static int cups_mangle_printer_name ( struct printer *pr, struct printer *printers);
static void cups_free_printer ( struct printer *pr);
-char * cups_get_language (void)
+const char * cups_get_language (void)
{
cups_lang_t *language;
* Returns: -1 on failure, length of name on success; outpr contains name in MacRoman
*/
-static int convert_to_mac_name ( char * encoding, char * inptr, char * outptr, size_t outlen)
+static int convert_to_mac_name ( const char * encoding, char * inptr, char * outptr, size_t outlen)
{
char *outbuf;
char *soptr;
int cups_print_job ( char *, char *, char *, char *, char *);\r
struct printer * cups_autoadd_printers ( struct printer *, struct printer *);\r
int cups_check_printer ( struct printer *, struct printer *, int);\r
-char *cups_get_language ( void );\r
+const char *cups_get_language ( void );\r
#endif /* HAVE_CUPS */\r
#endif /* PAPD_CUPS_H */\r
extern size_t utf8_precompose ( char *, size_t, char *, size_t);
extern size_t utf8_decompose ( char *, size_t, char *, size_t);
-extern charset_t add_charset (char* name);
+extern charset_t add_charset (const char* name);
#endif /* _ATALK_UNICODE_H */
}
}
-charset_t add_charset(char* name)
+charset_t add_charset(const char* name)
{
static charset_t max_charset_t = NUM_CHARSETS-1;
charset_t cur_charset_t = max_charset_t+1;