mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
api: use microseconds instead of milliseconds in functions util_timeval_diff and util_timeval_add
This commit is contained in:
@@ -57,7 +57,7 @@ struct timeval;
|
||||
* please change the date with current one; for a second change at same
|
||||
* date, increment the 01, otherwise please keep 01.
|
||||
*/
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20140802-01"
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20140829-01"
|
||||
|
||||
/* macros for defining plugin infos */
|
||||
#define WEECHAT_PLUGIN_NAME(__name) \
|
||||
@@ -304,8 +304,8 @@ struct t_weechat_plugin
|
||||
|
||||
/* util */
|
||||
int (*util_timeval_cmp) (struct timeval *tv1, struct timeval *tv2);
|
||||
long (*util_timeval_diff) (struct timeval *tv1, struct timeval *tv2);
|
||||
void (*util_timeval_add) (struct timeval *tv, long interval);
|
||||
long long (*util_timeval_diff) (struct timeval *tv1, struct timeval *tv2);
|
||||
void (*util_timeval_add) (struct timeval *tv, long long interval);
|
||||
char *(*util_get_time_string) (const time_t *date);
|
||||
int (*util_version_number) (const char *version);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user