-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Baptiste Jonglez
committed
Feb 27, 2020
1 parent
c58e158
commit 96f493c
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// File created from src/messages.mes on Thu Feb 27 2020 11:21 | ||
|
||
#include <cstddef> | ||
#include <log/message_types.h> | ||
#include <log/message_initializer.h> | ||
|
||
extern const isc::log::MessageID RUNSCRIPT_EXEC_FAILED = "RUNSCRIPT_EXEC_FAILED"; | ||
extern const isc::log::MessageID RUNSCRIPT_FORK_FAILED = "RUNSCRIPT_FORK_FAILED"; | ||
extern const isc::log::MessageID RUNSCRIPT_MISSING_PARAM = "RUNSCRIPT_MISSING_PARAM"; | ||
extern const isc::log::MessageID RUNSCRIPT_MISTYPED_PARAM = "RUNSCRIPT_MISTYPED_PARAM"; | ||
extern const isc::log::MessageID RUNSCRIPT_WAITING_SCRIPT = "RUNSCRIPT_WAITING_SCRIPT"; | ||
extern const isc::log::MessageID RUNSCRIPT_WAITPID_FAILED = "RUNSCRIPT_WAITPID_FAILED"; | ||
|
||
namespace { | ||
|
||
const char* values[] = { | ||
"RUNSCRIPT_EXEC_FAILED", "exec() failed, please check that the script exists and is executable. Error: %1", | ||
"RUNSCRIPT_FORK_FAILED", "fork() failed with error: %1", | ||
"RUNSCRIPT_MISSING_PARAM", "required parameter \"%1\" missing in configuration", | ||
"RUNSCRIPT_MISTYPED_PARAM", "parameter \"%1\" in configuration has wrong type", | ||
"RUNSCRIPT_WAITING_SCRIPT", "the user-defined script is running, and the main process is currently waiting", | ||
"RUNSCRIPT_WAITPID_FAILED", "waitpid() failed with error: %1", | ||
NULL | ||
}; | ||
|
||
const isc::log::MessageInitializer initializer(values); | ||
|
||
} // Anonymous namespace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// File created from src/messages.mes on Thu Feb 27 2020 11:21 | ||
|
||
#ifndef MESSAGES_H | ||
#define MESSAGES_H | ||
|
||
#include <log/message_types.h> | ||
|
||
extern const isc::log::MessageID RUNSCRIPT_EXEC_FAILED; | ||
extern const isc::log::MessageID RUNSCRIPT_FORK_FAILED; | ||
extern const isc::log::MessageID RUNSCRIPT_MISSING_PARAM; | ||
extern const isc::log::MessageID RUNSCRIPT_MISTYPED_PARAM; | ||
extern const isc::log::MessageID RUNSCRIPT_WAITING_SCRIPT; | ||
extern const isc::log::MessageID RUNSCRIPT_WAITPID_FAILED; | ||
|
||
#endif // MESSAGES_H |