aboutsummaryrefslogtreecommitdiffstats
path: root/toj/center/src/center_manage.h
diff options
context:
space:
mode:
authorpzread <netfirewall@gmail.com>2013-03-01 22:30:00 +0800
committerpzread <netfirewall@gmail.com>2013-03-01 22:30:00 +0800
commit56688ed6d0b18f68ac8ddd82c4944c5d2777d20a (patch)
treebb943e164f82b4a826f1d9ce253bfabf912c0004 /toj/center/src/center_manage.h
parent69d7b55a1c9d3100d42b9c91ab995de44b13d73b (diff)
downloadtaiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.gz
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.bz2
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.lz
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.xz
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.tar.zst
taiwan-online-judge-56688ed6d0b18f68ac8ddd82c4944c5d2777d20a.zip
Taiwan Online Judge Alpha 1
Diffstat (limited to 'toj/center/src/center_manage.h')
-rw-r--r--toj/center/src/center_manage.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/toj/center/src/center_manage.h b/toj/center/src/center_manage.h
new file mode 100644
index 0000000..27e1bc9
--- /dev/null
+++ b/toj/center/src/center_manage.h
@@ -0,0 +1,23 @@
+static void manage_packcode_th(void *data);
+static void manage_packcode_cb(void *data);
+static int manage_notice(int subid,int uid,int proid,int result,int runtime,int memory);
+
+static tpool *manage_packtp;
+static tpool_static_fn *manage_packcode_thfn;
+static tpool_static_fn *manage_packcode_cbfn;
+
+int center_manage_init(tpool **tpinfo);
+PGconn* center_manage_conndb();
+int center_manage_closedb(PGconn *conn);
+int center_manage_updatedata();
+int center_manage_submit(int subid,char *param);
+int center_manage_result(int subid,char *res_data);
+DLL_PUBLIC int center_manage_queuesubmit(int subid,int proid,int lang,char *set_data,size_t set_len);
+
+std::map<std::string,center_jmod_info*> center_manage_jmodmap;
+std::map<int,center_pro_info*> center_manage_promap;
+std::map<int,center_submit_info*> center_manage_submap;
+
+extern int pack_pack(char *pack_path,char *dir_path);
+extern int pack_unpack(char *pack_path,char *dir_path);
+extern int center_judge_submit(int subid,int proid,int lang,char *set_data,size_t set_len);