Revision 507372bb tests/neighborlist/neighborlist.c

View differences:

tests/neighborlist/neighborlist.c
8 8
#include        <event2/http.h>
9 9
#include        <event2/http_struct.h>
10 10

  
11
#include	<grapes.h>
12
#include	<grapes_log.h>
11
#include	<napa.h>
12
#include	<napa_log.h>
13 13
#include	<repoclient.h>
14 14
#include	<neighborlist.h>
15 15

  
......
54 54
	}
55 55
	/* Initialize libevent and logging */
56 56
	eventbase = event_base_new();
57
	grapesInitLog(-1, NULL, NULL);
57
	napaInitLog(-1, NULL, NULL);
58 58
	repInit("");
59 59

  
60 60
	/* Parse config file and init repoclient with the "repository" cfg section */
......
72 72
		cfg_getint(neighborlist_cfg, "update_period"), NULL, NULL, NULL);
73 73

  
74 74
	struct timeval begin = { 5, 0 };
75
	grapesSchedulePeriodic(&begin, 1.0/10.0, periodic_query, neighborlist);
75
	napaSchedulePeriodic(&begin, 1.0/10.0, periodic_query, neighborlist);
76 76

  
77 77

  
78 78
	event_base_loop(eventbase, 0);

Also available in: Unified diff