diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-24 20:14:54 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-11-24 20:14:54 +0100 |
commit | af19cbb098d6c8c1bea311b628ccb5f1ce897828 (patch) | |
tree | fc71001f4c1cc6aea623a04580c32785e3e9d916 /pg.h | |
parent | 58c8a81222b9f4ad96255f94d2173dd17112d804 (diff) |
Store last active time.
Diffstat (limited to 'pg.h')
-rw-r--r-- | pg.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,6 +1,8 @@ #ifndef PG_H #define PG_H +#include <time.h> + #include "channel.h" #include "user.h" #include "word.h" @@ -11,8 +13,8 @@ int pg_init(); int pg_upgrade(); void pg_dropall(); int pg_channel_get(struct channel_t *channel); -long pg_channel_file_get(int channel_id, struct channel_file_t *file); -void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos); +void pg_channel_file_get(int channel_id, struct channel_file_t *file, long *pos, time_t *time); +void pg_channel_file_set(int channel_id, struct channel_file_t *file, long pos, time_t time); void pg_user_set(int channel_id, struct user_t *user); void pg_users_get(int channel_id); void pg_word_set(int channel, struct word_t *word); |