aboutsummaryrefslogtreecommitdiffstats
path: root/toj/center/src/center.h
diff options
context:
space:
mode:
Diffstat (limited to 'toj/center/src/center.h')
-rwxr-xr-x[-rw-r--r--]toj/center/src/center.h34
1 files changed, 14 insertions, 20 deletions
diff --git a/toj/center/src/center.h b/toj/center/src/center.h
index a143df0..2625ab4 100644..100755
--- a/toj/center/src/center.h
+++ b/toj/center/src/center.h
@@ -1,3 +1,6 @@
+#define CENTER_CACHESTATE_READY 0
+#define CENTER_CACHESTATE_UPDATE 1
+
class center_jmod_info{
public:
char name[NAME_MAX + 1];
@@ -6,6 +9,10 @@ public:
void *manage_sub_fn;
void *manage_res_fn;
+ int ref_count;
+ int state;
+ int update_cacheid;
+
center_jmod_info(char *name,int cacheid){
this->name[0] = '\0';
strncat(this->name,name,sizeof(this->name));
@@ -23,31 +30,18 @@ public:
center_jmod_info *jmod_info;
int lang_flag;
+ int ref_count;
+ int state;
+ int update_cacheid;
+
center_pro_info(int proid,int cacheid,center_jmod_info *jmod_info,int lang_flag){
this->proid = proid;
this->cacheid = cacheid;
this->jmod_info = jmod_info;
this->lang_flag = lang_flag;
- }
-};
-class center_submit_info{
-public:
- int subid;
- int uid;
- center_jmod_info *jmod_info;
- center_pro_info *pro_info;
- int lang;
- char *param;
- void *jmod_manage_data;
-
- center_submit_info(int subid,int uid,center_jmod_info *jmod_info,center_pro_info *pro_info,int lang,char *param){
- this->subid = subid;
- this->uid = uid;
- this->jmod_info = jmod_info;
- this->pro_info = pro_info;
- this->lang = lang;
- this->param = param;
- this->jmod_manage_data = NULL;
+ this->ref_count = 0;
+ this->state = CENTER_CACHESTATE_READY;
+ this->update_cacheid = 0;
}
};