1 /* logjam - a GTK client for LiveJournal.
2 * Copyright (C) 2000-2003 Evan Martin <evan@livejournal.com>
4 * vim: tabstop=4 shiftwidth=4 noexpandtab :
7 #ifndef network_internal_h
8 #define network_internal_h
12 /* network-internal -- interface to http, used by network.
13 * provides a blocking and nonblocking interface.
15 * network-curl -- curl (unix, fork);
16 * network-win32 -- windows api (windows, threads).
19 #define READ_BLOCK_SIZE 2048
35 typedef void (*NetStatusCallback
)(NetStatusType status
,
39 GString
* net_post_blocking(const char *url
, GSList
*headers
, GString
*post
,
40 NetStatusCallback cb
, gpointer data
,
43 typedef void* NetMainloopHandle
;
45 GString
* net_post_mainloop(const char *url
, GSList
*headers
, GString
*post
,
46 NetStatusCallback cb
, gpointer data
,
48 void net_mainloop_cancel(NetMainloopHandle handle
);
50 gboolean
net_verb_run_internal(LJVerb
*verb
,
51 NetStatusCallback cb
, gpointer data
,
54 #endif /* network_internal_h */