Author: biurrun Date: Wed Apr 21 12:26:42 2010 New Revision: 2319 Log: Place all #includes at the top of the file. This allows getting rid of a struct forward declaration. Modified: trunk/libpisa/dict.h Modified: trunk/libpisa/dict.h ============================================================================== --- trunk/libpisa/dict.h Wed Apr 21 12:24:55 2010 (r2318) +++ trunk/libpisa/dict.h Wed Apr 21 12:26:42 2010 (r2319) @@ -16,6 +16,12 @@ #include "config.h" +#ifdef CONFIG_PISA_DICT_MAA +# include "dict-maa.h" +#elif defined(CONFIG_PISA_DICT_EINA) +# include "dict-eina.h" +#endif + /* option/flag defitions */ #define PISA_DICT_KEY_32BIT 0 @@ -23,8 +29,6 @@ #define PISA_DICT_KEY_MAC 2 #define PISA_DICT_KEY_IP_HIT 3 -struct pisa_dict; - /** * Create a new dictionary * @param ktype key type specifier @@ -67,10 +71,4 @@ */ static inline int pisa_dict_free(struct pisa_dict *d, int f); -#ifdef CONFIG_PISA_DICT_MAA -# include "dict-maa.h" -#elif defined(CONFIG_PISA_DICT_EINA) -# include "dict-eina.h" -#endif - #endif /* PISA_DICT_H */