- added mappings
authorMartin Willi <martin@strongswan.org>
Wed, 16 Nov 2005 12:31:28 +0000 (12:31 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 16 Nov 2005 12:31:28 +0000 (12:31 -0000)
Source/charon/job.c
Source/charon/job.h

index 9740de3..42f4c62 100644 (file)
 
 #include "utils/allocator.h"
 
+mapping_t job_type_m[] = {
+       {INCOMING_PACKET, "INCOMING_PACKET"},
+       {RETRANSMIT_REQUEST, "RETRANSMIT_REQUEST"},
+       {INITIATE_IKE_SA, "INITIATE_IKE_SA"},
+       {MAPPING_END, NULL}
+};
+
  /**
  * @brief implements function destroy of job_t
  */
index 6063b44..a2c8300 100644 (file)
 #define JOB_H_
 
 #include "types.h"
+#include "definitions.h"
 
 /**
  * Type of Jobs in Job-Queue
  */
 typedef enum job_type_e job_type_t;
 
-enum job_type_e{
+enum job_type_e {
        /** 
         * process an incoming IKEv2-Message
         */
@@ -42,10 +43,11 @@ enum job_type_e{
        /** 
         * establish an ike sa as initiator
         */
-       ESTABLISH_IKE_SA
+       INITIATE_IKE_SA
        /* more job types have to be inserted here */
 };
 
+extern mapping_t job_type_m[];
 
 /**
  * @brief Job as it is stored in the job queue