about summary refs log tree commit diff stats
path: root/tests/unittests/tools/stub_aesgcm_download.c
blob: 58696e801a00ae8787d1a6e22e27f8db7f444ba3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef TOOLS_AESGCM_DOWNLOAD_H
#define TOOLS_AESGCM_DOWNLOAD_H

#include <pthread.h>

typedef struct prof_win_t ProfWin;
typedef struct http_download_t HTTPDownload;

typedef struct aesgcm_download_t
{
    char* url;
    char* filename;
    ProfWin* window;
    pthread_t worker;
    HTTPDownload* http_dl;
} AESGCMDownload;

void* aesgcm_file_get(void* userdata);

void aesgcm_download_cancel_processes(ProfWin* window);
void aesgcm_download_add_download(AESGCMDownload* download);

#endif