diff options
Diffstat (limited to 'hugin.h')
-rw-r--r-- | hugin.h | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -28,14 +28,19 @@ #ifndef __HUGIN_HUGIN_H__ #define __HUGIN_HUGIN_H__ +typedef enum { + HUG_STATUS_OK = 0, + HUG_STATUS_UNKNOWN_OPTION, + HUG_STATUS_ERROR, +} hug_status_t; + #ifdef DISABLE_HUGIN #define ERR(ch, fmt...) #define WARN(ch, fmt...) #define INFO(ch, fmt...) #define DEBUG(ch, fmt...) -typedef int hug_status_t; -#define hug_init(...) 0 +#define hug_init(...) HUG_STATUS_OK #define hug_close() #else/*DISABLE_HUGIN*/ @@ -122,12 +127,6 @@ enum HUG_OPTION { #endif }; -typedef enum { - HUG_STATUS_OK = 0, - HUG_STATUS_UNKNOWN_OPTION, - HUG_STATUS_ERROR, -} hug_status_t; - /** * @param flags combination of HUG_FLAG values * @param ... list of options (type-value pairs, |