summaryrefslogtreecommitdiffstats
path: root/test/test_key_value_store.c
blob: 983b3b880a2016d6895ede2da96fd131e92e0d48 (plain) (blame)
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
#include <stdio.h>
#include <stdlib.h>

#include <netbytes.h>

typedef struct kv_user_name
{
	int id;
	char *name;
	char *desc;
} kv_user_name;

kv_user_name* kv_new(int id, char *name, char *desc)
{
	
}

netbyte_store* kv_marsh(kv_user_name *kv)
{
	return NULL;
}

void kv_free()
{

}


int main()
{

	int er;
	uint8_t *res;
	FILE *f;
	int i=0;

	netbyte_store nb;

	printf("Start test\n");
	nb_init( &nb );

	f = fopen("test_many.nb","r");
	while (nb_fread( &nb, fileno(f) ) == 0)
	{
		printf("ITER %d: ", i );
		pr_store( &nb );
		i += 1;
	}
	fclose( f );

	printf("End test\n");
	return 0;
}