-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgui_filesearch.h
executable file
·66 lines (55 loc) · 1.36 KB
/
gui_filesearch.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*!
*\file gui_filesearch.h
*\brief
*\author Huguanghui
*\date 2019/03/15
*\version v2.1.1 [2019/03/15]
*\pusrpose
-#
*/
#ifndef GUI_FILESEARCH_H
#define GUI_FILESEARCH_H
// ------------------------------------ include standard header and custom head ------------------------------------ //
#include "gui_define.h"
#include <sys/queue.h>
typedef struct tagTimeDuration
{
time_t beginTime;
time_t endTime;
}T_TIMEDURATION, *H_TIMEDURATION;
struct listFile;
struct elFile
{
char name[64];
int isDir;
int size;
time_t createdTime;
struct listFile *sub;
LIST_ENTRY(elFile) elements;
};
struct listFile
{
pthread_mutex_t mtxLock;
struct elFile *lh_first;
};
typedef struct tagFileSearchState
{
struct listFile show_list;
struct listFile all_list;
pthread_t tid_openfile;
int bState;
}T_FILESEARCHSTATE, *H_FILESEARCHSTATE;
// ------------------------------------ prototype of global function ------------------------------------ //
/*
//!\brief 创建文件检索对话框
//!\param HWND hParentWnd 父窗口句柄
//!\return NULL -- 失败;Else -- 成功
*/
int FileSearchWnd_Create(HWND hParentWnd, H_FILESEARCHSTATE hFileSearchState);
/*
//!\brief 退出关闭检索对话框,释放资源,销毁窗口
//!\param
//!\return
*/
int FileSearchWnd_Quit();
#endif //GUI_FILESEARCH_H