summaryrefslogtreecommitdiff
path: root/test/mock_sapp.cpp
blob: ece6388b50d6d5f993ed2031c7984a7db654cf3f (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <stdlib.h>

#include "stream.h"

void free_tcp_proxy_stream(struct streaminfo *pstream,struct streaminfo *pProxy)
{
	return;
}

void set_proxy_fstream(struct streaminfo *pstream,struct streaminfo *pProxy)
{
	return;
}
void *dictator_malloc(int thread_seq,size_t size)
{
	return malloc(size);
}
void dictator_free(int thread_seq,void *pbuf)
{
	free(pbuf);
}

void *dictator_realloc(int thread_seq, void* pbuf, size_t size)
{
	return realloc(pbuf, size);
}

char PROT_PROCESS(stSessionInfo* session_info,  void **pme, int thread_seq,struct streaminfo *a_stream,const void *a_packet)
{
	return 0;
}

int get_thread_count(void)
{
	return 0;
}

const void *project_req_get_struct(const struct streaminfo *stream, int project_req_id)
{
	return NULL;
}

const char *printaddr (const struct layer_addr *paddrinfo, int threadindex)
{
	return NULL;
}

int project_producer_register(const char *project_req_name, const char *project_req_val_type, project_req_free_t *free_cb)
{
	return 0;
}

int project_req_add_struct(struct streaminfo *stream, int project_req_id, const void *project_req_value)
{
	return 0;
}

int deal_tcp_in_proxy_stream(struct streaminfo *a_tcp,void * a_packet,struct streaminfo *pProxy)
{
	return 0;
}