blob: 4d8a95b025d98456c25f6793383ad52b450faed6 (
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
|
#include <syslog.h>
#include "nm-rdisc.h"
#include "nm-fake-rdisc.h"
#include "nm-logging.h"
int
main (int argc, char **argv)
{
GMainLoop *loop;
NMRDisc *rdisc;
g_type_init ();
loop = g_main_loop_new (NULL, FALSE);
nm_logging_setup ("debug", NULL, NULL);
openlog (G_LOG_DOMAIN, LOG_CONS | LOG_PERROR, LOG_DAEMON);
rdisc = nm_fake_rdisc_new (1);
nm_rdisc_start (rdisc);
g_main_loop_run (loop);
g_clear_object (&rdisc);
return EXIT_SUCCESS;
}
|