-
Notifications
You must be signed in to change notification settings - Fork 0
/
curlstream.h
38 lines (25 loc) · 839 Bytes
/
curlstream.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
/*==========================================================================*\
*
* curlstream.h - cURL stream processing for flasher.
* flasher (C) 2006 Alex Graveley
*
\*==========================================================================*/
#ifndef __CURLSTREAM_H__
#define __CURLSTREAM_H__
#include "flasher.h"
typedef struct _CURLStream CURLStream;
CURLStream *CURLStreamNew(NPP_t *plugin,
const char *url,
Bool notify,
void* notifyData);
CURLStream *CURLStreamNewPost(NPP_t *plugin,
const char *url,
Bool notify,
void* notifyData,
const char *buf,
uint32 len,
Bool is_file);
void CURLStreamDestroy(CURLStream *s, NPReason reason);
void CURLStreamInit(const char *baseurl);
void CURLStreamShutdown(void);
#endif /* __CURLSTREAM_H__ */