#endif
#include <stdlib.h>
#include <glib.h>
-#include "sigrok.h"
-#include "sigrok-internal.h"
+#include "libsigrok.h"
+#include "libsigrok-internal.h"
// FIXME: Must be moved, or rather passed as function argument.
#ifdef _WIN32
term.c_iflag &= ~IGNPAR;
term.c_cflag &= ~(PARODD | PARENB);
switch (parity) {
- case 0:
+ case SERIAL_PARITY_NONE:
term.c_iflag |= IGNPAR;
break;
- case 1:
+ case SERIAL_PARITY_EVEN:
term.c_cflag |= PARENB;
break;
- case 2:
+ case SERIAL_PARITY_ODD:
term.c_cflag |= PARENB | PARODD;
break;
default: