summaryrefslogtreecommitdiff
path: root/generic_gpio/generic_gpio.cpp
blob: 3287578d06401c52dece1089bb5e5e39cf6eda2d (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
#include <distrio_helper.h>
#include <distrio_ioI.h>

int main (int argc, char **argv)
{
	int ret = 0;
	Distrio_Digital_i *digital;

	if (init_corba (argc, argv))
		return -EINVAL;

	digital = new Distrio_Digital_i ();

	if (register_digital ("pin huhu", digital)) {
		ret = -EINVAL;
		goto out;
	}

	if (run_orb ())
		ret = -EINVAL;

out:
	free (digital);
	return ret;
}