/* entry (if/when the 'available' keyword is implemented!). */
/* the printer name is set to the service name. */
- lpcfg_string_set(service, &service->szPrintername, pszPrintername);
+ lpcfg_string_set(service, &service->_printername, pszPrintername);
lpcfg_string_set(service, &service->comment, comment);
service->browseable = default_service->browseable;
/* Printers cannot be read_only. */
const char *lpcfg_printername(struct loadparm_service *service, struct loadparm_service *sDefault)
{
const char *ret;
- ret = lp_string((const char *)((service != NULL && service->szPrintername != NULL) ?
- service->szPrintername : sDefault->szPrintername));
+ ret = lp_string((const char *)((service != NULL && service->_printername != NULL) ?
+ service->_printername : sDefault->_printername));
if (ret == NULL || (ret != NULL && *ret == '\0'))
ret = lpcfg_servicename(service);
FN_LOCAL_STRING(lpresumecommand, lpresumecommand)
FN_LOCAL_STRING(queuepausecommand, queuepausecommand)
FN_LOCAL_STRING(queueresumecommand, queueresumecommand)
-FN_LOCAL_STRING(_printername, szPrintername)
+FN_LOCAL_STRING(_printername, _printername)
FN_LOCAL_CONST_STRING(printjob_username, printjob_username)
FN_LOCAL_STRING(magicscript, magicscript)
FN_LOCAL_STRING(magicoutput, magicoutput)
.label = "printer name",
.type = P_STRING,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(szPrintername),
+ .offset = LOCAL_VAR(_printername),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_ADVANCED | FLAG_PRINT,
.label = "printer",
.type = P_STRING,
.p_class = P_LOCAL,
- .offset = LOCAL_VAR(szPrintername),
+ .offset = LOCAL_VAR(_printername),
.special = NULL,
.enum_list = NULL,
.flags = FLAG_HIDE,
.lpresumecommand = NULL,
.queuepausecommand = NULL,
.queueresumecommand = NULL,
- .szPrintername = NULL,
+ ._printername = NULL,
.printjob_username = NULL,
.dontdescend = NULL,
.hostsallow = NULL,
/* entry (if/when the 'available' keyword is implemented!). */
/* the printer name is set to the service name. */
- string_set(&ServicePtrs[i]->szPrintername, pszPrintername);
+ string_set(&ServicePtrs[i]->_printername, pszPrintername);
string_set(&ServicePtrs[i]->comment, comment);
/* set the browseable flag from the gloabl default */