Move function declarations to fix compiler warning:
util/timer.c:81: warning: conflicting types for ‘stop_multi_timeout’ util/timer.c:61: note: previous implicit declaration of ‘stop_multi_timeout’ was here git-svn-id: http://tint2.googlecode.com/svn/trunk@441 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
parent
b99b5c6b8a
commit
9bc512b703
1 changed files with 15 additions and 16 deletions
|
@ -46,6 +46,21 @@ struct _timeout {
|
|||
multi_timeout* multi_timeout;
|
||||
};
|
||||
|
||||
void add_timeout_intern(int value_msec, int interval_msec, void(*_callback)(void*), void* arg, timeout* t);
|
||||
gint compare_timeouts(gconstpointer t1, gconstpointer t2);
|
||||
gint compare_timespecs(const struct timespec* t1, const struct timespec* t2);
|
||||
int timespec_subtract(struct timespec* result, struct timespec* x, struct timespec* y);
|
||||
struct timespec add_msec_to_timespec(struct timespec ts, int msec);
|
||||
|
||||
|
||||
int align_with_existing_timeouts(timeout* t);
|
||||
void create_multi_timeout(timeout* t1, timeout* t2);
|
||||
void append_multi_timeout(timeout* t1, timeout* t2);
|
||||
int calc_multi_timeout_interval(multi_timeout_handler* mth);
|
||||
void update_multi_timeout_values(multi_timeout_handler* mth);
|
||||
void callback_multi_timeout(void* mth);
|
||||
void remove_from_multi_timeout(timeout* t);
|
||||
void stop_multi_timeout(timeout* t);
|
||||
|
||||
void default_timeout()
|
||||
{
|
||||
|
@ -64,22 +79,6 @@ void cleanup_timeout()
|
|||
}
|
||||
}
|
||||
|
||||
void add_timeout_intern(int value_msec, int interval_msec, void(*_callback)(void*), void* arg, timeout* t);
|
||||
gint compare_timeouts(gconstpointer t1, gconstpointer t2);
|
||||
gint compare_timespecs(const struct timespec* t1, const struct timespec* t2);
|
||||
int timespec_subtract(struct timespec* result, struct timespec* x, struct timespec* y);
|
||||
struct timespec add_msec_to_timespec(struct timespec ts, int msec);
|
||||
|
||||
|
||||
int align_with_existing_timeouts(timeout* t);
|
||||
void create_multi_timeout(timeout* t1, timeout* t2);
|
||||
void append_multi_timeout(timeout* t1, timeout* t2);
|
||||
int calc_multi_timeout_interval(multi_timeout_handler* mth);
|
||||
void update_multi_timeout_values(multi_timeout_handler* mth);
|
||||
void callback_multi_timeout(void* mth);
|
||||
void remove_from_multi_timeout(timeout* t);
|
||||
void stop_multi_timeout(timeout* t);
|
||||
|
||||
/** Implementation notes for timeouts: The timeouts are kept in a GSList sorted by their
|
||||
* expiration time.
|
||||
* That means that update_next_timeout() only have to consider the first timeout in the list,
|
||||
|
|
Loading…
Reference in a new issue