diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 8 | ||||
-rw-r--r-- | include/pttstruct.h | 10 |
2 files changed, 17 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h index 2828a196..9851a9e0 100644 --- a/include/proto.h +++ b/include/proto.h @@ -523,6 +523,12 @@ int qsort_intcompar(const void *a, const void *b); void *MALLOC(int size); void FREE(void *ptr); #endif +#ifdef OUTTACACHE +int tobind(int port); +int toconnect(char *host, int port); +int toread(int fd, void *buf, int len); +int towrite(int fd, void *buf, int len); +#endif /* syspost */ int post_msg(char* bname, char* title, char *msg, char* author); @@ -559,7 +565,7 @@ int t_talk(); int t_display(); int my_query(char *uident); int logout_friend_online(); -int login_friend_online(); +void login_friend_online(); int isvisible_uid(int tuid); int friend_stat(userinfo_t *me, userinfo_t * ui); int call_in(userinfo_t *uentp, int fri_stat); diff --git a/include/pttstruct.h b/include/pttstruct.h index 9f950c92..5895c31d 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -477,4 +477,14 @@ typedef struct time_t chrono; int recno; } TagItem; + +#ifdef OUTTACACHE +typedef struct { + int index; // 在 SHM->uinfo[index] + int uid; // 避免在 cache server 上不同步, 再確認用. + int friendstat; + int rfriendstat; +} ocfs_t; +#endif + #endif |