Little fixes

This commit is contained in:
vraatikka
2013-06-27 23:33:20 +03:00
parent 33632968a8
commit 1b764eba74
3 changed files with 15 additions and 1 deletions

View File

@ -41,6 +41,8 @@
# define FALSE false
#elif !defined(TRUE) && !defined(FALSE)
typedef enum {FALSE=0, TRUE} bool;
#else
#define bool int
#endif
#endif /* SKYGW_TYPES_H */

View File

@ -107,6 +107,9 @@ skygw_thread_t* skygw_thread_init(
void skygw_thread_done(skygw_thread_t* th);
int skygw_thread_start(skygw_thread_t* thr);
skygw_thr_state_t skygw_thread_get_state(skygw_thread_t* thr);
EXTERN_C_BLOCK_BEGIN
void skygw_thread_set_state(
skygw_thread_t* thr,
skygw_thr_state_t state);
@ -116,6 +119,9 @@ bool skygw_thread_set_exitflag(
skygw_thread_t* thr,
skygw_message_t* sendmes,
skygw_message_t* recmes);
EXTERN_C_BLOCK_END
/** Skygw thread routines */
/** Skygw file routines */