forked from hoehermann/purple-gowhatsapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgwa-to-purple.c
44 lines (38 loc) · 958 Bytes
/
gwa-to-purple.c
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
44
#include <stdint.h>
#include "constants.h"
#include "proxy.h"
/*
* This module implements dummy bodies for C functions to be called by cgo.
* cgo uses the module to determine the parameter types, but it does not actually link to it.
* This module MUST NOT be linked with the main target libgowhatsapp.so.
*/
void gowhatsapp_process_message_bridge(void *gwamsg)
{
(void) gwamsg;
}
void *
gowhatsapp_get_account(void *pc)
{
(void) pc;
return (void *)0xDEADBEEF;
}
const char *
gowhatsapp_account_get_string(void *account, const char *name, const char *default_value)
{
(void) account;
(void) name;
(void) default_value;
return 0;
}
int
gowhatsapp_account_get_bool(void *account, const char *name, int default_value)
{
(void) account;
(void) name;
(void) default_value;
return 0;
}
const PurpleProxyInfo * gowhatsapp_account_get_proxy(void *account) {
(void) account;
return (void *)0xDEADBEEF;
};