-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask_message.h
More file actions
executable file
·43 lines (39 loc) · 1.01 KB
/
task_message.h
File metadata and controls
executable file
·43 lines (39 loc) · 1.01 KB
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
/*
* task_message.h
*
* Created on: 2017年12月30日
* Author: tom
*/
#ifndef TASK_MESSAGE_H_
#define TASK_MESSAGE_H_
#include <glib-object.h>
#include <libxml/HTMLparser.h>
#include <libxml/xpath.h>
#include <libsoup/soup.h>
#include "MY_DECLARE.h"
G_BEGIN_DECLS
#define MY_TYPE_TASK_MESSAGE my_task_message_get_type()
MY_DECLARE_DERIVABLE_TYPE(MyTaskMessage,my_task_message,MY,TASK_MESSAGE,GObject);
typedef struct _MyTaskMessageClass{
GObjectClass parent_class;
};
typedef struct _MyTaskMessage{
GObject parent_instance;
SoupURI *uri;
SoupSession *session;
xmlDoc *doc;
xmlXPathContext *ctxt;
gpointer task;
gint id,reply;
gchar *filename, *web_title,*charset,*local,*suggest_filename,*utf8_conv;
void *list_row;
gboolean *cancel;
SoupStatus soup_status;
SoupMessage *msg;
GMutex mutex;
GString *xpath_result;
};
MyTaskMessage *my_task_message_new(SoupSession *session,SoupURI *uri,gpointer task,gint id);
gboolean my_task_message_free(MyTaskMessage *self);
G_END_DECLS
#endif /* TASK_MESSAGE_H_ */