Skip to content

Commit

Permalink
Release 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptiste Jonglez committed Feb 27, 2020
1 parent c58e158 commit 96f493c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
Empty file added s-messages
Empty file.
29 changes: 29 additions & 0 deletions src/messages.cc
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

15 changes: 15 additions & 0 deletions src/messages.h
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

0 comments on commit 96f493c

Please sign in to comment.