]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Added job priority enum names
authorMartin Willi <martin@revosec.ch>
Mon, 2 May 2011 09:53:25 +0000 (11:53 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 16 May 2011 13:24:13 +0000 (15:24 +0200)
src/libstrongswan/Android.mk
src/libstrongswan/Makefile.am
src/libstrongswan/processing/jobs/job.c [new file with mode: 0644]
src/libstrongswan/processing/jobs/job.h

index 259f0a37523490dd59307cad54ee4a8af30e6a13..451983ea08c6597bd6524be7c84ae3cbb385387f 100644 (file)
@@ -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 \
index b6c70daeaeb0c149b95231bc31538feccda1e015..fa696b214aef3e40ab18a2dd92fd34aad1202207 100644 (file)
@@ -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 \
diff --git a/src/libstrongswan/processing/jobs/job.c b/src/libstrongswan/processing/jobs/job.c
new file mode 100644 (file)
index 0000000..7d16088
--- /dev/null
@@ -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",
+);
index 7b2d487058b976d7c875593fe5d00cab249d10c4..318a4c936fa644648c23fd5ef984238ad04aa79f 100644 (file)
@@ -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.
  */