#include "stdlib.h"
#include "lp.h"
char Lp_Spooldir[] = SPOOLDIR;
char Lp_Admins[] = SPOOLDIR "/admins";
char Lp_FIFO[] = SPOOLDIR "/fifos/FIFO";
char Lp_Requests[] = SPOOLDIR "/requests";
char Lp_Schedlock[] = SPOOLDIR "/SCHEDLOCK";
char Lp_System[] = SPOOLDIR "/system";
char Lp_Temp[] = SPOOLDIR "/temp";
char Lp_Tmp[] = SPOOLDIR "/tmp";
char Lp_Bin[] = LPDIR "/bin";
char Lp_Model[] = LPDIR "/model";
char Lp_Slow_Filter[] = LPDIR "/bin/slow.filter";
char Lp_A_Logs[] = LOGDIR;
char Lp_Logs[] = LOGDIR;
char Lp_ReqLog[] = LOGDIR "/requests";
char Lp_A[] = ETCDIR;
char Lp_Users[] = ETCDIR "/users";
char Lp_A_Classes[] = ETCDIR "/classes";
char Lp_A_Forms[] = ETCDIR "/forms";
char Lp_A_Interfaces[] = ETCDIR "/interfaces";
char Lp_A_Printers[] = ETCDIR "/printers";
char Lp_A_PrintWheels[] = ETCDIR "/pwheels";
char Lp_A_Systems[] = ETCDIR "/systems";
char Lp_A_Filters[] = ETCDIR "/filter.table";
char Lp_Default[] = ETCDIR "/default";
char Lp_A_Faults[] = ETCDIR "/alerts";
#undef getpaths
#undef getadminpaths
void getpaths ( void ) { return; }
void getadminpaths ( char * admin) { return; }
char *
getprinterfile(char *name, char *component)
{
char *path;
if (!name)
return (0);
path = makepath(Lp_A_Printers, name, component, NULL);
return (path);
}
char *
getsystemfile(char *name, char *component)
{
char *path;
if (!name)
return (0);
path = makepath(Lp_A_Systems, name, component, NULL);
return (path);
}
char *
getclassfile(char *name)
{
char *path;
if (!name)
return (0);
path = makepath(Lp_A_Classes, name, NULL);
return (path);
}
char *
getfilterfile(char *table)
{
char *path;
if (!table)
table = FILTERTABLE;
path = makepath(ETCDIR, table, NULL);
return (path);
}
char *
getformfile(char *name, char *component)
{
char *path;
if (!name)
return (0);
path = makepath(Lp_A_Forms, name, component, NULL);
return (path);
}