%% options copyright owner = Dirk Krause copyright year = 2012-2014 license = bsd %% module #include "printqd.h" $!trace-include #if DK3_CHAR_SIZE == 1 #if DK3_HAVE_STRUCT_SOCKADDR_UN #if DK3_HAVE_SIGSET #if DK3_HAVE_GETPWNAM && DK3_HAVE_GETGRNAM /** Default texts to use if localized message texts are not found. */ dkChar const * const pqdstr_msg[] = { $!string-table file=printqd.str # # 0 The string table name. # printqd.str # # 1,2 Request received: # REQUEST:\n # # 3,4 Response: # RESPONSE:\n # # 5,6,7 # Limit=%lu used=%lu account=%lu job=%lu => used=%lu account=%lu RESULT:\n # # 8,9 ERROR: Database name too long! # Database name too long:\n" "! # # 10 # Failed to switch group to non-root! # # 11 # Failed to switch user to non-root! # # 12,13 # System configuration directory name too long:\n" "! # # 14,15 ERROR: Failed to change owner for directory! # Failed to change owner for directory: " "! # # 16,17 ERROR: Failed to create directory! # Failed to create directory: " "! # # 18 Message: Exiting printqd normally. # Exiting printqd normally (terminated by signal). # # 19 ERROR: Exiting due to errors. # Exiting due to errors! # # 20 # Signal setup failed! $!end }; dkChar const * const * pqdstr_get_messages(dk3_app_t *app) { dkChar const * const *back = NULL; if(app) { back = dk3app_messages(app, pqdstr_msg[0], pqdstr_msg); } return back; } #endif #endif #endif #endif