]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
starter: Move kw_entry_t definition
authorTobias Brunner <tobias@strongswan.org>
Wed, 21 May 2014 12:36:46 +0000 (14:36 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 19 Jun 2014 12:00:49 +0000 (14:00 +0200)
src/starter/ipsec-parser.h
src/starter/keywords.h

index 1c6cf20eff859e627958abd33c18225bc9c93713..fb64bfa2a7b3ea141cfec17f3096d4d5eb29eacd 100644 (file)
 
 #include "keywords.h"
 
-typedef struct kw_entry kw_entry_t;
-
-struct kw_entry {
-       char *name;
-       kw_token_t token;
-};
-
 typedef struct kw_list kw_list_t;
 
 struct kw_list {
index 5b6b28bf85463858134531f096bac02e4f2807d2..94af493f8fee66cf9418b5f8e85d5badbea9f958 100644 (file)
 #ifndef _KEYWORDS_H_
 #define _KEYWORDS_H_
 
-typedef enum {
+typedef enum kw_token_t kw_token_t;
+typedef struct kw_entry_t kw_entry_t;
+
+enum kw_token_t {
        /* config setup keywords */
        KW_CHARONDEBUG,
        KW_UNIQUEIDS,
@@ -185,6 +188,11 @@ typedef enum {
        KW_ALSO,
        KW_AUTO,
 
-} kw_token_t;
+};
+
+struct kw_entry_t {
+       char *name;
+       kw_token_t token;
+};
 
 #endif /* _KEYWORDS_H_ */