gmio/src/c/task_control.h

22 lines
536 B
C
Raw Normal View History

#ifndef FOUG_C_TASK_CONTROL_H
#define FOUG_C_TASK_CONTROL_H
2013-01-16 00:56:24 +08:00
#include "global.h"
#include "memory.h"
/* foug_task_control */
typedef struct foug_task_control foug_task_control_t;
struct foug_task_control
{
void* cookie;
2013-03-05 08:04:29 +08:00
foug_bool_t (*handle_progress_func)(foug_task_control_t*, uint8_t);
};
2013-02-21 21:51:29 +08:00
2013-03-05 08:04:29 +08:00
FOUG_LIB_EXPORT
foug_bool_t foug_task_control_handle_progress(foug_task_control_t* ctrl, uint8_t progress_pc);
2013-03-05 08:04:29 +08:00
FOUG_LIB_EXPORT
uint8_t foug_percentage(size_t range_min, size_t range_max, size_t value);
2013-02-21 21:51:29 +08:00
#endif /* FOUG_C_TASK_CONTROL_H */