/[LeafOK_CVS]/lbbs/include/user_list.h
ViewVC logotype

Diff of /lbbs/include/user_list.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 by sysadm, Wed Oct 22 10:38:23 2025 UTC Revision 1.10 by sysadm, Wed Oct 22 16:12:50 2025 UTC
# Line 23  Line 23 
23  #define BBS_user_limit_per_page 20  #define BBS_user_limit_per_page 20
24  #define BBS_session_id_length 32  #define BBS_session_id_length 32
25    
26    #define BBS_user_intro_avg_len 256
27    
28  struct user_info_t  struct user_info_t
29  {  {
30          int32_t id;          int32_t id;
# Line 33  struct user_info_t Line 35  struct user_info_t
35          int8_t gender_pub;          int8_t gender_pub;
36          int32_t life;          int32_t life;
37          int32_t exp;          int32_t exp;
38            int32_t visit_count;
39          time_t signup_dt;          time_t signup_dt;
40          time_t last_login_dt;          time_t last_login_dt;
41          time_t birthday;          time_t birthday;
42            const char *intro;
43  };  };
44  typedef struct user_info_t USER_INFO;  typedef struct user_info_t USER_INFO;
45    
# Line 51  struct user_list_t Line 55  struct user_list_t
55          USER_INFO users[BBS_max_user_count];          USER_INFO users[BBS_max_user_count];
56          USER_INFO_INDEX_UID index_uid[BBS_max_user_count];          USER_INFO_INDEX_UID index_uid[BBS_max_user_count];
57          int32_t user_count;          int32_t user_count;
58            char user_intro_buf[BBS_user_intro_avg_len * BBS_max_user_count];
59  };  };
60  typedef struct user_list_t USER_LIST;  typedef struct user_list_t USER_LIST;
61    
# Line 70  typedef struct user_online_info_t USER_O Line 75  typedef struct user_online_info_t USER_O
75  struct user_online_list_t  struct user_online_list_t
76  {  {
77          USER_ONLINE_INFO users[BBS_max_user_online_count];          USER_ONLINE_INFO users[BBS_max_user_online_count];
78          USER_INFO_INDEX_UID index_uid[BBS_max_user_count];          USER_INFO_INDEX_UID index_uid[BBS_max_user_online_count];
79          int32_t user_count;          int32_t user_count;
80  };  };
81  typedef struct user_online_list_t USER_ONLINE_LIST;  typedef struct user_online_list_t USER_ONLINE_LIST;
# Line 87  extern int query_user_online_list(int pa Line 92  extern int query_user_online_list(int pa
92    
93  extern int query_user_info(int32_t id, USER_INFO *p_user);  extern int query_user_info(int32_t id, USER_INFO *p_user);
94  extern int query_user_info_by_uid(int32_t uid, USER_INFO *p_user);  extern int query_user_info_by_uid(int32_t uid, USER_INFO *p_user);
95    
96  extern int query_user_online_info(int32_t id, USER_ONLINE_INFO *p_user);  extern int query_user_online_info(int32_t id, USER_ONLINE_INFO *p_user);
97    extern int query_user_online_info_by_uid(int32_t uid, USER_ONLINE_INFO *p_users, int *p_user_cnt, int start_id);
98    
99  #endif //_USER_LIST_H_  #endif //_USER_LIST_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1