summaryrefslogtreecommitdiff
path: root/src/qq_file_global.h
diff options
context:
space:
mode:
author[email protected] <[email protected]>2021-11-30 12:55:56 +0800
committer[email protected] <[email protected]>2021-11-30 12:55:56 +0800
commitc9c3fe7fbdc9f12648ae16a9ea50e886509c7238 (patch)
treeccb645bae903996df95c25916a631f9322ab48bc /src/qq_file_global.h
Diffstat (limited to 'src/qq_file_global.h')
-rw-r--r--src/qq_file_global.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/qq_file_global.h b/src/qq_file_global.h
new file mode 100644
index 0000000..2f1ad94
--- /dev/null
+++ b/src/qq_file_global.h
@@ -0,0 +1,21 @@
+#ifndef __QQ_FILE_GLOBAL_H__
+#define __QQ_FILE_GLOBAL_H__
+
+#define QQ_FILENAME 1
+#define QQ_FILECONT 2
+#define QQ_FILECONT_END 4
+
+#define MAX_MALLOC_SIZE (16*1024)
+#define REALLOC_BLOCK_SIZE 1024
+
+#define MESA_HANDLE_RUNTIME_LOGV2(handle, lv, mod, fmt, args...) \
+ MESA_handle_runtime_log((handle), (lv), (mod), "%s:%d, " fmt, \
+ __FILE__, __LINE__, ##args)
+
+int buf_cache_check_size(trans_file_info_t *pdstBuf, int wantedlen, int thread_seq);
+int save_initial_tcp_data(trans_file_info_t *pdstBuf, char *data, int datalen, int thread_seq);
+
+int protocol_process(qq_proto_pme_t *qq_pme, long long prot_flag, char *buf, int buflen, struct streaminfo *a_udp, const void *raw_pkt);
+
+#endif
+