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 259f0a3..451983e 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 b6c70da..fa696b2 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 7b2d487..318a4c9 100644 (file)
@@ -41,6 +41,11 @@ enum job_priority_t {
 };
 
 /**
+ * Enum names for job priorities
+ */
+extern enum_name_t *job_priority_names;
+
+/**
  * Job interface as it is stored in the job queue.
  */
 struct job_t {