| 20 |
#include "bbs.h" |
#include "bbs.h" |
| 21 |
#include <mysql/mysql.h> |
#include <mysql/mysql.h> |
| 22 |
|
|
| 23 |
|
#define BBS_user_limit_per_page 20 |
| 24 |
|
|
| 25 |
struct user_info_t |
struct user_info_t |
| 26 |
{ |
{ |
| 27 |
int32_t uid; |
int32_t uid; |
| 53 |
|
|
| 54 |
extern int user_list_pool_reload(void); |
extern int user_list_pool_reload(void); |
| 55 |
|
|
| 56 |
extern int user_list_try_rd_lock(int wait_sec); |
extern int query_user_list(int page_id, USER_INFO *p_users, int *p_user_count, int *p_page_count); |
| 57 |
extern int user_list_try_rw_lock(int wait_sec); |
|
| 58 |
extern int user_list_rd_unlock(void); |
extern int query_user_info(int32_t uid, USER_INFO *p_user); |
|
extern int user_list_rw_unlock(void); |
|
|
extern int user_list_rd_lock(void); |
|
|
extern int user_list_rw_lock(void); |
|
| 59 |
|
|
| 60 |
#endif //_USER_LIST_H_ |
#endif //_USER_LIST_H_ |