Loading include/norns/norns_error.h +2 −0 Original line number Diff line number Diff line Loading @@ -63,11 +63,13 @@ extern "C" { /* errors about namespaces */ #define NORNS_ENAMESPACEEXISTS -30 #define NORNS_ENOSUCHNAMESPACE -31 #define NORNS_ENAMESPACENOTEMPTY -32 /* errors about tasks */ #define NORNS_ETASKEXISTS -40 #define NORNS_ENOSUCHTASK -41 #define NORNS_ETOOMANYTASKS -42 #define NORNS_ETASKSPENDING -43 /* task status */ #define NORNS_EPENDING -100 Loading include/norns/nornsctl_types.h +4 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,10 @@ typedef uint32_t nornsctl_backend_flags_t; /* Administrative command IDs valid for nornsctl_send_command() */ typedef enum { NORNSCTL_COMMAND_PING = 1000, NORNSCTL_COMMAND_PAUSE_ACCEPT, NORNSCTL_COMMAND_RESUME_ACCEPT, NORNSCTL_CMD_PING = 1000, NORNSCTL_CMD_PAUSE_LISTEN, NORNSCTL_CMD_RESUME_LISTEN, NORNSCTL_CMD_SHUTDOWN, } nornsctl_command_t; Loading lib/communication.c +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ send_control_command_request(nornsctl_command_t cmd, void* args) { return NORNS_ESNAFU; } return NORNS_SUCCESS; return resp.r_error_code; } Loading lib/errors.c +2 −0 Original line number Diff line number Diff line Loading @@ -53,11 +53,13 @@ const char* const norns_errlist[NORNS_ERRMAX + 1] = { /* backend errors */ [ERR_REMAP(NORNS_ENAMESPACEEXISTS)] = "Namespace already exists", [ERR_REMAP(NORNS_ENOSUCHNAMESPACE)] = "Namespace does not exist", [ERR_REMAP(NORNS_ENAMESPACENOTEMPTY)] = "Namespace is not empty", /* task errors */ [ERR_REMAP(NORNS_ETASKEXISTS)] = "Task already exists", [ERR_REMAP(NORNS_ENOSUCHTASK)] = "Task does not exist", [ERR_REMAP(NORNS_ETOOMANYTASKS)] = "Too many pending tasks", [ERR_REMAP(NORNS_ETASKSPENDING)] = "There are still pending tasks", /* misc errors */ [ERR_REMAP(NORNS_ENOTSUPPORTED)] = "Not supported", Loading src/Makefile.am +13 −12 Original line number Diff line number Diff line Loading @@ -223,6 +223,7 @@ config/defaults.cpp: Makefile echo ""; \ \ echo " const bool dry_run = false;"; \ echo " const uint32_t dry_run_duration = 100;"; \ \ echo " const char* global_socket = \"$(localstatedir)/global.socket.2\";"; \ echo " const char* control_socket = \"$(localstatedir)/control.socket.2\";"; \ Loading Loading
include/norns/norns_error.h +2 −0 Original line number Diff line number Diff line Loading @@ -63,11 +63,13 @@ extern "C" { /* errors about namespaces */ #define NORNS_ENAMESPACEEXISTS -30 #define NORNS_ENOSUCHNAMESPACE -31 #define NORNS_ENAMESPACENOTEMPTY -32 /* errors about tasks */ #define NORNS_ETASKEXISTS -40 #define NORNS_ENOSUCHTASK -41 #define NORNS_ETOOMANYTASKS -42 #define NORNS_ETASKSPENDING -43 /* task status */ #define NORNS_EPENDING -100 Loading
include/norns/nornsctl_types.h +4 −3 Original line number Diff line number Diff line Loading @@ -40,9 +40,10 @@ typedef uint32_t nornsctl_backend_flags_t; /* Administrative command IDs valid for nornsctl_send_command() */ typedef enum { NORNSCTL_COMMAND_PING = 1000, NORNSCTL_COMMAND_PAUSE_ACCEPT, NORNSCTL_COMMAND_RESUME_ACCEPT, NORNSCTL_CMD_PING = 1000, NORNSCTL_CMD_PAUSE_LISTEN, NORNSCTL_CMD_RESUME_LISTEN, NORNSCTL_CMD_SHUTDOWN, } nornsctl_command_t; Loading
lib/communication.c +1 −1 Original line number Diff line number Diff line Loading @@ -98,7 +98,7 @@ send_control_command_request(nornsctl_command_t cmd, void* args) { return NORNS_ESNAFU; } return NORNS_SUCCESS; return resp.r_error_code; } Loading
lib/errors.c +2 −0 Original line number Diff line number Diff line Loading @@ -53,11 +53,13 @@ const char* const norns_errlist[NORNS_ERRMAX + 1] = { /* backend errors */ [ERR_REMAP(NORNS_ENAMESPACEEXISTS)] = "Namespace already exists", [ERR_REMAP(NORNS_ENOSUCHNAMESPACE)] = "Namespace does not exist", [ERR_REMAP(NORNS_ENAMESPACENOTEMPTY)] = "Namespace is not empty", /* task errors */ [ERR_REMAP(NORNS_ETASKEXISTS)] = "Task already exists", [ERR_REMAP(NORNS_ENOSUCHTASK)] = "Task does not exist", [ERR_REMAP(NORNS_ETOOMANYTASKS)] = "Too many pending tasks", [ERR_REMAP(NORNS_ETASKSPENDING)] = "There are still pending tasks", /* misc errors */ [ERR_REMAP(NORNS_ENOTSUPPORTED)] = "Not supported", Loading
src/Makefile.am +13 −12 Original line number Diff line number Diff line Loading @@ -223,6 +223,7 @@ config/defaults.cpp: Makefile echo ""; \ \ echo " const bool dry_run = false;"; \ echo " const uint32_t dry_run_duration = 100;"; \ \ echo " const char* global_socket = \"$(localstatedir)/global.socket.2\";"; \ echo " const char* control_socket = \"$(localstatedir)/control.socket.2\";"; \ Loading