Added job priority enum names
This commit is contained in:
parent
c73d4f53f5
commit
2959ea6f84
|
@ -51,7 +51,7 @@ database/database.h database/database_factory.h database/database_factory.c \
|
|||
fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
|
||||
eap/eap.h eap/eap.c \
|
||||
plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
|
||||
processing/jobs/job.h \
|
||||
processing/jobs/job.h processing/jobs/job.c \
|
||||
processing/jobs/callback_job.c processing/jobs/callback_job.h \
|
||||
processing/processor.c processing/processor.h \
|
||||
processing/scheduler.c processing/scheduler.h \
|
||||
|
|
|
@ -49,7 +49,7 @@ database/database.h database/database_factory.h database/database_factory.c \
|
|||
fetcher/fetcher.h fetcher/fetcher.c fetcher/fetcher_manager.h fetcher/fetcher_manager.c \
|
||||
eap/eap.h eap/eap.c \
|
||||
plugins/plugin_loader.c plugins/plugin_loader.h plugins/plugin.h \
|
||||
processing/jobs/job.h \
|
||||
processing/jobs/job.h processing/jobs/job.c \
|
||||
processing/jobs/callback_job.c processing/jobs/callback_job.h \
|
||||
processing/processor.c processing/processor.h \
|
||||
processing/scheduler.c processing/scheduler.h \
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* Copyright (C) 2011 Martin Willi
|
||||
* Copyright (C) 2011 revosec AG
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
#include "job.h"
|
||||
|
||||
ENUM(job_priority_names, JOB_PRIO_HIGH, JOB_PRIO_LOW,
|
||||
"high",
|
||||
"medium",
|
||||
"low",
|
||||
);
|
|
@ -40,6 +40,11 @@ enum job_priority_t {
|
|||
JOB_PRIO_MAX
|
||||
};
|
||||
|
||||
/**
|
||||
* Enum names for job priorities
|
||||
*/
|
||||
extern enum_name_t *job_priority_names;
|
||||
|
||||
/**
|
||||
* Job interface as it is stored in the job queue.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue