[T106][ZXW-22]7520V3SCV2.01.01.02P42U09_VEC_V0.8_AP_VEC origin source commit

Change-Id: Ic6e05d89ecd62fc34f82b23dcf306c93764aec4b
diff --git a/ap/hostapp/zlogtrace_ref/zlog_com.h b/ap/hostapp/zlogtrace_ref/zlog_com.h
new file mode 100755
index 0000000..8e50907
--- /dev/null
+++ b/ap/hostapp/zlogtrace_ref/zlog_com.h
@@ -0,0 +1,82 @@
+/*

+ * 

+ * Copyright (C)  2023

+ *

+ * This program is free software; you can redistribute it and/or modify

+ * it under the terms of the GNU General Public License as published by

+ * the Free Software Foundation; either version 2 of the License, or

+ * (at your option) any later version.

+ *

+ * This program is distributed in the hope that it will be useful,

+ * but WITHOUT ANY WARRANTY; without even the implied warranty of

+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

+ * GNU General Public License for more details

+ *

+ * FileName : zlog_com.h

+ * This program Capture module's trace log.

+ */

+

+#ifndef __ZLOG_COM_H__

+#define __ZLOG_COM_H__

+

+#include <stdio.h>

+#include <stdlib.h>

+#include <string.h>

+#include <fcntl.h>

+#include <unistd.h>

+#include <syslog.h>

+#include <signal.h>

+#include <errno.h>

+#include <sys/time.h>

+#include <sys/types.h>

+#include <sys/socket.h>

+#include <netinet/in.h>

+#include <netdb.h>

+

+/**

+ * Íⲿº¯ÊýÉùÃ÷

+ */

+extern int set_tty(int fd,char *settings);

+

+/**

+ * ºê¶¨Òå

+ */

+#define ZLOG_DEFAULT_TTYBAUD  "921600 raw"

+

+#define PRINTF_DBG_INFO(fmt, args...) \

+		do 							\

+		{ 							\

+			printf("INFO:%s(%d)-%s:\n"fmt":\n", __FILE__,__LINE__,__FUNCTION__); \

+		} while (0)

+

+#define PRINTF_DBG_ERROR(fmt, args...) \

+		do 							\

+		{ 							\

+			printf("ERROR:%s(line %d)--%s: "fmt": %s\n", __FILE__,__LINE__,__FUNCTION__,##args, strerror(errno)); \

+		} while (0)

+

+#define dbg_time(fmt, args...)  \

+		do {   \

+			fprintf(stdout, "[%s-%d] " fmt, __func__, __LINE__, ##args); \

+			fflush(stdout); \

+		} while (0)

+		

+typedef unsigned long UINT32;

+typedef unsigned long ULONG32;

+

+/**

+ * ½á¹¹Ì嶨Òå

+ */

+typedef struct 

+{

+	UINT32  curfd;

+	UINT32  uFileNum;

+	UINT32  uFileSize;

+	UINT32  tmaxLogNum;

+	ULONG32 tMaxLogsize;

+	char    *localFsPath;

+}T_COMM_FS_PARAM;

+

+#endif

+

+