forked from luo87/myqq3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibqq.h
38 lines (31 loc) · 1.2 KB
/
libqq.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
#ifndef _libQQ_H
#define _libQQ_H
#include <time.h>
#ifdef __WIN32__
#define STDCALL __stdcall
#ifdef libQQLIB
#define EXPORT __declspec(dllexport) STDCALL
#else
#define EXPORT __declspec(dllimport) STDCALL
#endif
#else
#define EXPORT
#endif
struct qqclient;
EXPORT void libqq_init();
EXPORT void libqq_cleanup();
EXPORT struct qqclient* libqq_create( uint number, char* pass );
EXPORT void libqq_derefer( struct qqclient* qq );
EXPORT int libqq_login( struct qqclient* qq );
EXPORT int libqq_logout( struct qqclient* qq );
EXPORT int libqq_getmessage( struct qqclient* qq, char* buf, int size, int wait );
EXPORT int libqq_sendmessage( struct qqclient* qq, uint to, char* buf, char qun_msg );
EXPORT void libqq_updatelist( struct qqclient* qq );
EXPORT void libqq_verify( struct qqclient* qq, uint code );
EXPORT void libqq_remove( struct qqclient* qq );
EXPORT void libqq_status( struct qqclient* qq, int st );
EXPORT uint libqq_refresh( struct qqclient* qq );
EXPORT void libqq_getqunname( struct qqclient* qq, uint ext_id, char* buf );
EXPORT void libqq_getqunmembername( struct qqclient* qq, uint ext_id, uint uid, char* buf );
EXPORT void libqq_getbuddyname( struct qqclient* qq, uint uid, char* buf );
#endif